Template
python test script with FTDI serial
This commit is contained in:
@@ -0,0 +1,13 @@
|
|||||||
|
# IPython log file
|
||||||
|
|
||||||
|
import serial
|
||||||
|
s=serial.Serial('/dev/tty.usbserial-A107LYF1')
|
||||||
|
s.baudrate = 115200
|
||||||
|
s.write(b'hello\n')
|
||||||
|
s.write(b'HELLO\n')
|
||||||
|
s.write(b'thisisareallylongstringbut not long enough to overflow')
|
||||||
|
|
||||||
|
s.baudrate=9600
|
||||||
|
s.write(b'HELLO fake GPS\n')
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user