Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: 8.3.1 Legacy on Pi Zero - failed upgrade.
#19
(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
Reply


Messages In This Thread
RE: 8.3.1 Legacy on Pi Zero - failed upgrade. - by Macdelf - 04-18-2023, 11:12 PM

Forum Jump: