Beispiel #1
0
def led_action(conn):
    while True:
        if conn.poll():
            t = conn.recv()
            print("led_action: {}".format(t))
        blink(t)
Beispiel #2
0
def led_action(t):
    print("led_action: {}".format(t))
    while True:
        blink(t)