Changes

What can I do with IGEP0020

1 byte added, 11:00, 7 July 2011
m
no edit summary
There is '''no password''' for this user.
== Using How to handle the board LED's<br> ==
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'. Here is an example of turning LED's On:
<pre>echo 1 &gt; /sys/devices/platform/leds-gpio/leds/d240\:green/brightness
You can turn them down using the same command and write '0' instead of '1'.
=== LED's triggering<br> === You If you want to trigger the leds you can change enable this mode and select the trigger of the leds source (none by default) to different modes: mmc0, mmc1, timer, heartbeat and default-on.<br>
To enable any of this modes you just have to change a parameter in the directory of the led you want to control. You can see all the possibilities 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.&nbsp;None Mode 'none' is selected.
To change it, for example, to the trigger timer mode you can use '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 Now 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_on
echo 750 &gt; /sys/devices/platform/leds-gpio/leds/d240\:green/delay_off
0
edits