Okay I feel really foolish attempting to post an issue here because I'm a

Okay I feel really foolish attempting to post an issue here because I’m a total n00b and I’m certain that there is a simple answer to my problem. I’ve wired up my LPD8806 lights to my Arduino Yun as in the attached photo:

I can’t seem to compile FastLED/examples/DemoReel100/DemoReel100.ino successfully. I keep getting the following:

static_assert(validpin(), “Invalid pin specified”);

Here is what I"m trying to compile:

#define DATA_PIN 4
#define CLK_PIN 13
#define LED_TYPE LPD8806
#define COLOR_ORDER GRB
#define NUM_LEDS 60
CRGB leds[NUM_LEDS];

#define BRIGHTNESS 96
#define FRAMES_PER_SECOND 120

void setup() {
delay(3000); // 3 second delay for recovery

// tell FastLED about the LED strip configuration
FastLED.addLeds<LED_TYPE,DATA_PIN,COLOR_ORDER>(leds, NUM_LEDS).setCorrection(TypicalLEDStrip);
//FastLED.addLeds<LED_TYPE,DATA_PIN,CLK_PIN,COLOR_ORDER>(leds, NUM_LEDS).setCorrection(TypicalLEDStrip);

// set master brightness control
FastLED.setBrightness(BRIGHTNESS);
}

I figure that LDP8806 is a well used configuration and this must be something on my end? And I’m sorry for posting here. I couldn’t figure out where to find information on my specific setup.

Thoughts?

Hi @Jim_Pruitt ! I just replied to the issue on GitHub before I saw you close it :slight_smile:

It takes us all a while to learn how to use the library (and I still make silly mistakes all the time), so don’t sweat it!

Link to Github issue for posterity: https://github.com/FastLED/FastLED/issues/630

Thanks for the quick response @Chris_Parton . I appreciate your insight here. I switched the DATA_PIN definition to the correct value of 3 and I uncommented the second FastLED line (while commenting out the first). CLK_PIN still defined as 13. Even with this setup I still got the same error. :frowning:

Should I reopen the issue?

No problem @Jim_Pruitt . I compiled your original code and got the error, as you described.

When I used the line of code with the clock pin, it compiled successfully (I also had to #include <FastLED.h> and add an empty loop function).

Can you try using the code below and let me know what happens? If it doesn’t work, make sure:

  • You have Arduino Yún selected as the board type in the Arduino IDE
  • You’re using the latest version of FastLED.

#include <FastLED.h>

#define DATA_PIN 4
#define CLK_PIN 13
#define LED_TYPE LPD8806
#define COLOR_ORDER GRB
#define NUM_LEDS 60
CRGB leds[NUM_LEDS];

#define BRIGHTNESS 96
#define FRAMES_PER_SECOND 120

void setup() {
delay(3000);
FastLED.addLeds<LED_TYPE,DATA_PIN,CLK_PIN,COLOR_ORDER>(leds, NUM_LEDS).setCorrection(TypicalLEDStrip);
FastLED.setBrightness(BRIGHTNESS);
}

void loop() {
}

+Chris Parton Sorry for my delayed response here. I was able to successfully compile the code you had provided (just before I accidentally deleted your post somehow - not quite sure how I managed to do that). Just a little more info about my setup here:

FastLED library version 3.1.6 installed
Visual Studio Code as my Arduino IDE

  • I get the same results from the standard Ardiuno IDE (installed from .msi and not from the Microsoft Store)
    -I can confirm that the Board is selected as “Arduino Yun”

I think I know what the issue is here. The Visual Studio code IDE is not the best choice for Arduino (IMHO).

I was able to make your recommended changes to the original example within the Arduino IDE and was able to successfully compile. Looking closer I’m noticing that the extension for VSCode was compiling .ino files that I had long since closed. So I have a bit of learning to do there.

I think that solves my issue here. I really do appreciate all your help here @Chris_Parton .

@Jim_Pruitt No problem at all, I’m glad you got it working :slight_smile: The Arduino IDE definitely lacks a lot of features and usability, but it’s definitely the easiest and most reliable way to get things building.

Feel free to share the results of your project with the community, I always enjoy seeing what other people are up to!