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
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