I have the OneButton-lib running on an original arduino with no problem.
As I found no specific AVR related code, I thought it save to use on ESP8266, too.
But unfortunately it isn't really useable, when you press a key it randomly detects a mix of one or more single and double clicks.
I allready changed OneButtop.cpp
pinMode(pin, INPUT); // sets the MenuPin as input
....
digitalWrite(pin, HIGH); // turn on pullUp resistor
to
pinMode(pin, INPUT_PULLUP); // sets the MenuPin as input w pullup
and disabled WiFi (WiFi.mode(WIFI_OFF)) to see if some "internal" things interfere with the OneButton timing but to no avail.
Can someone "in the know" have a look if I am missing something obvious?
Maybe reccomend a known working lib with similar functionality?
thanx a lot,
schufti