// NeoPixel Ring simple sketch (c) 2013 Shae Erisson // released under the GPLv3 license to match the rest of the AdaFruit NeoPixel library // NeoPixel Strip sketch for max. 150 LEDs per one meter modified by Kati Pitkänen 17.4.2018 #include #ifdef __AVR__ #include #endif #define pinNeop A3 // The pin on the Arduino connected to the NeoPixels for sending signals. #define numberLEDs 150 // Number of NeoPixels attached to the Arduino. Adafruit_NeoPixel pixels = Adafruit_NeoPixel(numberLEDs, pinNeop, NEO_GRB + NEO_KHZ800); // Telling the number of LEDs, the connection pin, pixel type flags: // NEO_GRB Pixels are wired for GRB bitstream) // NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs int delayval = 1000; // Delay for a second void setup() { pixels.begin(); // Initializing the NeoPixel library. pixels.setBrightness(100); // Value from 0 to 100% } void loop() { for(int i=0;i