But when I take the same sketch, same wiring and move it over to ESP8266 (for the wifi) I get randomness. Either just LED #5 is on and green, sometimes the first 15 LED's are flickering different colors, sometimes nothing at all. I've looked around and saw references to SPI, Bitbanging, etc. But I'm not able to find a description why my Arduino Uno works and the ESP8266 does not.
Is it a library thing?
Is it because I don't have a capacitor (but Arduino works)
Or is it my error (likely)
Here is the code
Code: [Select]
// Verion 1 T.S Setup
//Inclusions
#include <FastLED.h>
// Definitions
#define NUM_LEDS 300
#define LED_TYPE WS2812B
#define DATA_PIN D3
CRGB leds[NUM_LEDS];
/*
#define FASTLED_ESP8266_RAW_PIN_ORDER
#define FASTLED_ESP8266_NODEMCU_PIN_ORDER
#define FASTLED_ESP8266_D1_PIN_ORDER
*
*
*/
void setup() {
// pinMode(D3,OUTPUT);
// Initial Array
FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS);
}
void cycle() { //This is a single led on/off at a time creating a single movement
for(int dot = 0; dot < NUM_LEDS; dot++) {
leds[dot] = CRGB::Blue;
FastLED.show();
// clear this led for the next time around the loop
leds[dot] = CRGB::Black;
delay(30);
}
} // End cycle
void loop() {
cycle();
// End of Loop
}
Here is a picture of how it is wired
https://www.tweaking4all.com/wp-content ... ws2812.jpg
Any ideas or recommendations?