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.

Use of hardware buttons connected to GPIO to control the GUI in Qt

Featured Replies

Hi All,

I am working on project using Qt(IDE), C++(language) and opencv libraries.

The board I am using is Olimex Olinux A64.
In the project I have a GUI that displays the input from a camera and has various status indicator labels.
These labels indicate various states the system is in at any particular instance of time.
I load different images in the labels to indicate different states.
As of now the trigger to change the image of a label comes from soft buttons written in c++ using the Qt buttons layout.
I am trying to find a way to control the change of images in the labels using hardware buttons that are connected to the GPIOs of the A64 board.
Could anyone point me in the right direction? Please fell free to comment if my query seems unclear.
Any help is much appreciated.

Thanks in advance..

4 hours ago, Abhishek said:

point me in the right direction?

Within armbian you find following User-Supported options for GPIO and more:
ArmbianIO (sysFS) or
UserSpaceIO (libgpiod),
pyGPIO accesses 'pins' directly through /dev/mem


 ArmbianIO API
https://forum.armbian.com/topic/5655-armbianio-api-proposal/

 

 User Space IO is Python 3 and Java 8 bindings for user space GPIO, SPI, I2C, PWM and Serial interfaces
https://forum.armbian.com/topic/6523-user-space-io-is-python-3-and-java-8-bindings-for-user-space-gpio-spi-i2c-pwm-and-serial-interfaces/

 

 pyGPIO - A 'more general' python GPIO library based on pyA20
https://forum.armbian.com/topic/5662-pygpio-a-more-general-python-gpio-library/

 

 

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.