Counting the seconds a button keep being pressed.

Status
Not open for further replies.


Hey, thats exactly what I did Thanks!
I used a counter and counted until 30.
I just checked it and it works well, of couse I'll need to double check it when I'm less tired.

At first, I set the Momentary_Pressing_time to 100ms, and was wondering why when I pressed it a regular short press it didnt do anything, I thought there was something wrong with the mechanism.
But after debugging it, I relazied that a regular short pressing lasts somewhere between 100msec and 200msec

So right now I consider a regular pressing as any pressing that lasts up to 200mSec.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…