Exemplo n.º 1
0
def demo():
    s = interface.connect()
    while True:
        interface.turn_on(s)
        time.sleep(5)
        interface.turn_off(s)
        time.sleep(5)
    return "Demo!"
Exemplo n.º 2
0
def turnOn():
    # put in pyserial here
    s = interface.connect()
    interface.turn_on(s)
    return "Turning on"