Quotidien Shaarli

Tous les liens d'un jour sur une page.

January 15, 2020

?en5zAQ

In [87]: import serial
...: import serial.tools.list_ports
...: import datetime
...: baud = 9600
...:
...: ports = serial.tools.list_ports.comports()
...:
...: arduino = serial.Serial(ports[0][0], baud, timeout=1)
...:

In [88]: arduino.write(str.encode('92_98_desat'))