So the first issue was caused by me as a relative Arduino newbie.
Now that I fixed that, I got it compiled and loaded, and it works … somewhat.
I did my testing using your Blink example. The first thing I noticed is that the code to set the LED to Black wasn’t working. I thought that was odd but I ignored it. Then I tried setting a different LED in the string (other than 0) to Red and that also worked. But then I tried setting an LED to other colors (like Green and Blue) and they didn’t work either. So something seems up with color selection (although that makes no sense to me).
Next I got ambitious and decided to try setting all LEDs in the string to Red, one at a time in a loop. I have 100 LEDs on my string, and it started out working great but then things got a bit erratic after around 50 LEDs or so. Sometimes there would be a pause, and then two LEDs would like up at once. Then eventually, random LEDs started coming in in colors other than Red.
My current Teensy testbed isn’t the best setup either (it’s very temporary until some more parts arrive). As such, I decided to try compiling it for the Seeeduino board I got from Cool Neon (basically a Duemilanove). This setup is very stable and is what I’ve been using for the last week to do a lot of development for the Total Control Lighting hardware. The sketch compiles with no errors on the Teensy, but when I make no other changes except to select the Duemilanove instead, I get these errors:
This report would have more information with
“Show verbose output during compilation”
enabled in File > Preferences.
Arduino: 1.0.5 (Windows NT (unknown)), Board: “Arduino Duemilanove w/ ATmega328”
C:\Program Files (x86)\Arduino\libraries\FastLED/chipsets.h: In member function ‘void P9813Controller<DATA_PIN, CLOCK_PIN, RGB_ORDER, SPI_SPEED>::writeBoundary() [with unsigned char DATA_PIN = 11u, unsigned char CLOCK_PIN = 13u, EOrder RGB_ORDER = RGB, unsigned char SPI_SPEED = 0u]’:
C:\Program Files (x86)\Arduino\libraries\FastLED/chipsets.h:180: instantiated from ‘void P9813Controller<DATA_PIN, CLOCK_PIN, RGB_ORDER, SPI_SPEED>::showColor(const CRGB&, int, uint8_t) [with unsigned char DATA_PIN = 11u, unsigned char CLOCK_PIN = 13u, EOrder RGB_ORDER = RGB, unsigned char SPI_SPEED = 0u]’
Blink.ino:45: instantiated from here
C:\Program Files (x86)\Arduino\libraries\FastLED/chipsets.h:154: error: ‘class SPIOutput<11u, 13u, 0u>’ has no member named ‘writeWord’
C:\Program Files (x86)\Arduino\libraries\FastLED/chipsets.h:154: error: ‘class SPIOutput<11u, 13u, 0u>’ has no member named ‘writeWord’
One interesting observation is that I get this same exact error related to the P9813Controller if I select any of the controllers that use a clock pin (for controllers that only require a data pin, the code compiles with no errors).