fix ir setting

pypanda
Comma Device 2 months ago
parent 1a0ab0d0fc
commit 71eeb3be69
  1. 2
      system/hardware/tici/hardware.py

@ -129,6 +129,8 @@ class Tici(HardwareBase):
return
value = int((percent / 100) * 300)
with open("/sys/class/leds/led:switch_2/brightness", "w") as f:
f.write(f"0\n")
with open("/sys/class/leds/led:torch_2/brightness", "w") as f:
f.write(f"{value}\n")
with open("/sys/class/leds/led:switch_2/brightness", "w") as f:

Loading…
Cancel
Save