// 22.04.2021 // using the circle neopixels to make patterns // after this sketch the 1614 couldn't take any more as the sketch was to large for its memory. #include // How many leds in your strip? #define NUM_LEDS 8 // For led chips like WS2812, which have a data line, ground, and power, you just // need to define DATA_PIN. For led chipsets that are SPI based (four wires - data, clock, // ground, and power), like the LPD8806 define both DATA_PIN and CLOCK_PIN // Clock pin only needed for SPI based chipsets when not using hardware SPI #define DATA_PIN 3 #define CLOCK_PIN 13 #define BRIGHTNESS 100 // Define the array of leds CRGB leds[NUM_LEDS]; void setup() { // Uncomment/edit one of the following lines for your leds arrangement. // ## Clockless types ## FastLED.addLeds(leds, NUM_LEDS); // GRB ordering is typical } void loop() { // Turn the LED on, then pause leds[1] = CRGB::Black; FastLED.show(); delay(250); leds[2] = CRGB::Green; FastLED.show(); delay(250); leds[3] = CRGB::Black; FastLED.show(); delay(250); leds[4] = CRGB::Red; FastLED.show(); delay(250); leds[5] = CRGB::Black; FastLED.show(); delay(250); leds[6] = CRGB::Blue; FastLED.show(); delay(250); leds[7] = CRGB::Black; FastLED.show(); delay(250); leds[8] = CRGB::Green; FastLED.show(); delay(250); leds[1] = CRGB::Black; FastLED.show(); delay(250); leds[2] = CRGB::Blue; FastLED.show(); delay(250); leds[3] = CRGB::Black; FastLED.show(); delay(250); leds[4] = CRGB::Red; FastLED.show(); delay(250); leds[5] = CRGB::Black; FastLED.show(); delay(250); leds[6] = CRGB::Green; FastLED.show(); delay(250); leds[7] = CRGB::Black; FastLED.show(); delay(250); leds[8] = CRGB::Blue; FastLED.show(); delay(250); }