-->
Page 2 of 2

Re: Another Noob

PostPosted: Thu Dec 02, 2021 11:38 am
by L67GS
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?

Re: Another Noob

PostPosted: Fri Dec 03, 2021 11:28 am
by QuickFix
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.

Re: Another Noob

PostPosted: Thu Dec 16, 2021 3:54 pm
by L67GS
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....

Re: Another Noob

PostPosted: Fri Dec 17, 2021 12:50 am
by L67GS
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.