BRT Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the Bridgetek Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ Bridgetek Support

Please refer to our website for detailed information on all our products - Bridgetek - Bridging Technology

Author Topic: Button press/release vs. holding example  (Read 8530 times)

chadpham75

  • Newbie
  • *
  • Posts: 21
    • View Profile
Button press/release vs. holding example
« on: August 09, 2021, 08:38:29 AM »

Hi Bridgetek Community,
I am using BT815 module (capacitance touch display).  I am successfully creating page with buttons, but I can't figure out how to distinguish between the button press and release vs. holding for certain number of milliseconds.
Is there any app note or suggestion where I can find more information for implementation of the button is press or hold?
Thank you so much for your helps.
 
Logged

BRT Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 745
    • View Profile
Re: Button press/release vs. holding example
« Reply #1 on: August 09, 2021, 11:44:20 AM »

Hello,

Thank you for your question.

Unfortunately there isn't any functionality within the touch registers on EVE that would denote a 'hold' at a specific touch location on the screen or tagged object.
This functionality would need to be implemented in your MCU code, for example your touch routine would need to determine if first, a touch has occurred, then if the touch is on a tagged object, then you check that within a given time period that the REG_TOUCH_TAG register is still reporting the same value, to establish if a 'hold' has occurred.

Best Regards,
BRT Community
Logged