Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 873 Bytes

README.md

File metadata and controls

31 lines (25 loc) · 873 Bytes

Full Color RGB LED Strip Driver Module Shield for Arduino

This library is made for this kind of modules RGB LED Strip Driver Module Shield

Do not connect 12V to the driver module while your Arduino is connected to your PC!

Example usage:

#include <LEDStripDriver.h>

// use two available GPIO pins from your board
// DIN=GPIO16, CIN=GPIO14 in this example
LEDStripDriver led = LEDStripDriver(16, 14);

void setup() {
  // put your setup code here, to run once:
}

void loop() {
  // put your main code here, to run repeatedly:
  led.setColor(255, 0, 0); // RGB
  delay(1000);
  led.setColor("#00FF00"); // String
  delay(1000);
  led.setColor(0x0000FF); // HEX
  delay(1000);
  led.setColor(); // turn off
  delay(1000);
}