#include <FastLED.h>
#define PIN_DATA 5
#define DIMENSION 8
#define FACES 6
#define TOTAL_PIXELS 200 // (DIMENSION*DIMENSION*FACES) // (768-50) // why the limit? // (DIMENSION*DIMENSION*FACES) //
CRGB Pixels[TOTAL_PIXELS];
//CRGB Pixels2[TOTAL_PIXELS];
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
//FastLED.addLeds<WS2811, PIN_DATA, RGB>(Pixels, TOTAL_PIXELS);
FastLED.addLeds<NEOPIXEL, PIN_DATA>(Pixels, TOTAL_PIXELS); // GRB ordering is assumed
Pixels[0] = CRGB::Green;
Pixels[1] = CRGB::Red;
Pixels[2] = CRGB::Blue;
Pixels[64] = CRGB::Green;
Pixels[128] = CRGB::Green;
Serial.println("show");
FastLED.show();
//delay(2000);
Serial.println("setup done");
}
void loop() {
for(int i = 0; i < TOTAL_PIXELS; i++) {
Pixels[i] = CRGB(0, 204, 255);
FastLED.show();
delay(10);
Pixels[i] = CRGB::Black;
Serial.println(i);
}
}
FPS: 0
Power: 0.00W
Power: 0.00W