Python client for the Arduino sketch in ArduinoThermalFanControl.ino.
python -m pip install -r requirements.txt
python -m pip install -e .fromarduino_thermal_fan_controlimportconnectcontroller=connect(vid=0x2341, pid=0x0069)
try:
controller.set_fan_speed(75)
controller.set_reject_heater(False)
finally:
controller.close()If you already know the serial port:
fromarduino_thermal_fan_controlimportThermalFanControllerwithThermalFanController(port="/dev/ttyACM0") ascontroller:
controller.set_fan_speed(50)
controller.set_motor_heater(True)