2025-02-28 3:30 AM - last edited on 2025-02-28 3:53 AM by Andrew Neil
Hi,
I’m working with TouchGFX on an H743, following the example from the Nucleo board, and I have the state of a physical key (e.g., a GPIO button) available when MB1642ButtonController::sample is called. What is the simplest way to interact with TouchGFX based on this key state?
Specifically, I want to know:
Thanks in advance for any help or suggestions!
2025-08-20 3:10 AM
Hello @AAlis.23.
First of all, I apologize for the very late reply!
When you are using the ButtonController class, as it seems like you do, hardware buttons can be handled in the same way as buttons in the GUI. So, if you want to trigger an event on button "1", create an interaction and select "Trigger: Hardware button is clicked" with button key 49, which corresponds to "1". Then, you have the same actions available as you have for GUI buttons.
Best regards,
Johan