I've connected a Wemos D1 mini running micropython v1.12 on a breadboard with a rgb led.
G (GND) with the cathode of the led. D1,D2,D3 over a resistor to the connectors of r,g,b.
When supplying power by connecting the MicroUSB port the led glows slightly red. But without any code executed.
When defining the GPIOs with
Code: Select all
red = machine.Pin(0, machine.Pin.OUT, value=0) #D3 green = machine.Pin(4, machine.Pin.OUT, value=0) #D2 blue = machine.Pin(5, machine.Pin.OUT, value=0) #D1
When executing machine.deepsleep() the led glows slightly red again.
Why is there a flowing current before executing any code and in deepsleep mode?