#include <FastLED.h>

#define DATA_PIN 4 //aka D4
#define NUM_LEDS 16

CRGB leds[NUM_LEDS];

void setup() {
  Serial.begin(115200);
  Serial.println("Hello from ESP32!");
  FastLED.addLeds<WS2812B, DATA_PIN, GRB>(leds, NUM_LEDS);
}


void loop() {

}




void setPixel(int Pixel, byte red, byte green, byte blue) {
  leds[Pixel].r = red;
  leds[Pixel].g = green;
  leds[Pixel].b = blue;
}
void setAll(byte red, byte green, byte blue) {
  for (int i = 0; i < NUM_LEDS; i++ ) {
    setPixel(i, red, green, blue);
  }
  showStrip();
}
void showStrip() {
  FastLED.show();
}