5 mm LED
Light-emitting diode. It only lights up when current flows the right way: the long leg (anode, +) goes to the positive side. Always use a series resistor to limit the current.
Pinout
| Pin | Connect to | Note |
|---|---|---|
| A (anode, +) | GPIO through the resistor (e.g. 220 Ω) | longer leg |
| C (cathode, −) | GND | short leg, flat side of the body |
FastMindLocal AI assistant
The AI that remembers your life and lives on your computer
- Long-term memory with the source of every answer
- Works offline: your data stays on your PC
- Reads PDFs, slides, photos and meeting recordings
Essential plan free forever
MicroPython example
from machine import Pin
import time
led = Pin(15, Pin.OUT) # GPIO15 → 220 Ω resistor → LED → GND
while True:
led.on()
time.sleep(0.5)
led.off()
time.sleep(0.5)
Specifications
| Item | Value | Source |
|---|---|---|
| Forward voltage (Vf) | red ~2.0 V · yellow ~2.1 V · green ~2.2 V · blue/white ~3.1 V | Typical datasheet values — Under review: measure the lab LEDs |
| Maximum current | ~20 mA | Typical datasheet values |
| With 3.3 V and 220 Ω | red ≈ 6 mA; blue ≈ 1 mA (dim) | Calculation: (3.3 − Vf) / 220 Ω |
Values marked "Under review" will still be checked against the parts in the lab.