Commit 12d94d8c authored by behrajor's avatar behrajor

ajout de test_serial pour avoir une connection directe

parent b5cbbc7e
#!/bin/python3.7
# -*-coding:Utf-8 -*
import serial
ser = serial.Serial()
ser.baudrate = 9600
ser.port = '/dev/ttyACM0'
print("port créé : {}.".format(ser))
ser.open()
cmd = str()
while cmd != "Q":
#cmd = ser.readline()
#print(cmd)
cmd = input("Serial command : ")
ser.write(cmd.encode())
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment