There are two different ways to wire up a basic LED circuit to ESP32 3V
and GND
GND
to a blue bus on the side of your breadboard3V
to a red bus on the side of your breadboard220R
(or similar) to run the 3V
signal to the inside of your breadboard220R
, the shorter pin goes to and adjacent rowGND
with a wireGND
to a blue bus on the side of your breadboard3V
to a red bus on the side of your breadboard3V
signal to the inside of your breadboardGND
with a 220R
There is a built-in (internal) LED on the ESP32 that is tied to pin 13, the code below will cause it to rhythmically blink
'''
blink.py (internal led)
'''
from machine import Pin
from time import sleep
led = Pin(13, Pin.OUT)
while True:
led.value(1)
sleep(0.5)
led.value(0)
sleep(0.5)
With some simple rewiring one can connect the external LED from above to pin 13 so it blinks in time with the built-in (internal) LED
GND
to a blue bus on the side of your breadboard3V
to a red bus on the side of your breadboardGND
with a 220R