Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By lalo_uy
#23926
Alvis wrote:
martinayotte wrote:Here are some images from the Web.

Sourcing a LED has the effect of pull-down, not good it the current case :
Image

Sinking is acting like a pull-up, but the side effect is that logic is reversed, software setting GPIO to "1" turn off the LED while "0" make it glowing :
Image


This is great. It works for me with this setup.
The problem I have now is that when it boots up, the led is ON, even though I set the pin to HIGH at void setup.
I am using Blynk and I cannot find a basic guidance how to invert the pin logic.
Is there another way to make the LED off after it boots up?
Thanks !


Do you feed the LED from 5V or 3,3V? If the Led is feed from 3.3V and the GPIO is HI it can't be on.
User avatar
By Alvis
#23928 If I recall correctly, I used 3V and 220 Ohm resistor and it was working fine.
Anyway, I have given up on the esp8266 as I am more interested in the esp12 with more GPIOs.
I no longer have this issue with esp12 since I am no longer using GPIO2.