Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- import serial
- conn = serial.Serial("/dev/ttyACM0", 9600)
- time.sleep(2)
- conn.send('H')
- while True:
- try:
- time.sleep(1)
- except KeyboardInterrupt:
- conn.close()
- del conn
Advertisement
Add Comment
Please, Sign In to add comment