// Jeff Ritchie 2 15 2026 revision - breathing // based on 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_GRBW + NEO_KHZ800); //creates an instance called pixels //third parameters indicate color in green red blue white order and the signal frequency of 800khz #define DELAYVAL 20 //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() { static float t = 0.0; int brightness = (sin(t) + 1.0) * 75; // range 0–150 pixels.setBrightness(brightness); for(int i=0; i