Page 1 of 1
Forum

Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!

Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.

Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!



Christmas star code
 
Share:
Notifications
Clear all

[Solved] Christmas star code

1 Posts
1 Users
0 Reactions
2,706 Views
(@jjben007)
New Member
Joined: 7 years ago
Posts: 1
Topic starter  

Please help, I am trying to create a 3 ring star with tail. I am very new to this but need to create an awesome display for Christmas for my son, maybe sooner. 1st star is 150 WS2811. any help would be appreciated.

Tail 1-29 meteor effect once only

first ring 30-90 blue 1sec

second ring 91-129 red 1 sec

third ring 130-150 green 1 sec

then go back in reverse if possible.

code I have managed so far

#include <FastLED.he

#define LED_PIN 6

//#define CLOCK_PIN 4 

#define NUM_LEDS 150

#define LED_TYPE WS2811

#define COLOR_ORDER RGB

#define BRIGHTNESS 250

CRGB leds[NUM_LEDS];

void setup() {

    delay(2000);

    LEDS.addLeds<LED_TYPE, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS);

// LEDS.addLeds<LED_TYPE, LED_PIN, CLOCK_PIN COLOR_ORDER>(leds, NUM_LEDS);

    FastLED.setBrightness(BRIGHTNESS);

}

void loop()

{/*

  FastLED.clear();

  fill_solid(leds, NUM_LEDS, CRGB(255,255,255));

  FastLED.show();

  delay(100);

  FastLED.clear();

/*

  

   */

  FastLED.show();

  delay(1000);

  FastLED.clear();

  fill_solid(leds, NUM_LEDS, CRGB(255,0,0));

  FastLED.show();

  delay(1000);

  FastLED.clear();

  for(int i=130;i<NUM_LEDS;i++){

    leds.setRGB(255,0,0);

    FastLED.show();

    delay(300);

 }

  FastLED.clear();

    for(int i=90;i<NUM_LEDS;i++){

    leds.setRGB(0,255,0);

    FastLED.show();

    delay(300);

 }

  FastLED.clear();

    for(int i=30;i<NUM_LEDS;i++){

    leds.setRGB(0,0,255);

    FastLED.show();

    delay(300);

 }

  FastLED.clear();

 for(int i=30;i<NUM_LEDS;i++){

   fill_rainbow(leds,i, 0, 10);

   FastLED.show();

   delay(100);

 }

  FastLED.clear();

  for(int i=30;i<NUM_LEDS;i++){

   fill_rainbow(leds,i, 0, 10);

   FastLED.show();

   delay(50);

 }

  FastLED.clear();

  for(int i=30;i<NUM_LEDS;i++){

   fill_rainbow(leds,i, 0, 10);

   FastLED.show();

   delay(50);

 }

  FastLED.clear();

  

 for(int i=30;i<NUM_LEDS;i++){  

   leds[i-2].setRGB(0,0,0);

   leds.setRGB(255,255,255);

   FastLED.show();

   delay(50);

 }

  FastLED.clear(); 

}llo there>


   
ReplyQuote
Share: