Button, long press and short press
Posted: Tue Jul 16, 2019 3:12 am
I want to connect a push button switch to some pin on an ESP8266.
I want to be able to detect (and distinguish) long press and short press.
I read about Arduino libraries that make this really easy, also offering debounce.
Is there something for ESP8266?
Or is there some Arduino library that can be used with ESP8266?
Also, I 'm thinking of connecting the button this way:
Is it ok? Can I do it with less components?
I want to be able to detect (and distinguish) long press and short press.
I read about Arduino libraries that make this really easy, also offering debounce.
Is there something for ESP8266?
Or is there some Arduino library that can be used with ESP8266?
Also, I 'm thinking of connecting the button this way:
Is it ok? Can I do it with less components?