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. | 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. | |||
To turn an LED on, | |||
<source lang=bash> | <source lang=bash> | ||
# Example: Turn on the Blue LED... | # Example: Turn on the Blue LED... | ||
echo 1 > /sys/class/leds/blue-led/brightness | |||
# Turn it off again... | # Turn it off again... | ||
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