Hey guys, first time poster, I just got a set of ws2801 30mm leds,

Hey guys, first time poster, I just got a set of ws2801 30mm leds, but am getting the error “Invalid pin specified” when trying to compile for Arduino Uno. I have the latest version of everything. I’m just using the demoreel100 example code. I had no problem getting my sets of ws2812b to work, and my only modifications from that file is to change the led type to WS2801 and uncomment the CLK_PIN. I’ve posted the pre-setup code below. Can someone tell me what I am missing? I got the Adafruit ws2801 library working no problem, but I really want to use fastLED. Thanks!

#include “FastLED.h”

FASTLED_USING_NAMESPACE

#if defined(FASTLED_VERSION) && (FASTLED_VERSION < 3001000)
#warning “Requires FastLED 3.1 or later; check github for latest code.”
#endif

#define DATA_PIN 9
#define CLK_PIN 4
#define LED_TYPE WS2801
#define COLOR_ORDER GRB
#define NUM_LEDS 20
CRGB leds[NUM_LEDS];

#define BRIGHTNESS 255
#define FRAMES_PER_SECOND 120

Not enough changes made:

Use this:

LEDS.addLeds<LED_TYPE, DATA_PIN, CLK_PIN, COLOR_ORDER>(leds, NUM_LEDS).setCorrection(TypicalLEDStrip); // Use this for WS2801 or APA102

Not this:

// LEDS.addLeds<LED_TYPE, DATA_PIN, COLOR_ORDER>(leds, NUM_LEDS).setCorrection(TypicalLEDStrip); // Use this for WS2812

Also, this edit is also spelled out pretty clearly in the simpler examples, such as firstlight.

Ouch, I’m embarrassed I missed something so obvious. I’ve only used ws2812b previously, so its been a couple months since I thought about what the strand setup/initialization is actually doing. Time for me to review the basics. Thanks for the speedy response!