SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
By daleschultz
#201391
Hi all,

I am relatively new to this world so I have a rather nooby question...

at https://learn.sparkfun.com/tutorials/es ... e-overview
it states that pin labeled 14 "Can either be used as ESP8266 GPIO14 or I2C serial clock (SCL)."

My question is - do we have to do anything to prepare the pin to be used as a GPIO?
How will the board 'know' that the pin is now perhaps connected to a relay or LED?

Can we simply expect to do this?
pinMode(14,OUTPUT);digitalWrite(14,HIGH);
The page goes on to say:
The lower part of the header breaks out one of the ESP8266’s serial UARTs. This serial port is used to program the thing, so be careful using it for other tasks.
This suggests that using GPIO7 and GPIO8 would interfere with serial communication... how can we know which ones are safe to use??

A project I am working on will need 7 outputs to drive 7 relays, so I am trying to work out which pins to use. There are 4 that seem to have no overlap with any other functionality (0, 4, 5 , 15)

GPIO12 and GPIO13 are also MISO and MOSI - if I am not using SPI, I hope I can use them.

GPIO16 is also the deep sleep wake up. I plan on providing power continuously so I don't see me needing to use a sleep mode (presumably to save battery power). Does pinMode(16,OUTPUT) force it to be used as an output and not a wake up input?
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]