TS-7180 LEDs: Difference between revisions

From embeddedTS Manuals
No edit summary
(Add mention of triggers to LED documentation)
 
Line 1: Line 1:
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.   
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, write a 1 to 'brightness'.  To turn it off again, write a 0.
Line 10: Line 10:
echo 0 > /sys/class/leds/blue-led/brightness
echo 0 > /sys/class/leds/blue-led/brightness
</source>
</source>
A number of triggers are also available for each LED, including timers, disk activity, and heartbeat. These allow the LEDs to represent various system activities as they occur. See the [https://www.kernel.org/doc/Documentation/leds/leds-class.txt kernel LED documentation] for more information on triggers and general use of LED class devices.

Latest revision as of 15:37, 13 July 2021

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

A number of triggers are also available for each LED, including timers, disk activity, and heartbeat. These allow the LEDs to represent various system activities as they occur. See the kernel LED documentation for more information on triggers and general use of LED class devices.