04-18-2023, 11:12 PM
(04-18-2023, 07:08 PM)philrandal Wrote: echo '0' | sudo tee -a /sys/class/leds/PWR/brightness > /dev/null
echo '255' | sudo tee -a /sys/class/leds/PWR/brightness > /dev/null
to turn power led off and on
Cheers,
Phil
Or...
In the old directory designations /sys/class/leds/led0/ /sys/class/leds/led1/ replace led0 with ACT and led1 with PWR and all works as before
os.system("sudo sh -c 'echo 0 > /sys/class/leds/PWR/brightness'")
os.system("sudo sh -c 'echo 0 > /sys/class/leds/ACT/brightness'")
turns all off in a python script. Echo1 turns all on