move to targets/

This commit is contained in:
Conor Patrick
2018-09-12 21:25:40 -04:00
parent 364e552ae9
commit 86aa5ec657
26 changed files with 15 additions and 7739 deletions

View File

@ -0,0 +1,18 @@
#!/usr/bin/python
import serial, sys
from sys import argv
if len(argv) not in [2,3]:
print('usage: %s <com-port> [baud-rate]' % argv[0])
sys.exit(1)
baud = 115200
if len(argv) > 2:
baud = int(argv[2])
ser = serial.Serial(argv[1],baud)
print('reading..')
sys.stdout.flush()
while True:
sys.stdout.write(ser.read())