You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hello,
how about a function to retrieve the number of buttonclicks and/or short or long press?
e.g.
void loop() {
button1.tick();
button2.tick();
if(button1.click()) { // returns 0 if no click - or number of clicks or long press
Serial.println(button1.click() ); // 1 for single click , 2 for doubleClick, 3 for long press
}
// or
if(button2.click() == 1) {do something ;}
if(button2.click() == 2) {do other special;}
if(button2.click() == 3) {do something else;}
delay(10);
} // loop
The text was updated successfully, but these errors were encountered:
dsyleixa
changed the title
function to retrive number of buttonclicks and short or long press?
function to retrieve number of buttonclicks and short or long press?
Nov 28, 2018
hello,
how about a function to retrieve the number of buttonclicks and/or short or long press?
e.g.
The text was updated successfully, but these errors were encountered: