Skip to content

Instantly share code, notes, and snippets.

@JonnoFTW
Created June 2, 2017 04:28
Show Gist options
  • Save JonnoFTW/52bef30e7d71adc022fa754abf0c7a7b to your computer and use it in GitHub Desktop.
Save JonnoFTW/52bef30e7d71adc022fa754abf0c7a7b to your computer and use it in GitHub Desktop.
ser = serial.Serial(path, baudrate=38400, timeout=1)
ser_io = io.TextIOWrapper(io.BufferedRandom(ser),
newline='\r',
line_buffering=False,
encoding='ascii')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment