Open cyberman54 opened 5 years ago
I had the same, also doubleclick
I solved by manipulating the timers but it was not really elegant solution
I ended up using:
b->setOnClicked(&OnClicked_cb,100,100);
and by reading the time button is clicked:
uint32_t pushed_ms = b->getPushTime();
I simulate holding function
Meanwhile i changed to OneButton lib.
If i use events clicked and holding on the same button, they interfere: when holding the button, this generates the holding event, but also an unsolicited clicked event.