Arduino and ESP library to drive RGB LEDs (colors changes and blink) with non-blocking functions
- Non-blocking timings calculation
- Very powerful
- Red Green Blue and intensity
- Fading
Use the source files
Install it with platform io : https://platformio.org/lib/show/13307/RGB%20Driver%20ESP
pio lib install "lefrenchpoc/RGB Driver ESP"
or with the platformio.ini
file :
[env:myenv]
platform = espressif8266
framework = arduino
lib_deps = lefrenchpoc/RGB Driver ESP @ ^0.2
#include "rgb.h"
RGB leds({10, 11, 12}); //Red = Pin 10, Green = Pin 11, Blue = Pin 12
ledParam params = {.red = 204, .green = 51, .blue = 255, .intensity = 128, .t_on = 500000, .t_off = 500000}; //Purple color with 50% intensity blink at 2Hz rate
void setup() {
leds.setLight(¶ms);
}
void loop() {
leds.run();
}
👤 Le French POC
- Github: @LeFrenchPOC
- Website: https://www.lefrenchpoc.fr/
Give a ⭐️ if this project helped you!
Copyright © 2021 Le French POC.
This project is GPL-3.0 licensed.