Skip to content

Arduino and ESP library to drive RGB LEDs with non-blocking functions

License

Notifications You must be signed in to change notification settings

LeFrenchPOC/Arduino-RGB-Driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to RGB Driver 👋

License: GPL--3.0

Arduino and ESP library to drive RGB LEDs (colors changes and blink) with non-blocking functions

What is implemented ?

  • Non-blocking timings calculation
  • Very powerful
  • Red Green Blue and intensity

What is not implemented ?

  • Fading

Install

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

Usage

#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(&params);
}

void loop() {
    leds.run();
}

Author

👤 Le French POC

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2021 Le French POC.
This project is GPL-3.0 licensed.

About

Arduino and ESP library to drive RGB LEDs with non-blocking functions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages