Jump to content

Rock64 LED control


richardk

Recommended Posts

I have a C++ app that wants to indicate its activity by blinking an LED on the Rock64.

 

How can the LEDs be controlled?  The sysfs leds do not appear to be present.  I'm okay with libgpiod or sysfs gpios, but I don't know what gpio numbers represent the LEDs.

 

Anyone know?  Thanks.

 

Linux rocky64 5.0.0-rockchip64 #5.85 SMP Wed May 8 19:38:28 CEST 2019 aarch64 aarch64 aarch64 GNU/Linux

 

Distributor ID: Ubuntu
Description:    Ubuntu 18.04.3 LTS
Release:        18.04
Codename:       bionic
 

Link to comment
Share on other sites

Furthermore... these i2cset commands work:

 

i2cset -f -y 1 0x18 0x52 3 # turn off both LEDs

i2cset -f -y 1 0x18 0x52 2 # turn off white, turn on red

i2cset -f -y 1 0x18 0x52 1 # turn off red, turn on white

i2cset -f -y 1 0x18 0x52 0 # turn on both red and white

 

Link to comment
Share on other sites

3 hours ago, richardk said:

It seems Armbian is missing out in some way.  The Pine64 folks know how to control them.

Good to know !

3 hours ago, richardk said:

Furthermore... these i2cset commands work:

 

i2cset -f -y 1 0x18 0x52 3 # turn off both LEDs

i2cset -f -y 1 0x18 0x52 2 # turn off white, turn on red

i2cset -f -y 1 0x18 0x52 1 # turn off red, turn on white

i2cset -f -y 1 0x18 0x52 0 # turn on both red and white

Thanks for sharing !

But in my case, white led seems to stay on, even with those commands, so only red one is controllable.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines