myc:green:user1 myd:green:user2
Control the MYD-AM335X-Y LED by
echo
command as below:
D3
:
#echo
"1"
> /sys/class/leds/myc\:green\:user1/brightness
#echo
"0"
> /sys/class/leds/myc\:green\:user1/brightness
D2
:
#echo
"1"
> /sys/class/leds/myd\:green\:user2/brightness
#echo
"0"
> /sys/class/leds/myd\:green\:user2/brightness
View the device node of MYD-AM335X-J LED devices as below:
# ls /sys/class/leds
myc:green:user1 myd:green:user2
Control the MYD-AM335X-J LED by
echo
command as below:
D3
:
# echo
"1"
> /sys/class/leds/myc\:green\:user1/brightness
# echo
"0"
> /sys/class/leds/myc\:green\:user1/brightness
D2
:
# echo
"1"
> /sys/class/leds/myd\:green\:user2/brightness
# echo
"0"
> /sys/class/leds/myd\:green\:user2/brightness
Control the LEDs by 'led_test' application as below:
# led_test -h
Usage: led_test [options]
Version 1.0
Options:
-d | --device name led name myc:blue:cpu0
-l | --light brightness led brightness. 0~255 0: off.
-h | --help Print this message
# led_test -d myc:green:user1 -l 0
Set led myc:green:user1 off, brightness = 0
# led_test -d myc:green:user1 -l 1
Set led myc:green:user1 on, brightness = 1
52