SuperMini blink
The blue LED on GPIO 8 lights when the pin is low and an LED on GPIO 2 when it is high, on the smallest ESP32-C3 board. The whole build, an ESP32-C3 SuperMini and 2 more parts, runs here in your browser on the firmware below; open it in the editor to change the wiring or the code and run it again.
Runs in your browser. Free, and no account needed.
The code
The firmware exactly as the editor opens it. Change a line there and press Run: it compiles in the browser.
// Blink, with an LED that is the other way round.
//
// The SuperMini's blue LED is on GPIO 8, so LED_BUILTIN is 8, the same number
// as on the DevKitM-1. The difference is the wiring: here the LED runs from
// 3V3 through a resistor to the pin, so the pin has to go LOW to light it.
// An LED you wire yourself from GPIO 2 to GND is the ordinary way round, so
// the two are always opposite.
const int WIRED = 2;
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
pinMode(WIRED, OUTPUT);
}
void loop() {
digitalWrite(LED_BUILTIN, LOW); // the blue LED on
digitalWrite(WIRED, HIGH); // the wired LED on
delay(500);
digitalWrite(LED_BUILTIN, HIGH);
digitalWrite(WIRED, LOW);
delay(500);
}
Parts list
4 parts, plus the jumper wires. Every one is in the editor's parts bin.
- 1 × ESP32-C3 SuperMini
- 1 × Full-size breadboard
- 1 × Resistor, 220 Ω
- 1 × LED, red
How it is wired
3 connections, pin by pin, read from the circuit itself. Each line is one set of pins joined together, by a jumper wire or a breadboard strip.
- Ground: ESP32-C3 SuperMini pin GND; LED, red pin C
- ESP32-C3 SuperMini pin 2; Resistor, 220 Ω pin 1
- Resistor, 220 Ω pin 2; LED, red pin A
Change it and keep it
Open it in the editor, change the circuit or the code, and keep your version in a free account.