Skip to content

Instantly share code, notes, and snippets.

@dilshan
Created June 30, 2019 04:46
Show Gist options
  • Save dilshan/7ad1a665ce99723b22f2df630ebad0a7 to your computer and use it in GitHub Desktop.
Save dilshan/7ad1a665ce99723b22f2df630ebad0a7 to your computer and use it in GitHub Desktop.
USB external display direct mode acess
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