LED Control¶
The default trigger mode for the development board's LED is heartbeat, which is controlled by the kernel and cannot be manually toggled via commands.
To manually control the LED, first change the trigger mode to none, then use the brightness interface to turn it on or off:
# Disable heartbeat mode to release manual control
echo none > /sys/class/leds/sys_led/trigger
# Turn the LED on
echo 1 > /sys/class/leds/sys_led/brightness
# Turn the LED off
echo 0 > /sys/class/leds/sys_led/brightness
To restore heartbeat mode: echo heartbeat > /sys/class/leds/sys_led/trigger