cancel
Showing results for 
Search instead for 
Did you mean: 

How to add GPIO mapping into TouchGFX for external events as custom triggers.

BNorv.1
Associate

I am fairly new to the STM environment and currently working with the STM32H747 DISCO board. I am also using TouchGFX version4.21.3, STMCubeIDE version 1.12.1 with STMCubeMX 6.8.0.

I am currently trying to follow the tutorial on the TouchGFX website about "External events as Triggers" under Development > Scenarios. I first made the project in TouchGFX and then used STMCubeMX to set up the wakeup button (PC13) an an input pin with a pull down. From this the generated code is how it should be but I am unsure from there what I am doing correctly or not.

After the "TouchGFX HAL Development" heading there is a segment of code which a class is created and void touchgfx_init() to initialize the button.

The touchgfx_init() function is located within the "TouchGFXConfiguration.cpp" file. I decided to create the class in the same file and initialize it like in the tutorial. The tutorial then goes on to create mapping but I cannot find any settings in TouchGFX to create the mapping so I can use it as a trigger.

Any help would be greatly appreciated, I do apologise if I seem clueless but it does feel that way.

Thank you in advance!

1 REPLY 1
MM..1
Chief III

On every new version is implementing buttons changed, then maybe better is use your own.

Simply in model.cpp exist func tick run in touchgfx repeatly as GUI main... place some check buttons here...