// Jeff Ritchie 2 15 2026 revision of sketch below // adafruit neopixel example sketch #include //pulls the Neopixel library #ifdef __AVR__ //if an AVR board, use the library below. RP2040 is not an AVR. #include #endif #define PIN D6 //RP2040 uses D6 rather than pin 6 #define NUMPIXELS 56 // Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800); //creates an instance called pixels //third parameters indicate color in green red blue order and the signal frequency of 800khz #define DELAYVAL 10 //sets delay variable that makes it easier to change. Originally 500ms void setup() { #if defined(__AVR_ATtiny85__) && (F_CPU == 16000000) clock_prescale_set(clock_div_1); #endif pixels.begin(); } void loop() { pixels.clear(); for(int i=0; i