#include <FastLED.h>
#define NUM_LEDS 16
#define DATA_PIN 2
CRGB leds[NUM_LEDS];
void setup() {
FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS);
}
void loop() {
int pots = analogRead(A0);
int P1 = map(pots, 0, 1023, 0, NUM_LEDS);
int pots1 = analogRead(A1);
int P2 = map(pots1, 0, 1023, 0, NUM_LEDS);
int pots2 = analogRead(A2);
int P3 = map(pots2, 0, 1023, 0, NUM_LEDS);
for(int i=0;i<P1;i++) {leds[i] = CRGB::Red;}FastLED.show();
for(int i=P1;i<NUM_LEDS;i--) {leds[i] = CRGB::Black;}
for(int i=0;i<P2;i++) {leds[i] = CRGB::Green;};FastLED.show();
for(int i=P2;i<NUM_LEDS;i++) {leds[i] = CRGB::Black;}
for(int i=0;i<P3;i++) {leds[i] = CRGB::Blue;}FastLED.show();
for(int i=P3;i<NUM_LEDS;i++) {leds[i] = CRGB::Black;}
}