2023-05-04 04:14 AM
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!
2023-05-13 12:59 AM
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...