Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import serial
- import time
- s= serial.Serial(port='COM4')
- for i in range(10):
- s.write(b'h')
- time.sleep(0.5)
- s.write(b'l')
- time.sleep(0.5)
- s.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement