Changes

What can I do with IGEP0020

39 bytes added, 15:35, 6 July 2011
m
no edit summary
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 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. If you want &nbsp;None is selected. To change it, for example, to change the trigger mode you can 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_on
echo 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