BRT Community

General Category => Discussion - EVE => Topic started by: chadpham75 on August 09, 2021, 08:38:29 AM

Title: Button press/release vs. holding example
Post by: chadpham75 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.
 
Title: Re: Button press/release vs. holding example
Post by: BRT Community 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