Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

What can I do with IGEPv2

2,035 bytes removed, 12:49, 28 August 2012
m
Handle the gpio-LED's
== Handle the gpio-LED's ==
 ''' Basic ''' In this tutorial, we are going {{#lst:How to use the '''4 LED's available in the board''', which probably is the most simple feature in the board, but sometimes you may want LED's to be a way of checking the status of some of your applications.  You can easily '''turn LED's on and off''' using handle the 'echo' instruction. Log into IGEPv2 (for example via SSH, as shown in the previous chapter), and run the following commands to turn LED's on: <pre>echo 1 &gt; /sys/devices/platform/leds-gpio/leds/d240\:green/brightnessecho 1 &gt; /sys/devices/platform/leds-gpio/leds/d240\:red/brightnessecho 1 &gt; /sys/devices/platform/leds-gpio/leds/d440\:green/brightnessecho 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'.   ''' Know more ''' IGEPv2 LED's are controlled with it's platform device at /sys/devices/platform/leds-gpio/leds/ 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/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. Mode 'none' is selected.  To change it, for example, to the ''timer'' mode you can use 'echo': <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. Now you can set the time for what the led is ON and the time it is OFF using: <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.|IGEPV2}}
== Send a file between your PC and IGEPv2 via SCP ==
4,199
edits