Created
June 30, 2019 04:46
-
-
Save dilshan/7ad1a665ce99723b22f2df630ebad0a7 to your computer and use it in GitHub Desktop.
USB external display direct mode acess
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import serial | |
device = serial.Serial('/dev/ttyACM0') | |
if device.is_open: | |
device.write(13) | |
device.write(str.encode('-360')) | |
device.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment