1 1

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

Recommended Posts

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..

Share this post

Link to post
Share on other sites
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


 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



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.

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.

1 1