#include "FastLED.h"
 
#define NUM_LEDS 13
#define NUM_STRIPS 3
 
CRGB leds[NUM_LEDS];
CLEDController *controllers[NUM_STRIPS];
uint8_t gBrightness = 255;
int inPin1 = 9;
int inPin2 = 10;         
     
int reading1; 
int reading2;             
 
void setup() { 
  pinMode(inPin1, INPUT_PULLUP);
  pinMode(inPin2, INPUT_PULLUP);
  controllers[0] = &FastLED.addLeds<WS2812,6,GRB>(leds, NUM_LEDS);
  controllers[1] = &FastLED.addLeds<WS2812,7,GRB>(leds, NUM_LEDS);
  controllers[2] = &FastLED.addLeds<WS2812,8,GRB>(leds, NUM_LEDS);
}
 
void loop() { 
   fill_solid(leds, NUM_LEDS, CRGB(0,255,0));
   controllers[2]->showLeds(gBrightness);

   reading1 = digitalRead(inPin1);
   if (reading1 == LOW ){
      fill_solid(leds, NUM_LEDS, CRGB(50,255,0));
      controllers[1]->showLeds(gBrightness);
      delay(200);
      fill_solid(leds, NUM_LEDS, CRGB(0,0,0));
      controllers[1]->showLeds(gBrightness);
      delay(200); 
   } else {
      fill_solid(leds, NUM_LEDS, CRGB(0,0,0));
      controllers[1]->showLeds(gBrightness);
   }


   reading2 = digitalRead(inPin2);
   if (reading2 == LOW  ) {
      fill_solid(leds, NUM_LEDS, CRGB(50,255,0));
      controllers[0]->showLeds(gBrightness);
      delay(200);
      fill_solid(leds, NUM_LEDS, CRGB(0,0,0));
      controllers[0]->showLeds(gBrightness);
      delay(200); 
   } else {
      fill_solid(leds, NUM_LEDS, CRGB(0,0,0));
      controllers[0]->showLeds(gBrightness);
   }
}