New here and a little confused by this community thing vs.

New here and a little confused by this community thing vs. a normal forum so its hard to find what I’m looking for. I’m normally more of a lurker. I have always wanted to use FastLED, tried it last year with a UNO and nothing so back to the Adafruit library. I really want this to work for the obvious reasons. Now tried again and nothing happens.
I do not have a scope.
Arduino 1.6.4 DUE, I need the speed and memory.
FastLED 3.1
WS2811 through hole led’s NeoPixel Clear 5mm Through-Hole LED - 5 Pack : ID 1837 : $4.95 : Adafruit Industries, Unique & fun DIY electronics and kits (from Sparkfun)on a breadboard. The Adfruit library works fine with the 3.3v data on PIN 6 with these.
I have tried all the addLeds<WS28xx lines one by one and I tried
FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS);
The DUE is locking up, loop not running. No “X” and no TX/RX light flashing on the DUE every 1 second.
RGBcalibrate

#include “FastLED.h”
#define NUM_LEDS 6
#define DATA_PIN 6
CRGB leds[NUM_LEDS];

void setup() {
Serial.begin(9600);
delay(2000);
FastLED.addLeds<WS2811, DATA_PIN, RGB>(leds, NUM_LEDS); }
void loop() {
leds[0] = CRGB(255,0,0);
leds[1] = CRGB(0,255,0);
leds[2] = CRGB(0,255,0);
leds[3] = CRGB(0,0,255);
leds[4] = CRGB(0,0,255);
leds[5] = CRGB(0,0,255);
// leds[random8()%NUM_LEDS] = CRGB(0,0,0);
// leds[10] = CRGB(0,0,0);
FastLED.show();
delay(1000);
// FastLED.showColor(CRGB::Black);
Serial.println(“X”);
}
–John

I’ll have to re-check the due w/arduino 1.6.4 - I know 1.6.4 and friends wrecked a bunch of havoc on the avr code for the WS2811 style leds (the FastLED code for this a lot more complex than the adafruit code because of the addition of dithering/scaling/color correction/etc… interleaved with writing the output).

Because I’m about to leave for a 4 day camping trip, however, where I’m not going to have access to hardware to test (and I’m packing tonight/tomorrow morning, as well as working, so it’s unclear if i’ll get time before I leave) - can you move the Serial.println(“X”)l to the beginning of your loop function? I want to figure out whether the problem is with setup not exiting or with show not exiting.

Wow! your fast. Serial.println(“X”) at the top of loop and I do get 1 X back.
And I get the X back with it before
FastLED.show();

(My knee jerk suspicion is that arduino 1.6.4 starts using one of the due timers that I was using for writing out WS2811 data, and so there’s conflicting going on in there)

Well thanks for the help and have fun camping. I may try some other 1.6’s or maybe even some 1.5’s

For laughs, try adding the line:

#define FASTLED_ALLOW_INTERRUPTS 0

before the #include"FastLED.h" (so basically as the very very first line of the file)_. It’s a shot in the dark, but if that works, it gives me an idea for what to look at.

No change. Still locking at FastLED.show();
And its WIN8.1 64

Ok, that means likely that the timer that I’m trying to use isn’t starting up properly so it just spins in an infinite loop. For extra laughs, I’m going to do something backwards and suggest trying the FastLED master branch instead of FastLED 3.1

Master Branch? I tried 3.0.3 with
#define FASTLED_ALLOW_INTERRUPTS 0
on and // and its the same. 1 X comes back still
not sure what version but same with the master.zip one

Oh! You’re on 3.0.3? Then get the 3.1 branch - because there were definitely due bugs that I had to fix on the 3.1 branch (sorry , I thought you were already on 3.1)

I think I started with 3.1 and then 3.0.3 and then the master.zip folder one. But now I cant find a version in the folder I thought was 3.1 so tonight I will download 3.1 again and make sure.

SOLVED–Looks like windows registry was pointing Arduino to a unintended library location and a unknown version of FastLED from last year. I have 3.1 working with Arduino 1.6.4 on DUE now. Thanks for the help and all your hard work producing this amazing thing for us and all for free. Thanks!