#include #ifdef __AVR__ #include #endif #define BUTTON_PIN 2 #define PIXEL_PIN 4 #define PIXEL_COUNT 16 Adafruit_NeoPixel strip(PIXEL_COUNT, PIXEL_PIN, NEO_GRB + NEO_KHZ800); void setup() { pinMode(BUTTON_PIN, INPUT_PULLUP); strip.begin(); strip.show(); } void loop() { boolean push = digitalRead(BUTTON_PIN); if(push == false){ rainbow(10); } } void colorWipe(uint32_t color, int wait) { for(int i=0; i