#include <FastLED.h>
#define LED_PIN1 3
#define NUM_LEDS1 12
#define LED_PIN2 6
#define NUM_LEDS2 24
CRGB leds1[NUM_LEDS1];
CRGB leds2[NUM_LEDS2];
void setup() {
// put your setup code here, to run once:
FastLED.addLeds<WS2812, LED_PIN1, GRB>(leds1, NUM_LEDS1);
FastLED.addLeds<WS2812, LED_PIN2, GRB>(leds2, NUM_LEDS2);
}
void loop() {
// Line loop here
for (int j = 0; j <= ((11)); j++) {
for (int i = 0; i <= (20); i++) {
if (i == j || i == j+12){
leds2[i] = CRGB(255, 0, 150);
}
else{
leds2[i] = CRGB ( 0, 0, 0);
}
}
//Circle Loop here
for (int c = 0; c <= (12); c++){
if (c == j){
leds1[c] = CRGB(255, 0, 0);
}
else {
leds1[c] = CRGB(0, 0, 0);
}
}
delay(100);
FastLED.show();
}
}