Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import serial
- ser = serial.Serial('/dev/ttyUSB0', 9600)
- ser.write("screen_up\n".encode("utf-8"))
- ser.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement