//ALaa_ALaa
#include <Adafruit_NeoPixel.h>
const int LED_COUNT = 16;
const int LED_WHITE = 0;
const int LED_RED_START = 2;
const int LED_BLUE_START = 9;
Adafruit_NeoPixel Strip_1(LED_COUNT, 25, NEO_GRB + NEO_KHZ800);
void setup() {
Strip_1.begin();
Strip_1.show();
}
void loop() {
int RP1 = random(1, 7);
int RP2 = random(1, 7);
Serial.print("RP1: ");
Serial.println(RP1);
Serial.print("RP2: ");
Serial.println(RP2);
Strip_1.fill(Strip_1.Color(255, 255, 255), 0, LED_COUNT);
if (RP1 >= 1 && RP1 <= 6) {
Strip_1.setPixelColor(LED_RED_START + RP1 - 1, Strip_1.Color(255, 0, 0));
}
if (RP2 >= 1 && RP2 <= 6) {
Strip_1.setPixelColor(LED_BLUE_START + RP2 - 1, Strip_1.Color(71, 129, 255));
}
Strip_1.show();
delay(1000);
}