1.5 Minor adjustment
Switched to a different USB Configuration Channel controller due to part shortage
The Power LED now can be controlled by GPIO_AO10
Dunno but guessing its down to you to set the LED state
I see! So on version v1.4 it is GPIO_AO8, and v1.5 it becomes AO10. Still don’t quite understand the reason for this change. A solid LED light is not that helpful for headless operations.
Really would like to have radxa zero to turn off the light when it is fully shutdown.
Now set the trigger: echo "default-on" | sudo tee /sys/class/leds/radxa-zero:green/trigger default-on
I personally link my LEDs to the mmc activity using a script and service.
#!/bin/bash
# Bind root device activity to LED trigger
LED="/sys/class/leds/radxa-zero:green/trigger"
if [ -e $LED ]; then
ROOT_DEVICE=`findmnt -v -n -o SOURCE /`
ROOT_DEVICE=${ROOT_DEVICE/\/dev\//}
ROOT_DEVICE=${ROOT_DEVICE/mmcblk/mmc}
ROOT_DEVICE=${ROOT_DEVICE/p[0-9]/}
echo -n "$ROOT_DEVICE" > $LED
fi
NOTE:
As an aside, you can also just adjust the LED brightness
off: echo "0" | sudo tee /sys/class/leds/radxa-zero:green/brightness
on: echo "1" | sudo tee /sys/class/leds/radxa-zero:green/brightness
How does ‘/sys/class/leds/radxa-zero:green/’ or ‘/sys/class/leds/board-led/’ reference resolve the difference between the board revisions? To know to use the correct GPIO pin? Is it just slamming GPIOAO_8 and _10 at the same time? Or is there some check for the board revision? I ask this because I have been searching for a while to figure out board revision information on my Zero 3E from a programmatically visible method. Just trying to make my code smarter if you will. Really wish RADXA had something comparable to the Pi device ‘revision’ code value.