🛠 Faire clignoter la LED RGB de la DevKitC-1

ESP32-C6 · debutant · Schéma : IMG-esp32-c6-debutant-1-c6-clignoter-rgb-gpio8.svg — Carte ESP32-C6-DevKitC-1 avec la ligne de données de la LED RGB adressable reliée à GPIO8 et le câble USB-C.

First project with the ESP32-C6: make the onboard LED blink. On the official ESP32-C6-DevKitC-1 board, the LED is an addressable RGB LED (WS2812 type) whose data line is connected to GPIO8. Steps: install ESP-IDF, create a project with idf.py set-target esp32c6, set BLINK_GPIO to GPIO_NUM_8, then run idf.py flash monitor. Important reminder: GPIO8 is a strapping pin (along with GPIO5, GPIO9, and GPIO15) that also controls the display of ROM messages and drive strength; never connect a load that would pull the level at reset, otherwise the board will not boot or flash. The C6 is a single-core RISC-V RV32IMAC running at up to 160 MHz; the logic is 3.3 V only, and the pins do not tolerate 5 V. The basic code remains a periodic gpio_set_level in a FreeRTOS loop with vTaskDelay: sufficient to understand the complete chain build → flash → console. Once the blinking works, you will master the ESP-IDF toolchain end-to-end, and you will know why we carefully avoid strapping pins for external connections.

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials