#include #include #ifdef __AVR__ #include #endif #define PIN 8 // IMPORTANT: To reduce NeoPixel burnout risk, add 1000 uF capacitor across // pixel power leads, add 300 - 500 Ohm resistor on first pixel's data input // and minimize distance between Arduino and first pixel. Avoid connecting // on a live circuit...if you must, connect GND first. Adafruit_NeoPixel strip = Adafruit_NeoPixel(12, PIN, NEO_GRB + NEO_KHZ800); byte RX = 0; byte TX = 1; char addr = '1'; SoftwareSerial myserial(RX,TX); void setup() { strip.begin(); strip.show(); // Initialize all pixels to 'off' } void colorWipe(uint32_t c, uint8_t wait) { for(uint16_t i=0; i