add nrf52 project

This commit is contained in:
Conor Patrick
2018-05-30 22:00:20 -04:00
parent 31cec1c1ef
commit b65dfdec76
6 changed files with 2941 additions and 0 deletions

18
nrf52840/pyserial.py Normal file
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())