help with arduino OneButton lib <solved>
Posted: Wed Jul 29, 2015 1:07 am
Hi,
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
to
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
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
Code: Select all
pinMode(pin, INPUT); // sets the MenuPin as input
....
digitalWrite(pin, HIGH); // turn on pullUp resistor
to
Code: Select all
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