cancel
Showing results for 
Search instead for 
Did you mean: 

interact with TouchGFX via physical key (e.g., a GPIO button)

AAlis.23
Associate III

Split from https://community.st.com/t5/stm32-mcus-touchgfx-and-gui/how-to-work-with-buttons-without-touch-panel/td-p/165514


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:

  1. Do I have to handle everything through code by manually triggering events for widgets (like buttons)?
  2. Is there any way to map a key press (e.g., key "1") to a TouchGFX button press, similar to how the touch interface works, directly from the GUI?

Thanks in advance for any help or suggestions!

0 REPLIES 0