cancel
Showing results for 
Search instead for 
Did you mean: 

Increment Counter on Touch GFX from external (PCB Hardware) pushbutton.

MBode.2
Associate II

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

1 REPLY 1
MM..1
Chief III

Exist many variants, howto do this. You need choice.

Most simple is add screen handletick and in it check gpio buttons events.