range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 36 www.xunlong.tv
3.5. On-board LED light display control instructions
1) There are two LED lights on the development board, one green light and one red light.
The default display of the LED lights when the system starts is as follows
Kernel boot to enter the
system
2) The method of setting the green light on and off and flashing is as follows (take
linux3.4 system as an example)
a. First enter the green light setting directory
root@orangepi:~# cd /sys/class/leds/green_led
b. The command to set the green light off is as follows
root@orangepi:/sys/class/leds/green_led# echo 0 > brightness
c. The command to set the green light is as follows
root@orangepi:/sys/class/leds/green_led# echo 1 > brightness
d. The command to set the green light to flash is as follows
root@orangepi:/sys/class/leds/green_led# echo heartbeat > trigger
e. The command to set the green light to stop flashing is as follows
root@orangepi:/sys/class/leds/green_led# echo none > trigger
3) The method of setting the red light on and off and flashing is as follows (take the
linux3.4 system as an example)
a. First enter the red light setting directory
root@orangepi:~# cd /sys/class/leds/red_led
b. The command to set the red light off is as follows
root@orangepi:/sys/class/leds/red_led# echo 0 > brightness
c. The command to set the red light to be always on is as follows
root@orangepi:/sys/class/leds/red_led# echo 1 > brightness
d. The command to set the red light to flash is as follows
root@orangepi:/sys/class/leds/red_led# echo heartbeat > trigger
e. The command to set the red light to stop flashing is as follows