WS2812B RGB LED strip with potentiometer control tutorial

first use this forum, tutorial shae with every one, a potentiometer control WS2812 strip color

set read pot val, and change to hue color.

//Arduino UNO

#include “FastLED.h”
#define NUM_LEDS 64
#define LED_DT 9 //data pin 9
#define LED_TYPE WS2812
#define COLOR_ORDER GRB

int potPin = A0;
int potVal;
int potColor;
uint8_t max_bright = 127; //half bright set

CRGB leds[NUM_LEDS];

void setup() {
LEDS.addLeds<LED_TYPE, LED_DT, COLOR_ORDER>(leds, NUM_LEDS);
FastLED.setBrightness(max_bright);
}

void loop () {
potVal = analogRead(potPin);
potColor = map(potVal, 0, 1023, 0, 255);
fill_solid(leds, NUM_LEDS, CHSV(potColor, 255, 255));
FastLED.show();
delay(25);
}