ESP32 Busy light

This repo demonstrates how to use a esp-c6(only tested on a ESP32-C6) a LED by using the GPIO driver or using the led_strip library if the LED is addressable e.g. WS2812. The led_strip library is installed via component manager.

How to Use Example

Before project configuration and build, be sure to set the correct chip target using idf.py set-target <chip_name>.

Hardware Required

  • A development board with an addressable LED on-board (e.g., ESP32-C6-DevKitC etc.)
  • A USB cable for Power supply and programming

See Development Boards for more information about it.

Configure the Project

Open the project configuration menu (idf.py menuconfig).

In the Example Configuration menu:

  • Set the GPIO number used for the signal in the Blink GPIO number option.
  • Set the blinking period in the Blink period in ms option.

Build and Flash

Run idf.py -p PORT 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.

Troubleshooting

  • If the LED isn't blinking, check the GPIO or the LED type selection in the Example Configuration menu.

For any technical queries, please open an issue on GitHub. We will get back to you soon.

Contributing

This project is currently under development, and will converted to a generic example when my time allow for it.

If anyone is interrested in contributing, a first easy task is to generalize the implementation for all boards, like the blink example in esp-idf.