🛠 Pilotez la LED RGB embarquée avec le périphérique RMT
On the ESP32-H2-DevKitM-1, the onboard LED is an addressable RGB LED (WS2812 type) wired to GPIO8 and driven by the RMT peripheral — not a simple GPIO. Tutorial: cycle through red, green, and blue using ESP-IDF (v5.1 minimum, target esp32h2), inspired by examples/get-started/blink: create an RMT TX channel on GPIO8 (resolution around 10 MHz), attach an RGB888 encoder compatible with WS2812, then send the pixels in the GRB order expected by this type of LED. Two hardware precautions: GPIO8 is a strapping pin (along with GPIO9 and GPIO25) and only the LED should be connected to it, otherwise the boot mode becomes random; and since GPIO0–5 and GPIO22–27 are dead during deep-sleep, keep this constraint in mind when choosing your pins. The RMT/LEDC encoder APIs evolve between ESP-IDF releases: copy the official example for your version rather than relying on an old blog post. >
Other tutorials for this board
- Premier blink sur une broche sûre (GPIO22)
- Beacon BLE 5 : le « hello radio » d'une puce sans Wi-Fi
- Deep-sleep 7 µA : le bouton qui doit être dans le domaine LP
- Interrupteur Zigbee certifié avec l'ESP-Zigbee-SDK
- ADC 12 bits et capteur de température : piège du date code
- Endpoint Matter-over-Thread sur esp-matter