add link
This commit is contained in:
parent
3931100b06
commit
d9b67442e6
1 changed files with 2 additions and 0 deletions
2
main.py
2
main.py
|
@ -7,6 +7,8 @@ ser = serial.Serial('/dev/ttyACM0', baudrate = 9600, timeout = 1)
|
||||||
|
|
||||||
#time.sleep(3)
|
#time.sleep(3)
|
||||||
|
|
||||||
|
# https://stackoverflow.com/questions/13017840/using-pyserial-is-it-possible-to-wait-for-data
|
||||||
|
|
||||||
while 1:
|
while 1:
|
||||||
# { "command": "switch", "arg": "one", "state": "off"}
|
# { "command": "switch", "arg": "one", "state": "off"}
|
||||||
userInput = input('> ')
|
userInput = input('> ')
|
||||||
|
|
Loading…
Reference in a new issue