Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By Chris Burns
#39775 That sounds so easy, right :D

This is probably a redundant question, but being a noob I wanted to ask it. Could you recommend any doc/guide you followed to help you get to the point of understanding capacitive buttons' with the ESP8266? That way I'm not taking up too much of your time ;)

I looked up the internal pull up resistor, and believe it is on "GPIO0", or D3 of NodeMCU. http://www.14core.com/wp-content/upload ... agram1.png

If I am reading your code correctly, how would modify your original sketch?
#define send_pin 12
#define float_pin 14

At the moment you are using pins 12, and 14. If I am understanding it correctly, would I modify one of the pins to point at "0" and wire the other one to GPIO14? Thus making the change:
#define send_pin 0
#define float_pin 14

Thank you so much for your help. I really appreciate it.
User avatar
By philbowles
#71733 This all seems like a lot of hard work. I use these: Image

They cost a euro or two for 20 on ebay and they "just work". No extra hardware, no special library code. No bounce, they are either 1 when touched or 0 when not - and that can be reversed for "difficult" GPIO pins by soldering a bridge or 0-ohm resistor onto the board.

PLUS they work through the casing of a cheap plastic project box. I use them in my home iot wall switches