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