0
SaiHou

OrangePi PC on board LEDs on ARMBIAN Stretch 4.14.84-sunxi

Recommended Posts

Dear experts,

 

I would like to make my OrangePi PC on board LEDs works like power (Green: Default ON) and status (Red:heartbeat blinking).

 

root@orangepipc:~# ls -1 /sys/class/leds/
orangepi:green:pwr
orangepi:red:status
root@orangepipc:~#
 

Any experts can assist me on this matter on edit in /etc/rc.local to get it works. Thanks in advance and appreciated your help.

 

Regards,

Sai Hou

Share this post


Link to post
Share on other sites
7 hours ago, SaiHou said:

Thanks for the info.

It works now.

Cheers.

now back at home:

echo 'heartbeat'  > /sys/class/leds/orangepi:red:status/trigger
echo 'default-on' > /sys/class/leds/orangepi:green:pwr/trigger

 

Share this post


Link to post
Share on other sites
6 hours ago, guidol said:

now back at home:


echo 'heartbeat'  > /sys/class/leds/orangepi:red:status/trigger
echo 'default-on' > /sys/class/leds/orangepi:green:pwr/trigger

 

 

Hi guidol,

 

Thanks for the reply.

 

Yes, I did as per above stated.

 

Regards,

SaiHou

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
0