Just updated the effects examples to work with the new RC1.
Thanks so much for all the hard work on FastSPI_2!
Game changer baby!
http://funkboxing.com/wordpress/?p=1366
Just updated the effects examples to work with the new RC1.
Thanks so much for all the hard work on FastSPI_2!
Game changer baby!
http://funkboxing.com/wordpress/?p=1366
Really awesome. Thanks for sharing!
I quickly hacked in support for multiple strings (the dress I’m working on has 7 strands). SerialCommand wasn’t working on my teensy 3 so I pulled it out and replaced it with a simpler ‘parser’
int getModeFromSerial() {
// if there’s any serial available, read it:
while (Serial.available() > 0) {
// look for the next valid integer in the incoming serial stream:
int iMode = Serial.parseInt();
Serial.print(“switching to:”);Serial.println(iMode);
return iMode;
}
}
and then in loop()
//------------------MAIN LOOP----------------
void loop() {
if (Serial.available())
{
ledMode = getModeFromSerial();
}
@Zeke_Koch How are you setting up multiple strands? Wasn’t sure if I could use LEDS.addLeds… to add a strip on another pin. Any docs on doing this? Thanks!
Works like a charm. I’m using this:
//------------------SETUP----------------
void setup()
{
delay(1000);
// For safety (to prevent too high of a power draw), the test case defaults to
// setting brightness to 25% brightness
LEDS.setBrightness(255);
LEDS.addLeds<WS2811,12, GRB>(leds[0], NUM_LEDS);
LEDS.addLeds<WS2811,9, GRB>(leds[1], NUM_LEDS);
LEDS.addLeds<WS2811,6, GRB>(leds[2], NUM_LEDS);
LEDS.addLeds<WS2811,3, GRB>(leds[3], NUM_LEDS);
LEDS.addLeds<WS2811,13, GRB>(leds[4], NUM_LEDS);
LEDS.addLeds<WS2811,16, GRB>(leds[5], NUM_LEDS);
LEDS.addLeds<WS2811,19, GRB>(leds[6], NUM_LEDS);
Serial.begin(38400);
one_color_all(0,0,0); //-BLANK STRIP
LEDS.show();
}