marcobrianza / ClickButton

A simple button Arduino library to get short and long clicks, multiple clicks (double click, triple click etc.). Click-and-hold is also possible.
63 stars 28 forks source link

Fix digitalWrite not activating pull-up on ESP8266 Arduino Core 2.6.1. #5

Closed cstanke closed 3 years ago

cstanke commented 4 years ago

According to this documentation,

Prior to Arduino 1.0.1, it was possible to configure the internal pull-ups in the following manner:

pinMode(pin, INPUT);           // set pin to input
digitalWrite(pin, HIGH);       // turn on pullup resistors

Now, according to the same document linked to above, it says we should be:

setting the pinMode() as INPUT_PULLUP.