Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/78/esp-bulitin-led
ESP32 builtin RGB LED controller
https://github.com/78/esp-bulitin-led
Last synced: 14 days 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 (2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-15T05:43:15.000Z (about 2 months ago)
- Last Synced: 2024-09-15T09:40:26.951Z (about 2 months ago)
- Language: C++
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- 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);
```