2023-03-08 10:28 AM
I am trying to increment a counter on touch GFX GUI by pressing a push button located on the STM32F429I-DISC1 evaluation board. There are tutorials on doing this with a push button on the touch screen but not from external hardware.
Can someone please clarify whether I need to one of the following (or neither).
> Define an interaction within touch GFX and then define a virtual function (or just function) and use the HAL_GPIO_ReadPin and then an 'if' statement to increment the counter?
> Just define a function within the Cube IDE and point that at the wildcard with the snprintf command?
If you have any literature that could help me with this then please feel free to point me at that.
Many thanks in advance.
Kind regards
Mark
2023-03-08 12:53 PM
Exist many variants, howto do this. You need choice.
Most simple is add screen handletick and in it check gpio buttons events.