/* Author: Elena C. K. Description: Attiny44 to control DotStar LED strip from Adafruit. It only have enough byte to control approximately 32 LEDs. Use the FastLED library to program. */ #include #define NUM_LEDS 32 #define DATA_PIN 7 #define CLOCK_PIN 8 CRGB leds[NUM_LEDS]; void setup() { // put your setup code here, to run once: FastLED.addLeds(leds, NUM_LEDS); FastLED.clear(); } void loop() { // put your main code here, to run repeatedly: for (int i = 0; i < NUM_LEDS - 1; i++) { leds[i] = CRGB::Red; leds[i + 1] = CRGB::Red; FastLED.delay(33); leds[i] = CRGB::Black; leds[i + 1] = CRGB::Black; } // for (int dot = 0; dot < NUM_LEDS; dot++) { // leds[dot] = CRGB::Blue; // FastLED.show(); // // clear this led for the next time around the loop // leds[dot] = CRGB::Black; // delay(30); // } }