Another question, having trouble on where exactly to look.

fastled-support
gplus
(Jeremy McCabe) #1

Another question, having trouble on where exactly to look.
I want to make my specific patterns into classes that can be used regardless of what strip I want it on.

Say I have 3 patterns (Comet, OTC, Rave) with parameters ( uint32_t color, uint32_t wait)

And three arrays of leds on 3 seperate pins.

strip[NUM_LEDS];
ring1[NUM_LEDR1];
ring2[NUM_LEDR2];

I want to be able to say:

strip.Comet( CRGB::Gold, 5);
ring1.OTC(CRGB::Red,10);
ring2.Rave(CRGB::Blue,20);

I’m still new to this and just wrapping my head around it. Just need a little guidance.

(Yves BAZIN) #2

@Jeremy_McCabe here is to help you start