can the led pattern be used in the program like this?

gplus
(Sheena Variasi) #1

can the led pattern be used in the program like this?

#include “FastLED.h”

#include “pattern01”
#include “pattern02”
#include “pattern03”
#include “pattern04”
#include “pattern05”
#include “pattern06”

if possible, anyone have the example code?

(Dougal Campbell) #2

I like encapsulating the pattern work in a class, sometimes:

(Andrew Tuline) #3

@Sheena_Variasi That’s exactly how I write my larger routines. Combined with lots of comments, it makes them MUCH easier to read. I find a ‘wall of code’ practically unbearable.

You may need to change the location of those other includes to be close to the setup() routine. See this one:

(Teak Hull) #4

@Andrew_Tuline Nice collection of demos!