TQMa91xxCA - YOCTO Linux BSP documentation

User LED

The MBa91xxCA has two user-controllable LEDs, whose behavior can be selected by several triggers.

The user LEDs are located in /sys/devices/platform/gpio-leds/leds/.
To change the behaviour of a specific LED, the value in the file trigger must be overwritten.

The following values are valid:

For example set the trigger of led “green:status” to heartbeat

echo heartbeat > /sys/class/leds/green\:status/trigger