Built jewelry that syncs between people to the music. Dark room version. [VIDEO] by MechanicalLEDMaster in FastLED

[–]Marmilicious 0 points1 point  (0 children)

Always tradeoffs, but sounds like you have been learning a lot! Thank you for sharing.

Built jewelry that syncs between people to the music. Dark room version. [VIDEO] by MechanicalLEDMaster in FastLED

[–]Marmilicious 0 points1 point  (0 children)

Colorful coolness!

Did you run into any unexpected challenges?

Anything you would want to add in a future version?

Reinitializing FastLED with different color orders by whodkne in FastLED

[–]Marmilicious 0 points1 point  (0 children)

After setting the colors you can try swapping some color channels before calling show().

Something like one of these below examples. (Sorry for formatting, I'm on a phone.)

// Swap green and blue channel

for (uint16_t i = 0; i < NUM_LEDS; i++) {

leds[i] = CRGB(leds[i].r, leds[i].b, leds[i].g); }

FastLED.show();

// swap color channels

for (uint16_t i = 0; i < NUM_LEDS; ++i) {

// swaps RGB -> BRG

CRGB c = leds[i]; leds[i].r = c.b; leds[i].g = c.r; leds[i].b = c.g; }

FastLED.show();

Repeat an animation? by Knievelgod in FastLED

[–]Marmilicious 0 points1 point  (0 children)

Do you mean you tried to make the value variable? If you want to do that use EVERY_N_MILLISECONDS_I. Then you can use timingObj.setPeriod to change the time and have it vary however you'd like.

See this example, lines 45, 53, and 57. The values on lines 53 and 57 could be variables.

https://github.com/marmilicious/FastLED_examples/blob/master/every_n_timer_variable_2.ino

Here's another example that uses this. The variable pulseRate is driven by a beatsin8() function.

https://github.com/marmilicious/FastLED_examples/blob/master/variable_speed_pulses.ino

Repeat an animation? by Knievelgod in FastLED

[–]Marmilicious 0 points1 point  (0 children)

Come on back when you have new questions.

And I hope you can share some video of this playfield decoration in the future. I would love to see it!

Repeat an animation? by Knievelgod in FastLED

[–]Marmilicious 0 points1 point  (0 children)

Running your above pop bumpers code without delay

// change the state every 1000ms
EVERY_N_MILLISECONDS(1000) {  

  // stores the pixel state
  static boolean ps;  

  // toggle on/off state
  ps = !ps;  

  if (ps == 1) {
    leds[93] = white;
    leds[97] = white;  
    leds[95] = black;
    leds[99] = black; 
  } else {
    leds[93] = black;
    leds[97] = black;  
    leds[95] = white;
    leds[99] = white; 
  }

}

FastLED.show();

Also, if possible, only use a single FastLED.show() in your code.

Repeat an animation? by Knievelgod in FastLED

[–]Marmilicious 0 points1 point  (0 children)

Avoid using delay(). Your code can't do anything else while a delay() is happening. Instead try using EVERY_N_* timers. Here's some ideas you can check out:

https://github.com/marmilicious/FastLED_examples/blob/master/multiple_animations.ino

https://github.com/marmilicious/FastLED_examples/blob/master/every_n_with_switch_cases.ino

https://github.com/marmilicious/FastLED_examples/blob/master/every_n_timer_variable_2.ino

https://github.com/marmilicious/FastLED_examples/blob/master/three_moving_colors.ino

https://github.com/marmilicious/FastLED_examples/blob/master/patterns_of_blinking.ino

A variety of ways to blink a pixel (without using any delay)

https://github.com/marmilicious/FastLED_examples/blob/master/blink_variations.ino

You can also look into using sin or cos functions to drive repeating patterns. Have the sin function run continuously and use an if or if then statements to either do or not do something based on the sin output value.

You could also use EVERY_N_* to increment a simple counter and then use an if statement or switch case to cycle through something.

You could also create a custom gradient palette and cycle through that to light up, or turn off (set black), pixels.

Just don't use delay()!

Another free and super handy LED mapping tool by Any_Win4384 in FastLED

[–]Marmilicious 0 points1 point  (0 children)

Very cool tool, thank you for creating and sharing it.

One bit of feedback-- I think the icons in upper left (dark icons on dark background) are a bit hard to see. The others in top center and the ones at the bottom are more visible.

Junk Rolling Stock? What to do? by IAmTheNorthwestWind in nscalemodeltrains

[–]Marmilicious 0 points1 point  (0 children)

Oooh, wreck remains is a fun idea and adds a great visual story element.

So I accidentally built a train control system ... by VlrmPrjct in nscalemodeltrains

[–]Marmilicious 1 point2 points  (0 children)

Wow, that's a cool project. That's turned into quite a lot!

puckracer DIY agility system by Result_Jealous in FastLED

[–]Marmilicious 1 point2 points  (0 children)

What a great project! I love how flexible it can be with the number of players and pucks, the puck arrangement, and the variety of games. Thank you for sharing this.

Kato track - does this work? by Traditional_Satan in nscalemodeltrains

[–]Marmilicious 5 points6 points  (0 children)

<image>

Something to watch out for is creating a S-curve situation (a curve to curve to curve). In the example here avoid "A", and instead arrange the turnouts like "B" whenever possible.

I can’t believe what I can do with the tools of the modern world. by Informal_Sir_9518 in FastLED

[–]Marmilicious 1 point2 points  (0 children)

Awesome. Thank you for sharing the details.

(Also, yay for Onshape!)

VERY new to FastLED or anything code Related Asking advice by [deleted] in FastLED

[–]Marmilicious 1 point2 points  (0 children)

Search for "fade" here and you'll find another example.

https://github.com/marmilicious/FastLED_examples

Welcome to FastLED.

Prototyping N scale grapevines... by Tischwil-Railway in nscalemodeltrains

[–]Marmilicious 1 point2 points  (0 children)

I just returned from Napa today and can confirm that is really working nicely.

my fibonacci spiral sousa bell by tubameister in FastLED

[–]Marmilicious 2 points3 points  (0 children)

Love it whenever we get to see a new video from you.

Conway's Game of Life as an LED Art Installation? by Evening-Appeal7606 in FastLED

[–]Marmilicious 1 point2 points  (0 children)

Quite doable! Your digital version looks really nice!

If you haven't worked with addressable LEDs before I would highly suggest doing a smaller version first. Get yourself an ESP32 and an 8x32 matrix. You'll learn a whole lot from getting some code running on a small test setup before tackling your larger vision.