is this true that GPIO16 can only be used in read and write? other pins like D5 to D10 cant be used?
As the notice says, GPIO16 can't support interrupt. Also, it has a PullDown, but no PullUp. Other than that, it can be use as normal GPIO.
how about D5 to D8 can i use it for input button? i've been coding for hours cant find a solution
im having this error rst cause:2, boot mode:(3,6), can this be a not enough power, im powering up in VIN 5+ 2A power supply will that be enough or i should really have a 3.3v converter to power up the module
hmm when do you have the error exactly?
when the loop goes in that function
resetSsidandpwd is D0 and is set to input
well you are resetting your ESP. so you would see the above rst cause message
There are very inexpesive modules on ebay that will increase the number of GPIOs. I got some a few years ago, haven't played with them since, but if I recall, you connect the module to the esp through i2c, then there are libraries to read and write to the additional pins. I think the ones I used added 8 GPIOs
can i have a sample? i might find one in here locally (hopefully)
I didn't need to, but I'm pretty sure you can add a whole crapton of these to a single device by changing the dipswitches. I think you can add up to 64 GPIOs with these.
never saw this kinds of module here locally errrr i need 4 GPIO
The ESPhttpUpdate class only updates the bin file, correct? It doesn't overwrite the SPIFFS files. Is that right?
@ongvanor, Hi I would scrap the idea of using a resistor ladder to determine which of 4 buttons is pressed, its not reliable. As Martin suggested use an I2C port expander. I use the PCF8574 with great success for both inputs and outputs. for example I use one to get the address of a particular module. I also use one a relay driver for eight relays. So I get 8 extra inputs and 8 extra outputs for just two ESP8266 I/O pins SDA/SCL. If you use different I2C addresses with PCF8574 modules then you can expand to 256 I/O. PCF8574 modules are readily available on Ebay. I would also suggest the as you develop code to use the library examples, get them working then tweak them to suit your specific need. In that way you are starting from a solid base. Another suggestion is to go on line and look for Neil Kolban's book on the ESP8266. Its excellent!
@ongvanor@bobcroft Not reliable? I have done this with at least one project and there are several prebuilt button boards that are analog (using resistor networks). I built a library to turn it into input events here GitHub/Makuna/AnalogKeypad. The only thing you have to understand is that you can't press more than one button at a time AND that its not interrupt based so that when you code, using delays() will make it not work well; but any project of significance will avoid delays() already.