What are the correct pin-outs for ESP8266 12F ?
Posted: Sun Mar 19, 2017 7:28 pm
Hi there
I am using and ESP8266 12F which I can successfully program using arduino ide version 1.65.
When running the code bits below , only GPIO2 ever goes High.(or low based on code change).
My question is :
How can I access the rest of the pins eg GPIO4 ?
Where can I fix the issuse ? (is it pin mappings that are missing ?
I hope someone can shed some light and/or help me as I would love it if I could access all GPIO's.
Thank you
D
I am using and ESP8266 12F which I can successfully program using arduino ide version 1.65.
When running the code bits below , only GPIO2 ever goes High.(or low based on code change).
My question is :
How can I access the rest of the pins eg GPIO4 ?
Where can I fix the issuse ? (is it pin mappings that are missing ?
I hope someone can shed some light and/or help me as I would love it if I could access all GPIO's.
Thank you
D
Code: Select all
int ledPin = 2;
int relayPin = 4;
pinMode(ledPin, OUTPUT);
pinMode(relayPin, OUTPUT);
digitalWrite(ledPin, HIGH); // sets the LED on
delay(1000); // wait for a second
digitalWrite(ledPin, LOW); // sets the LED off
delay(1000); // wait
digitalWrite(relayPin, HIGH); // sets the LED on
delay(1000); // wait
digitalWrite(relayPin, LOW); // sets the LED off
delay(1000); // wait