Blink an external LED wired to the ESP32-S3 via a breadboard. This introduces basic circuit concepts: LEDs, resistors, and breadboards.
An LED is a diode that emits light when current flows through it. It is polar — current must flow in the correct direction:

Warning: Never connect an LED directly to power without a resistor. Operating voltage range: 1.9V–3.4V. Exceeding this will burn out the LED.
Resistors limit current flow, protecting the LED. Resistance is measured in Ohms (Ω). Value is indicated by coloured bands on the body.

Ohm’s Law: I = V / R
Resistors are non-polar — direction doesn’t matter.
For more details on resistors see Resistors reference doc
Rows of holes on a breadboard are electrically connected internally. Insert components into the same row to connect them without soldering. Power rails (marked + and −) run along the sides. The ESP32 micro controller is plugged into a breadboard.


Wiring Instructions:

Wiring notes:
Caution: Avoid short circuits — never connect 5V or 3.3V directly to GND.
File: ./Blink.py
from time import sleep_ms
from machine import Pin
led = Pin(2, Pin.OUT) # create LED object from pin2, Set Pin2 to output
try:
while True:
led.value(1) # Set led turn on
sleep_ms(1000)
led.value(0) # Set led turn off
sleep_ms(1000)
except:
pass
The code is the same as before, GPIO2 controls both the built-in LED and the external LED wired in this circuit.
01_first_examples/code.Blink.py.Circuits can be represented with a wiring diagram like we saw above or a schematic diagram. A wiring diagram shows how the circuit is connected in the real world, the schematic diagram shows how it is electrically connected.
Here is a schematic for this circuit

Adapted from Python_Tutorial.pdf Project 1.2