#include <FastLED.h>
// #include <FastLED_NeoMatrix.h>
// #include <Adafruit_NeoPixel.h>
// #define MATRIX_WIDTH 20
// #define MATRIX_HEIGHT 20
// #define NUM_LEDS (MATRIX_WIDTH * MATRIX_HEIGHT)
#define DATA_PIN 16
#define LED_PIN 16
#define LED_COUNT 27
// CRGB leds[NUM_LEDS];
CRGB leds[LED_COUNT];
// Adafruit_NeoPixel pixels(LED_COUNT, LED_PIN, NEO_RGB + NEO_KHZ800);
int getLedIndex(int x, int y) {
}
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
// pixels.begin();
FastLED.addLeds<WS2812, LED_PIN, RGB>(leds, LED_COUNT);
}
void loop() {
// put your main code here, to run repeatedly:
for (int i = 0; i < 256; i++) {
for (int ix = 0; ix < LED_COUNT; ix++) {
leds[ix] = CRGB(i, 0, 0);
// pixels.setPixelColor(ix, pixels.Color(i, 0, 0));
// pixels.show();
// delay(10);
}
FastLED.show();
delay(10);
}
for (int i = 0; i < 256; i++) {
for (int ix = 0; ix < LED_COUNT; ix++) {
leds[ix] = CRGB(0, i, 0);
// pixels.setPixelColor(ix, pixels.Color(0, i, 0));
// pixels.show();
// delay(10);
}
FastLED.show();
delay(10);
}
for (int i = 0; i < 256; i++) {
for (int ix = 0; ix < LED_COUNT; ix++) {
leds[ix] = CRGB(0, 0, i);
// pixels.setPixelColor(ix, pixels.Color(0, 0, i));
// pixels.show();
// delay(10);
}
FastLED.show();
delay(10);
}
}