1 2 3 4 5 6
#!/usr/bin/env python import serial ser = serial.Serial('/dev/ttyACM0, 9600); while 1: print(ser.readline())