UPDATE:
Ok, so i have figured something out: The pins are correct, it should be 14, and 16. I’ve used a different sketch to test if they go high and low like i expect, and they do. Then once i try to get FastLED going, the esp8266 locks up if call
FastLED.addLeds<WS2801, 16, 14, RGB>(leds, NUM_LEDS);
if i comment that out, the esp won’t freeze.
FREEZES:
#define FASTLED_ESP8266_RAW_PIN_ORDER
#include <FastLED.h>
//#include <SPI.h>
#define NUM_LEDS 3
#define DATA_PIN 14
#define CLOCK_PIN 16
CRGB leds[NUM_LEDS];
void setup() {
pinMode(14, OUTPUT);
pinMode(16, OUTPUT);
//digitalWrite(16, HIGH);
//delay(3000);
Serial.begin(9600);
//delay(3000);
FastLED.addLeds<WS2801, DATA_PIN, CLOCK_PIN, RGB>(leds, NUM_LEDS);
////yield();
}
void loop() {
for(int i = 0; i < NUM_LEDS; i++){
leds[i].setHSV(255,255,255);
}
FastLED.show();
delay(100);
Serial.println(“A”);
}
DONT FREEZES:
#define FASTLED_ESP8266_RAW_PIN_ORDER
#include <FastLED.h>
//#include <SPI.h>
#define NUM_LEDS 3
#define DATA_PIN 14
#define CLOCK_PIN 16
CRGB leds[NUM_LEDS];
void setup() {
pinMode(14, OUTPUT);
pinMode(16, OUTPUT);
//digitalWrite(16, HIGH);
//delay(3000);
Serial.begin(9600);
//delay(3000);
FastLED.addLeds<WS2801, DATA_PIN, CLOCK_PIN, RGB>(leds, NUM_LEDS);
////yield();
}
void loop() {
for(int i = 0; i < NUM_LEDS; i++){
leds[i].setHSV(255,255,255);
}
FastLED.show();
delay(100);
Serial.println(“A”);
}
