how to control Neo Plus2 on board LED
Posted: Wed Aug 16, 2017 4:24 pm
Hi,
I am interest to modify the use of BLUE on board LED, from it flash regularly, into an activity LED of SD card (or anything else)
Refer to Dietpi forum, people can successfully add below code into Nanopi Neo (I have one... and it is interesting)
and now, I have an Neo Plus 2 with Ubuntu, found the control may different, like to know if anyone have experience or knowledge to add any script to modify the usage?
I am using Ubuntu 20170630img.
below the code to put in rc.local
#### switch on blue LED for sd-card activity
echo 1 >/sys/class/leds/blue_led/brightness
echo mmc0 >/sys/class/leds/blue_led/trigger
#### switch on blue LED for heartbeat
## echo 1 >/sys/class/leds/blue_led/brightness
## echo heartbeat >/sys/class/leds/blue_led/trigger
#### switch off blue LED
## echo 0 >/sys/class/leds/blue_led/brightness
## echo none >/sys/class/leds/blue_led/trigger
exit 0
thank you!
I am interest to modify the use of BLUE on board LED, from it flash regularly, into an activity LED of SD card (or anything else)
Refer to Dietpi forum, people can successfully add below code into Nanopi Neo (I have one... and it is interesting)
and now, I have an Neo Plus 2 with Ubuntu, found the control may different, like to know if anyone have experience or knowledge to add any script to modify the usage?
I am using Ubuntu 20170630img.
below the code to put in rc.local
#### switch on blue LED for sd-card activity
echo 1 >/sys/class/leds/blue_led/brightness
echo mmc0 >/sys/class/leds/blue_led/trigger
#### switch on blue LED for heartbeat
## echo 1 >/sys/class/leds/blue_led/brightness
## echo heartbeat >/sys/class/leds/blue_led/trigger
#### switch off blue LED
## echo 0 >/sys/class/leds/blue_led/brightness
## echo none >/sys/class/leds/blue_led/trigger
exit 0
thank you!