NGW/NGW100 LEDs
From AVRFreaks Wiki
NGW100 is equipped with four LEDs:
- Power, lit when power is stable and NGW100 operational.
- System, lit when Linux is done loading.
- A and B, user configurable.
The A and B LEDs available to the user can be controlled trough Linux' GPIO interface: /dev/gpioN (with N: 0,1,2..)
Example:
~ # echo "0x80000" >/dev/gpio1 ~ #
Will turn on led A because we write a '1' to bit position 19 on second defined gpio function which is /config/gpio/leda and /config/gpio/leda/gpio_id is 0 (port A).
The gpio functions are configured in /etc/init.d/S99gpio