So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By L67GS
#92976 Hey, wait a minute, if 6,7,8 & 11 are unavailable as GPIO does that also mean they're unavailable to send/receive SPI data externally?
User avatar
By QuickFix
#92986 Yes and no.

The ESP8266 is only a controller that needs software/firmware to function.
This software is stored inside external FLASH memory that is connected to the first SPI-bus, so it can't be used for other purposes.

However... in theory it is possible to share that SPI-bus with other SPI devices by using separate CS-lines for every device.
I've read about it in the past, but never done it myself, so I can't comment on any implications that might arise.

It's generally much easier to use the ESP32 instead if you're in need of extra GPIO.
User avatar
By L67GS
#93105 Can anyone recommend some sample code to study to learn how to use analog and i2c inputs? I'm still experimenting with ESP12F, and a sample program I put together to get data with curl.

Also, I'm getting close to the point where I'll need to send more data, right now I'm publishing to an HTML header, but I'll need to get data into the body and reflect the status of all the IO in one publication at some point to use an entire 12F. Mostly just to see if I can do it.

I think this would also help with a hanging issue I get with curl, my theory is that it's trying to read while the ESP is publishing. I thought I saw somewhere about sending a request, then the ESP would publish after receiving the request.

Sorry to ask so many questions....
User avatar
By L67GS
#93108 Got analog working on both sides, and learned Arduino IDE has it's own quirky method instead of simply using stoi or to_string to convert an int to a string.

Still could use some guidance with the other stuff.