Control LED

(1) LED Server 

After the system starts up it will automatically start a LED service (/etc/rc.d/init.d/leds). It actually runs a led-player script. After the led-player script is run a pipe file led-control will be created in the /tmp directory.  
Users can change an LED’s flashing by setting its parameters 

#echo 0 0.2 > /tmp/led-control  

After this command is executed each of the 4 LEDs will be flashing one by one with 0.2 second in between.

 

#echo 1 0.2 >/tmp/led-control  

After this command is executed 4 LEDs will be running one by one with 0.2 second in between.  

 

#/etc/rc.d/init.d/leds stop   

After this command is executed all 4 LEDs will be turned off.

 

#/etc/rc.d/init.d/leds start  

After this command is executed all 4 LEDs will be turned on. 

(2) Manipulating a Single LED  

The /bin/leds utility can be used to manipulate a single led. To launch this utility, 
users need to stop the led-player service first:

#/etc/rc.d/init.d/leds stop  

This command will stop the led-player service. To get more information for the usage of “led” you can type the following command: 

[root@fa /]# led  
Usage: leds led_no 0|1  

led_no: the LED you want to manipulate (0/1/2/3). “0” and “1” represents “turn off”and “turn on” respectively  

#led 2 1  

This will turn on LED3 



  Tel: +86-755-29638421  |    Sales Email: market@armdevs.com |  Support Email: support@armdevs.com | Gtalk: armdevs@gmail.com  
www.armbest.com | Copyright @2013 - CoreWind Technology Co.,Limited
customer service software technical support
Live Chat by Comm100