2024A-SW/components/MuxedLedStrip/examples/led_strip_rmt_ws2812
2025-01-25 14:04:42 -06:00
..
main Initial public release of the 2024A software. 2025-01-25 14:04:42 -06:00
CMakeLists.txt Initial public release of the 2024A software. 2025-01-25 14:04:42 -06:00
README.md Initial public release of the 2024A software. 2025-01-25 14:04:42 -06:00

LED Strip Example (RMT backend + WS2812)

This example demonstrates how to blink the WS2812 LED using the led_strip component.

How to Use Example

Hardware Required

  • A development board with Espressif SoC
  • A USB cable for Power supply and programming
  • WS2812 LED strip

Configure the Example

Before project configuration and build, be sure to set the correct chip target using idf.py set-target <chip_name>. Then assign the proper GPIO in the source file. If your led strip has multiple LEDs, don't forget update the number.

Build and Flash

Run idf.py -p PORT build flash monitor to build, flash and monitor the project.

(To exit the serial monitor, type Ctrl-].)

See the Getting Started Guide for full steps to configure and use ESP-IDF to build projects.

Example Output

I (299) gpio: GPIO[8]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (309) example: Created LED strip object with RMT backend
I (309) example: Start blinking LED strip