Chat freely about anything...

User avatar
By wbparkinson
#65708 I have been able to upload the Blink example onto my esp8266 using as arduino uno, but the light is not blinking. I have tried restarting the module with the GPIO0 pin disconnected, connecting LEDs to GPIO0 and GPIO2 pins to see if maybe the code was blinking through a different pin. Here is the code I'm using:
void setup() {
pinMode(LED_BUILTIN, OUTPUT); // Initialize the LED_BUILTIN pin as an output
}

void loop() {
digitalWrite(LED_BUILTIN, LOW); // Turn the LED on (Note that LOW is the voltage level
// but actually the LED is on; this is because
// it is acive low on the ESP-01)
delay(1000); // Wait for a second
digitalWrite(LED_BUILTIN, HIGH); // Turn the LED off by making the voltage HIGH
delay(2000); // Wait for two seconds (to demonstrate the active low LED)
}
User avatar
By martinayotte
#65759 How did you connect the LED ?
If it is anode on GPIO and cathode to GND, "source mode", it won't work, because GPIO0/GPIO2 need to be HIGI to boot properly. It needs to be connected in "sink mode" :
Image
(note : use 3.3V on the anode, not 5V as shown above)