10 lines
174 B
Python
10 lines
174 B
Python
import serial
|
|
import time
|
|
|
|
port = '/dev/ttyACM0'
|
|
baudrate = 115200
|
|
|
|
with serial.Serial(port, baudrate, timeout=1) as ser:
|
|
ser.write(b"run\n")
|
|
time.sleep(0.1)
|