Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Rock64 LED control

Featured Replies

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
 

  • Author

Okay, I see, they are connected to out1 and out2 on the RK805 PMIC.  So they wouldn't be just GPIOs.  But - presumably - the RK805 could be told how to control them...

 

  • Author

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

 

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.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.