#include "Freenove_WS2812_Lib_for_ESP32.h"
#define LEDS_COUNT 64
#define LEDS_PIN 9
#define CHANNEL 0
#define br 255
Freenove_ESP32_WS2812 strip = Freenove_ESP32_WS2812(LEDS_COUNT, LEDS_PIN, CHANNEL, TYPE_GRB);
int idx = 0;
void setup() {
Serial.begin(115200);
strip.begin();
strip.setBrightness(br);
}
void loop() {
for (int i = 0; i <= 255; i++) {
strip.setAllLedsColor(strip.Wheel((256 / LEDS_COUNT + i) & 255));
delay(20);
}
}