Skip to main content
SZY.1
Associate
October 21, 2022
Question

Long Press Button Using Hardware push Button

  • October 21, 2022
  • 2 replies
  • 1438 views

Hi,

I am designing counter with hardware button using Nucleo-F767ZI (freertos) with GFX01M1. the idea is when i hold the push button (eg. 5 sec or more) counter will increase by 10 each if single press, counter will increase by 1. right now it's only work for single press. when i hold the push button it's only increase by 1 like single press.

I'm new to programming as well so a complete answer will be highly appreciated. Thanks

This topic has been closed for replies.

2 replies

Osman SOYKURT
ST Technical Moderator
October 24, 2022

Hello SZY.1,

I think this question was already answered here. Another post also treats this subject here.

Let us know if you succeed on making what you need or if you would like more help.

/Osman

ST Software Developer | TouchGFX
SZY.1
SZY.1Author
Associate
October 25, 2022

hi,

Thanks for your reply. i still not succeed. the counter still working like single button.