Template
14 lines
256 B
Python
14 lines
256 B
Python
# 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')
|
|
|
|
|