using LPUART to forward Bluetooth messages !
This commit is contained in:
13
tools/uart_in_test.py
Normal file
13
tools/uart_in_test.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import serial
|
||||
|
||||
# Open the serial port
|
||||
ser = serial.Serial('/dev/ttyACM1', baudrate=1000000)
|
||||
|
||||
# Send 10 bytes of data
|
||||
data = b'01234567890123456789012345678901234567890123456789'
|
||||
|
||||
for i in range(10):
|
||||
ser.write(data)
|
||||
|
||||
# Close the serial port
|
||||
ser.close()
|
||||
Reference in New Issue
Block a user