Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // *********************
- // *********************
- // *** TESTING ***
- // *** BLOCKS OF 5 ***
- // *********************
- // *********************
- //
- #include "FastLED.h"
- #define DATA_PIN 8
- //#define CLK_PIN 4
- #define NUM_LEDS 12
- //
- CRGB leds[NUM_LEDS];
- //
- //
- void setup()
- // void setup gets everything ready for what will run in the void loop.
- {
- //
- delay(3000); // 3 second delay for recovery
- //
- //FastLED.setBrightness(96);
- //
- FastLED.addLeds<WS2812B, DATA_PIN, GRB>(leds, NUM_LEDS);
- //
- } // END OF VOID SETUP
- //
- void loop()
- //
- {
- for (int i = 0; i<=NUM_LEDS; i=i+10) //1st then every 10th LED
- {
- leds[i] = CHSV(0,255,2550);
- }
- for (int i = 1; i<=NUM_LEDS; i=i+10) //2nd then every 10th LED
- {
- leds[i] = CHSV(0,255,2550);
- }
- for (int i = 2; i<=NUM_LEDS; i=i+10) //3rd then every 10th LED
- {
- leds[i] = CHSV(0,255,2550);
- }
- for (int i = 3; i<=NUM_LEDS; i=i+10) //4th then every 10th LED
- {
- leds[i] = CHSV(0,255,2550);
- }
- for (int i = 4; i<=NUM_LEDS; i=i+10) //5th then every 10th LED
- {
- leds[i] = CHSV(0,255,2550);
- }
- for (int i = 5; i<=NUM_LEDS; i=i+10) //6th then every 10th LED
- {
- leds[i] = CHSV(96,255,2550);
- }
- for (int i = 6; i<=NUM_LEDS; i=i+10) //7th then every 10th LED
- {
- leds[i] = CHSV(96,255,2550);
- }
- for (int i = 7; i<=NUM_LEDS; i=i+10) //8th then every 10th LED
- {
- leds[i] = CHSV(96,255,2550);
- }
- for (int i = 8; i<=NUM_LEDS; i=i+10) //9th then every 10th LED
- {
- leds[i] = CHSV(96,255,2550);
- }
- for (int i = 9; i<=NUM_LEDS; i=i+10) //10th then every 10th LED
- {
- leds[i] = CHSV(96,255,2550);
- }
- FastLED.show();
- }
Advertisement
Add Comment
Please, Sign In to add comment