
How it works
This bench is a starting point for your own ESP-IDF code. The board is an ESP32-S3 N16R8, with 16 MB of flash and 8 MB of PSRAM. Code holds only the files under main/, and the bundled firmware is built from the unedited starter in main/main.c. Compile & run sends your sources to a fixed, pre-built ESP-IDF v5.3.5 project in the cloud, so CMake and sdkconfig stay the same for every build and only your C or C++ files change. A build takes about half a minute.
The starter resets GPIO2, makes it an output and prints Breadboard ESP32-S3 template: hello from ESP-IDF. Then it loops forever: set the pin, print LED on or LED off, invert the level and wait 500 ms with vTaskDelay. G2 drives a red LED through a 150 Ω resistor to ground. main/CMakeLists.txt lists the components your code may include.
What to watch
Serial shows the greeting once, then LED on and LED off lines in turn, every half second, and the LED on G2 follows them. Open Scope on G2 to see a 3.3 V square wave with a one-second period.
What's on the bench
- ESP32-S3
- LED
- Resistor
How it's wired
- ESP32-S3 · g2→Resistor · a
- Resistor · b→LED · a
- LED · k→ESP32-S3 · gnd
The code
The exact ESP-IDF v5.3.5 project the bundled firmware was compiled from. In the simulator, open Code to edit the sources and press Compile & run to rebuild the board’s firmware in the cloud sandbox.
main/main.c
// SPDX-License-Identifier: MIT // Breadboard ESP32-S3 template: the starter program. Replace or add files // under main/ (.c, .cpp, .h, .hpp). app_main() is the entry point; the // components you may include are listed in main/CMakeLists.txt. #include <stdio.h> #include "driver/gpio.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #define LED_GPIO GPIO_NUM_2 void app_main(void) { gpio_reset_pin(LED_GPIO); gpio_set_direction(LED_GPIO, GPIO_MODE_OUTPUT); printf("Breadboard ESP32-S3 template: hello from ESP-IDF\n"); int level = 0; for (;;) { gpio_set_level(LED_GPIO, level); printf("LED %s\n", level ? "on" : "off"); level = !level; vTaskDelay(pdMS_TO_TICKS(500)); } }
Try this
- Change pdMS_TO_TICKS(500) to pdMS_TO_TICKS(100) and press Compile & run. After the cloud build, your firmware boots on the bench and the LED blinks five times faster.
- Add a file such as main/blink.c with a function that app_main() calls. Files under main/ are compiled with the rest; you do not edit any build files.
- Wire a pushbutton from G4 to GND. In app_main(), call gpio_set_direction(GPIO_NUM_4, GPIO_MODE_INPUT) and gpio_set_pull_mode(GPIO_NUM_4, GPIO_PULLUP_ONLY). In the existing loop, print a line when gpio_get_level(GPIO_NUM_4) returns 0. Compile & run, then hold the button to see the line in Serial.



