
Componentes del montaje
- ESP32-S3
- LED
- Resistencia (Resistor)
Cómo está conectado
- ESP32-S3 · g2→Resistencia (Resistor) · a
- Resistencia (Resistor) · b→LED · a
- LED · k→ESP32-S3 · gnd
El código
El proyecto ESP-IDF v5.3.5 exacto con el que se compiló el firmware incluido. En el simulador, abre Code para editar los archivos fuente y pulsa Compile & run para volver a compilar el firmware de la placa en el entorno aislado de la nube.
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)); } }



