python test script with FTDI serial

This commit is contained in:
ken
2022-07-05 14:13:14 -07:00
parent 873eaa10b3
commit 3c84bc8a57
+13
View File
@@ -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')