Last active
May 3, 2018 04:18
-
-
Save discarn8/54ffd67f0cac8da27c649b4b30cffb04 to your computer and use it in GitHub Desktop.
NanoPi Neo Blue LED
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Make a backup: | |
cp /etc/rc.local /etc/rc.local.bac | |
#Edit: | |
nano /etc/rc.local | |
#Add following lines before "exit 0 ": | |
#[Example - edit or uncomment line you needed.] | |
#### switch on blue LED for sd-card activity | |
echo 1 >/sys/class/leds/blue_led/brightness | |
echo mmc0 >/sys/class/leds/blue_led/trigger | |
#On FriendlyElec OS | |
echo 1 > /sys/class/leds/nanopi:blue:status/trigger | |
echo mmc0 > /sys/class/leds/nanopi:blue:status/trigger | |
#### switch on blue LED for heartbeat | |
## echo 1 >/sys/class/leds/blue_led/brightness | |
## echo heartbeat >/sys/class/leds/blue_led/trigger | |
#On FriendlyElec OS | |
echo 1 > /sys/class/leds/nanopi:blue:status/trigger | |
echo heartbeat > /sys/class/leds/nanopi:blue:status/trigger | |
#### switch off blue LED | |
## echo 0 >/sys/class/leds/blue_led/brightness | |
## echo none >/sys/class/leds/blue_led/trigger | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment