Skip to main content
Associate II
November 11, 2023
Question

How to suppress shaking with buttons in Touchgfx

  • November 11, 2023
  • 1 reply
  • 1800 views

When using touchgfx buttons, a single press can trigger multiple times, and using regular software to delay seems to have no effect. Do you have a good way to suppress shaking or detect button bounce?

This topic has been closed for replies.

1 reply

Tinnagit
Senior II
November 11, 2023

I use sampling time to get data from touchscreen.

JixAuthor
Associate II
November 11, 2023

Can that achieve the effect of shaking reduction? Is the specific implementation of the method you mentioned operating in the C language or touchgfx C++code

Tinnagit
Senior II
November 11, 2023

I just use systemTick to repeat get data from touchscreen every 100ms and I update the screen every second by a function that it's created from interactive with N Tick and it was refreshed every second.
I didn't use a build-in button function.
I had create process flow by myself.