Difference between revisions of "What can I do with IGEP COM PROTON"

From IGEP - ISEE Wiki

Jump to: navigation, search
m (What can I do)
m
Line 23: Line 23:
  
 
''From [[How to handle the gpio-LED]]''  
 
''From [[How to handle the gpio-LED]]''  
{{Table/IGEP Technology Devices
+
{{Template:Navigation/IGEP Technology Guides/What can I do/Ending}}
|Tech_Family={{#lst:Template:Links|IGEP_COM_PROTON_Tech_Family}}
 
|Tech_ID={{#lst:Template:Links|IGEP_COM_PROTON_Tech_ID}}
 
|Name={{#lst:Template:Links|IGEP_COM_PROTON_Name}}
 
|Image={{#lst:Template:Links|IGEP_COM_PROTON_Image}}
 
|ISEE_MainPage={{#lst:Template:Links|IGEP_COM_PROTON_ISEE_MainPage}}
 
|ISEE_Hardware={{#lst:Template:Links|IGEP_COM_PROTON_ISEE_Hardware}}
 
}}
 
  
 
[[Category:IGEP Technology Devices Guides]]
 
[[Category:IGEP Technology Devices Guides]]

Revision as of 17:07, 10 September 2012


Overview

This is the 2/3 chapter of IGEP COM PROTON Tutorial Guide.

We will learn some basic tasks.

What can I do

You must logged in the board.

Handle the gpio-LED's

Basic

Log into IGEP COM PROTON (for example via SSH, as shown in the previous chapter), and run the following commands to turn LED's on:

echo 1 > /sys/devices/platform/leds-gpio/leds/d242\:green/brightness
echo 1 > /sys/devices/platform/leds-gpio/leds/d441\:green/brightness
echo 1 > /sys/devices/platform/leds-gpio/leds/d442\:green/brightness

You can turn them down using the same command and write '0' instead of '1'.


Know more

IGEP COM PROTON 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.

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':

$   cat /sys/devices/platform/leds-gpio/leds/d242\:green/trigger

[none] nand-disk mmc0 timer heartbeat backlight gpio default-on

In the example above, we have checked the status of the trigger in led d242:green. Mode 'none' is selected.

To change it, for example, to the timer mode you can use 'echo':

echo timer > /sys/devices/platform/leds-gpio/leds/d242\:green/trigger

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:

echo 250 > /sys/devices/platform/leds-gpio/leds/d242\:green/delay_on
echo 750 > /sys/devices/platform/leds-gpio/leds/d242\:green/delay_off

Now the selected led is configured with a timer consisting of 250 miliseconds ON and 750 miliseconds OFF.


From How to handle the gpio-LED



You have successfully completed this chapter of the guide.


Continue this tutorial guide: 3/3 - Start developing under IGEP Technology
Igep forum.png If you have any question, don't ask to ask at the IGEP Community Forum or the IGEP Community Chat Irc.png