ESP32-C3 Super Mini Built-In LED Pin: GPIO8 or Pin 15?

Published
Updated
The ESP32-C3 Super Mini is a compact Wi-Fi and Bluetooth development board based on the Espressif ESP32-C3 chip. It is a popular board for small IoT projects because it is tiny, cheap, USB-C powered, and easy to use with the Arduino IDE.
One of the first things many users try is the Blink sketch. But on the ESP32-C3 Super Mini, the built-in LED pin can be confusing because different board variants and Arduino board definitions may not behave exactly the same.
For most ESP32-C3 Super Mini boards, the built-in blue LED is connected to GPIO8. On many boards, this LED is also active-low, which means LOW turns the LED on and HIGH turns it off.
However, some users report that pin 15 or LED_BUILTIN works on their board instead. If GPIO8 does not blink the onboard LED, try LED_BUILTIN or pin 15 as a fallback.
Quick Answer
| LED Function | Common Pin |
|---|---|
| Built-in blue LED | GPIO8 |
| Possible variant / Arduino mapping | LED_BUILTIN or pin 15 |
| Red power LED | Not software-controlled |
In most cases, start with GPIO8:
#define LED_PIN 8
If that does not work, try:
#define LED_PIN LED_BUILTIN
or:
#define LED_PIN 15
Basic ESP32-C3 Super Mini Blink Code
Try this code first. It works on many ESP32-C3 Super Mini boards where the onboard LED is connected to GPIO8.
#define LED_PIN 8
void setup() {
pinMode(LED_PIN, OUTPUT);
}
void loop() {
digitalWrite(LED_PIN, LOW); // LED ON on many ESP32-C3 Super Mini boards
delay(500);
digitalWrite(LED_PIN, HIGH); // LED OFF
delay(500);
}
If the LED blinks, your board uses GPIO8 for the built-in LED.
Why LOW Turns the LED On
Many ESP32-C3 Super Mini boards use an active-low onboard LED. This means the LED is wired so that the GPIO pin sinks current instead of sourcing it.
The result is inverted logic:
| GPIO Output | LED State |
|---|---|
LOW |
ON |
HIGH |
OFF |
This is normal. The board is not broken. It simply means the onboard LED turns on when the pin is pulled low.
Try LED_BUILTIN
Some Arduino board definitions already define the onboard LED pin as LED_BUILTIN. If GPIO8 does not work, try this version:
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
digitalWrite(LED_BUILTIN, LOW);
delay(500);
digitalWrite(LED_BUILTIN, HIGH);
delay(500);
}
If this works, your selected Arduino board profile has the correct built-in LED mapping.
If it does not work, your board package may not define LED_BUILTIN correctly for your ESP32-C3 Super Mini.
Try Pin 15 If GPIO8 Does Not Work
Some users report that pin 15 works for the onboard LED on their ESP32-C3 Super Mini setup. This may be due to board variants, clone differences, or Arduino pin mapping.
Try this sketch if GPIO8 and LED_BUILTIN do not blink the onboard LED:
#define LED_PIN 15
void setup() {
pinMode(LED_PIN, OUTPUT);
}
void loop() {
digitalWrite(LED_PIN, LOW);
delay(500);
digitalWrite(LED_PIN, HIGH);
delay(500);
}
If this works, use pin 15 for your specific board.
However, do not assume every ESP32-C3 Super Mini uses pin 15. GPIO8 is still the most common onboard LED pin reported for this board.
LED Pin Test Sketch
If you are not sure which pin controls your built-in LED, use this test sketch. It tries GPIO8, LED_BUILTIN, and pin 15 one by one.
int testPins[] = {
8,
LED_BUILTIN,
15
};
const char* pinNames[] = {
"GPIO8",
"LED_BUILTIN",
"Pin 15"
};
void setup() {
Serial.begin(115200);
delay(1000);
for (int i = 0; i < 3; i++) {
pinMode(testPins[i], OUTPUT);
digitalWrite(testPins[i], HIGH);
}
}
void loop() {
for (int i = 0; i < 3; i++) {
Serial.print("Testing ");
Serial.println(pinNames[i]);
digitalWrite(testPins[i], LOW);
delay(700);
digitalWrite(testPins[i], HIGH);
delay(700);
}
}
Open the Serial Monitor at 115200 baud. Watch the onboard LED and check which pin name is printed when it blinks.
Is GPIO8 Safe to Use?
GPIO8 can be used to blink the onboard LED, but it is not the best pin for external circuits.
On the ESP32-C3, GPIO8 is a strapping pin. Strapping pins are checked during reset or power-up to decide how the chip should boot.
The ESP32-C3 strapping pins include:
| Pin | Notes |
|---|---|
| GPIO2 | Boot-related strapping pin |
| GPIO8 | Boot-related strapping pin, often connected to the onboard LED |
| GPIO9 | Commonly used for BOOT/download mode |
This does not mean GPIO8 is unusable. After boot, it can work as a normal GPIO. But you should avoid connecting external circuits that force GPIO8 high or low during reset.
Why Using GPIO8 for the Onboard LED Is Not Ideal
Some users criticize the ESP32-C3 Super Mini design because the onboard LED is often connected to GPIO8, which is a strapping pin.
That concern is valid. A status LED would ideally be connected to a non-strapping GPIO, or the board would include a solder jumper to disconnect the LED when needed.
In practice, most ESP32-C3 Super Mini boards still boot and upload code normally because the onboard LED circuit is usually weak enough not to break normal operation. But it can still cause confusion or problems in some projects.
Avoid using GPIO8 for:
- External circuits with strong pull-up or pull-down resistors
- Circuits that affect the pin during boot
- Production signals where boot reliability matters
- Low-power projects where the onboard LED wastes current
- I2C SDA if LED flicker is confusing
GPIO8 is fine for simple Blink tests, but for external hardware, choose another GPIO when possible.
What About I2C on GPIO8?
Some ESP32-C3 Super Mini examples use GPIO8 as SDA and GPIO9 as SCL. This can work, but it is not always the cleanest choice.
GPIO8 is commonly used by the onboard LED, and GPIO9 is commonly involved in boot mode. If you use GPIO8 for I2C, the onboard LED may flicker during I2C communication.
You can move I2C to another pair of pins:
#include <Wire.h>
#define SDA_PIN 4
#define SCL_PIN 5
void setup() {
Wire.begin(SDA_PIN, SCL_PIN);
}
void loop() {
}
The ESP32-C3 supports flexible pin assignment for I2C, so you are not forced to use GPIO8 and GPIO9.
Troubleshooting
The onboard LED does not blink on GPIO8
Try LED_BUILTIN or pin 15. Some ESP32-C3 Super Mini variants or Arduino board definitions may use a different mapping.
The LED turns off when I write HIGH
That is normal for an active-low LED. Use LOW to turn the LED on and HIGH to turn it off.
The LED stays on
Set the pin to HIGH:
digitalWrite(8, HIGH);
If your board uses active-low LED wiring, this turns the LED off.
The board does not upload after connecting something to GPIO8
Remove the external circuit from GPIO8 and try uploading again. GPIO8 is a strapping pin, so external hardware connected to it can interfere with boot or upload behavior.
Pin 15 works but GPIO8 does not
Use pin 15 for your specific board, but note that this may be due to your board variant or Arduino pin mapping. Other ESP32-C3 Super Mini boards may still use GPIO8.
Recommended Blink Code
For most ESP32-C3 Super Mini boards, use this:
#define LED_PIN 8
void setup() {
pinMode(LED_PIN, OUTPUT);
}
void loop() {
digitalWrite(LED_PIN, LOW);
delay(500);
digitalWrite(LED_PIN, HIGH);
delay(500);
}
If that does not work, try this:
#define LED_PIN LED_BUILTIN
And if that still does not work, try:
#define LED_PIN 15
Summary
The ESP32-C3 Super Mini built-in LED pin is usually GPIO8. On many boards, the LED is active-low, so LOW turns it on and HIGH turns it off.
If GPIO8 does not work, try LED_BUILTIN or pin 15. Some ESP32-C3 Super Mini boards and Arduino board definitions may use a different LED mapping.
GPIO8 is also a strapping pin, so it is fine for simple onboard LED blinking, but it is better to avoid using it for external circuits that affect the pin during boot.
