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?