I only started using an Adruino yesterday so I have no clue what I'm doing. I'm trying to make two glowing eyes with Neopixel ring lights. When I run the below simulation everything seems to go good. But when I put it into the real world it does not seem to work. I'm seeking guidance to help fix the problem.
#include <Adafruit_NeoPixel.h>
// Define the number of LEDs in each NeoPixel ring
#define NUM_LEDS_RING_1 16
#define NUM_LEDS_RING_2 16
// Define the digital pins connected to each NeoPixel ring
#define PIN_RING_1 6
#define PIN_RING_2 7
// Create the NeoPixel objects for both rings
Adafruit_NeoPixel ring1 = Adafruit_NeoPixel(NUM_LEDS_RING_1, PIN_RING_1, NEO_GRB + NEO_KHZ800);
Adafruit_NeoPixel ring2 = Adafruit_NeoPixel(NUM_LEDS_RING_2, PIN_RING_2, NEO_GRB + NEO_KHZ800);
void setup() {
// Initialize both NeoPixel rings
ring1.begin();
ring1.setBrightness(50); // Set brightness to 50 (out of 255)
ring2.begin();
ring2.setBrightness(50); // Set brightness to 150 (out of 255)
}
void loop() {
for(int i=0; i<NUM_LEDS_RING_1; i++) {
ring1.setPixelColor(i, ring1.Color(20, 150, 255)); // Blue color
}
ring1.show();
for(int i=0; i<NUM_LEDS_RING_2; i++) {
ring2.setPixelColor(i, ring2.Color(20, 150, 255)); } // Blue color
ring2.show();
}

