Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

What can I do with IGEP SMARC iMX6

1,059 bytes added, 09:25, 18 May 2016
no edit summary
</pre>
If you want to trigger the leds you can enable this mode and select the trigger source (none by default) to: 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 the instruction 'cat':<br>  <pre>$ cat /sys/class/leds/igep\:red\:led0/trigger [none] mmc0 mmc1 timer heartbeat default-on</pre>  In the example above, we have checked the status of the trigger in led red\led0. Mode 'none' is selected.  To change it, for example, to the ''timer'' mode you can use 'echo': <pre>echo timer > /sys/class/leds/igep\:red\:led0/trigger</pre>  In this case, we have set the trigger to the 'timer' mode. Now you can set the time for what the led is ON and the time it is OFF using: <pre>echo 250 > /sys/class/leds/igep\:red\:led0/delay_onecho 750 > /sys/class/leds/igep\:red\:led0/delay_off</pre>  Now the selected led is configured with a timer consisting of 250 miliseconds ON and 750 miliseconds OFF. The base has two user (red/blue)leds available that can be controlled. Can't use them in the same time. In its simplest form, you can control of LEDs from
userspace. LEDs appear in /sys/class/leds/base and you can turn on and off with following commands:
0
edits