TS-7180 LEDs: Difference between revisions

From embeddedTS Manuals
(Created page with "There are four LEDS on the TS-7180 that may be controlled by the user. These are colored yellow, green, red, and blue. Each LED has an enable IO that controls its on/off sta...")
 
No edit summary
Line 1: Line 1:
There are four LEDS on the TS-7180 that may be controlled by the user.  These are colored yellow, green, red, and blue.  Each LED has an enable IO that controls its on/off state.
There are four LEDS on the TS-7180 that may be controlled by the user, through the sysfs interface.  These are colored yellow, green, red, and blue.   


{|class=wikitable
To turn an LED on, write a 1 to 'brightness'.  To turn it off again, write a 0.
|-
! LED
! IO Enable
|-
| Yellow
| 2
|-
| Green
| 3
|-
| Red
| 4
|-
| Blue
| 5
|-
|}
 
To turn an LED on, set its IO Enable high.  To turn it off again, set the IO Enable low.


<source lang=bash>
<source lang=bash>
# Example:  Turn on the Blue LED...
# Example:  Turn on the Blue LED...
tshwctl -a 5 -w 3
echo 1 > /sys/class/leds/blue-led/brightness


# Turn it off again...
# Turn it off again...
tshwctl -a 5 -w 1
echo 0 > /sys/class/leds/blue-led/brightness
</source>
</source>

Revision as of 11:58, 5 July 2017

There are four LEDS on the TS-7180 that may be controlled by the user, through the sysfs interface. These are colored yellow, green, red, and blue.

To turn an LED on, write a 1 to 'brightness'. To turn it off again, write a 0.

# Example:  Turn on the Blue LED...
echo 1 > /sys/class/leds/blue-led/brightness

# Turn it off again...
echo 0 > /sys/class/leds/blue-led/brightness