Daisy chain LED bars

Hi there,



You can chain Grove - LED Bars by connecting DO, DCKO, VCC, GND to another LED bar’s DI, DCKI, VCC, GND. But seems library in Seeed Wiki only can used with one LED bar, I wrote a new library to you. Please download the following files:



<LINK_TEXT text=“https://raw.githubusercontent.com/Seeed … r/LEDBar.h”>https://raw.githubusercontent.com/SeeedDocument/Projects/master/led_bar/LEDBar.h</LINK_TEXT>

<LINK_TEXT text=“https://raw.githubusercontent.com/Seeed … LEDBar.cpp”>https://raw.githubusercontent.com/SeeedDocument/Projects/master/led_bar/LEDBar.cpp</LINK_TEXT>



and put them to your project folder, let it looks like this:




[code]
#include “LEDBar.h”

LEDBar bar(9, 8, 2);

void setup() {
bar.begin();
}

void loop() {
bar.setBits(0x01f);
}
[/code]

The code above can make two LED bars looks like this:







Best Regards,

Blu