Hello, any ideas would be much appreciated!
I tried to use 4 SPI pins to drive 4 strips as suggested in the FastLED library... https://github.com/FastLED/FastLED/wiki/SPI-Hardware-or-Bit-banging
It works for a few seconds and then freezes. It works all day long if I un-comment //#define FASTLED_FORCE_SOFTWARE_SPI
FastLED.addLeds<APA102, 7, 14, RGB>(colors1, NUM_LEDS);
FastLED.addLeds<APA102, 7, 13, RGB>(colors2, NUM_LEDS);
FastLED.addLeds<APA102, 11, 13, RGB>(colors3, NUM_LEDS);
FastLED.addLeds<APA102, 11, 14, RGB>(colors4, NUM_LEDS);
I tried different teensy speeds and different strip speeds to no avail.
I'm using teensy3.2, teensyduino 1.29, arduino 1.6.9, octoshield, the latest fastLED.h, windows 7.
I tried to use 4 SPI pins to drive 4 strips as suggested in the FastLED library... https://github.com/FastLED/FastLED/wiki/SPI-Hardware-or-Bit-banging
It works for a few seconds and then freezes. It works all day long if I un-comment //#define FASTLED_FORCE_SOFTWARE_SPI
FastLED.addLeds<APA102, 7, 14, RGB>(colors1, NUM_LEDS);
FastLED.addLeds<APA102, 7, 13, RGB>(colors2, NUM_LEDS);
FastLED.addLeds<APA102, 11, 13, RGB>(colors3, NUM_LEDS);
FastLED.addLeds<APA102, 11, 14, RGB>(colors4, NUM_LEDS);
I tried different teensy speeds and different strip speeds to no avail.
I'm using teensy3.2, teensyduino 1.29, arduino 1.6.9, octoshield, the latest fastLED.h, windows 7.
Code:
//#define FASTLED_FORCE_SOFTWARE_SPI
#include "FastLED.h"
// How many leds in your strip?
#define NUM_LEDS 32
// Define the array of leds
CRGB colors1[NUM_LEDS];
//CRGB colors2[NUM_LEDS];
//CRGB colors3[NUM_LEDS];
//CRGB colors4[NUM_LEDS];
void setup() {
//FastLED.addLeds<APA102, RGB>(leds, NUM_LEDS); //any and all combinations cause the program to freeze after a few seconds
FastLED.addLeds<APA102, 7,14, RGB>(colors1, NUM_LEDS);
//FastLED.addLeds<APA102, 7,13, RGB>(colors2, NUM_LEDS);
//FastLED.addLeds<APA102, 11,13, RGB>(colors3, NUM_LEDS);
//FastLED.addLeds<APA102, 11,14, RGB>(colors4, NUM_LEDS);
}
void loop() {
// Turn the LED on, then pause
for(int i=0; i<NUM_LEDS; i++){
colors1[i] = CRGB::Red;
}
FastLED.show();
delay(100);
// Now turn the LED off, then pause
for(int i=0; i<NUM_LEDS; i++){
colors1[i] = CRGB::Black;
}
FastLED.show();
delay(100);
}
Last edited: