Skip to content

Instantly share code, notes, and snippets.

@TonsOfFun
Created March 6, 2019 04:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TonsOfFun/23a5875be71fdb7c3fb9c4e992c3f5d4 to your computer and use it in GitHub Desktop.
Save TonsOfFun/23a5875be71fdb7c3fb9c4e992c3f5d4 to your computer and use it in GitHub Desktop.
import serial
from serial.tools import list_ports
ser = serial.Serial(list_ports.comports()[1].device, 9600)
while True:
print(ser.readline())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment