Error when trying to run a simple code.
Posted: Mon Sep 03, 2018 3:06 am
Hi, I am completely new to ESP8266. I recently purchased a ESP 12E module along with a FTDI board and followed the instructions from the link below.
https://www.instructables.com/id/ESP-12F-ESP8266-Module-Minimal-Breadboard-for-Flas/
I managed to upload the code using the schematic shown in that link. Click upload, hold flash button, once upload begins, tap reset and let go of the flash button, this gave me the following output.
But I don't see the desired result. I am expecting to blink an LED via GPIO4 which should happen from the code I am using.
The preferences chosen are as shown below.
https://www.instructables.com/id/ESP-12F-ESP8266-Module-Minimal-Breadboard-for-Flas/
I managed to upload the code using the schematic shown in that link. Click upload, hold flash button, once upload begins, tap reset and let go of the flash button, this gave me the following output.
But I don't see the desired result. I am expecting to blink an LED via GPIO4 which should happen from the code I am using.
Code: Select all
/* example from http://www.arduinesp.com/examples */
/* to be flashed directly to ESP8266 */
int ledPin = 4;
void setup()
{
pinMode(ledPin, OUTPUT);
}
void loop()
{
digitalWrite(ledPin, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(ledPin, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
The preferences chosen are as shown below.