https://github.com/78/esp-bulitin-led
ESP32 builtin RGB LED controller
https://github.com/78/esp-bulitin-led
Last synced: 8 months ago
JSON representation
ESP32 builtin RGB LED controller
- Host: GitHub
- URL: https://github.com/78/esp-bulitin-led
- Owner: 78
- Created: 2024-09-09T20:28:55.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-02T22:12:23.000Z (over 1 year ago)
- Last Synced: 2025-03-31T04:04:39.345Z (about 1 year ago)
- Language: C++
- Size: 4.88 KB
- Stars: 1
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ESP32 Builtin RGB LED Component
This component provides a library for controlling the ESP32's onboard RGB LED.
## Features
- Control the LED color and brightness
- Blink the LED at a specified frequency
- Set the LED to a specific color
## Usage
To use this component, add the following line to your component's CMakeLists.txt file:
```bash
idf.py add-dependency "78/esp-builtin-led"
```
Code example:
```cpp
#include "BuiltinLed.h"
BuiltinLed& builtin_led = BuiltinLed::GetInstance();
builtin_led.SetColor(255, 0, 0);
builtin_led.Blink(BLINK_INFINITE, 500);
```