problem with RGB LED chainable

I have an RGB LED chainable GROVE and I have downloaded the library with it but I have a problem when I’am doing that:



#include <ChainableLED.h>

ChainableLED leds (6,7,1);

void setup() {

// put your setup code here, to run once:



}



void loop() {



leds.setColorRGB(0,255,0,0);

delay(1000);

leds.setColorRGB(0,0,0,0);

delay(1000);



}

With just this little program, the color of LED stays the same and I don’t know why! There is no change



If someone can help me to understand that. Thanks a lot

I must say that programs that I’ve downloaded on the site are working but mine not!

Hi there~



You missed the leds.init() inside of setup(). thanks.


[code]#include <ChainableLED.h>
ChainableLED leds (6,7,1);
void setup() {
leds.init();
}

void loop() {

leds.setColorRGB(0,255,0,0);
delay(1000);
leds.setColorRGB(0,0,0,0);
delay(1000);

}[/code]

you seem to be wright!

I believe that it was not necessary to do that because on the program in the tuto the function was not written.



Thanks!