Changes

What can I do with IGEP0020

1,135 bytes added, 15:32, 6 July 2011
no edit summary
This is probably the most simple feature in the board, but sometimes LED's may be the only way of checking the status of some of your applications.<br>
 
=== Turning LED's On/OFF<br> ===
IGEP0020 has 4 LED's which you can control, for example, using 'echo':
echo 1 &gt; /sys/devices/platform/leds-gpio/leds/d440\:red/brightness
</pre>
You can turn them down using the same command and write '0' instead of '1'. === LED's triggering<br> === You can change the trigger of the leds (none by default) to different modes: mmc0, mmc1, timer, heartbeat and default-on.<br> To enable this modes you just have to change a parameter in the directory of the led you want to control. You can see all the parameters using 'cat':<br><pre>$ cat /sys/devices/platform/leds-gpio/leds/d240\:green/trigger [none] mmc0 mmc1 timer heartbeat default-on</pre>In the example above, we have checked the status of the trigger in led D240:green. If you want to change the trigger mode use, for example, 'echo':<br><pre>echo timer &gt; /sys/devices/platform/leds-gpio/leds/d240\:green/trigger</pre>In this case, we have set the trigger to the 'timer' mode. In this mode you can set the time for what the led is ON and the time it is OFF using:<br><pre>echo 250 &gt; /sys/devices/platform/leds-gpio/leds/d240\:green/delay_onecho 750 &gt; /sys/devices/platform/leds-gpio/leds/d240\:green/delay_off</pre>Now the selected led is configured with a timer consisting of 250 miliseconds ON and 750 miliseconds OFF.<br> <br> <br>
0
edits