FastLED 3.10.6
Loading...
Searching...
No Matches

◆ moveDot()

static void moveDot ( int step,
const CRGB & color )
static
Examples
MultiArrays.ino.

Definition at line 194 of file MultiArrays.ino.

194 {
195 int r = step % NUM_LEDS_RED;
196 int g = step % NUM_LEDS_GREEN;
197 int b = step % NUM_LEDS_BLUE;
198
199 redLeds[r] = color;
200 greenLeds[g] = color;
201 blueLeds[b] = color;
202 FastLED.show();
203
204 // clear our current dots before we move on
205 redLeds[r] = CRGB::Black;
208 delay(100);
209}
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
CRGB redLeds[NUM_LEDS_RED]
CRGB blueLeds[NUM_LEDS_BLUE]
#define NUM_LEDS_RED
#define NUM_LEDS_BLUE
CRGB greenLeds[NUM_LEDS_GREEN]
#define NUM_LEDS_GREEN
void delay(u32 ms, bool run_async=true) FL_NO_EXCEPT
Public delay wrapper that keeps bare Arduino delay() preferred after using fl::delay; while still all...
Definition delay.h:98
constexpr enable_if< is_fixed_point< T >::value, T >::type step(T edge, T x) FL_NO_EXCEPT
InputGamut g
Definition rgbw.h:124
@ Black
<div style='background:#000000;width:4em;height:4em;'></div>
Definition crgb.h:517

References fl::CRGB::Black, blueLeds, FastLED, greenLeds, NUM_LEDS_BLUE, NUM_LEDS_GREEN, NUM_LEDS_RED, and redLeds.

Referenced by loop().

+ Here is the caller graph for this function: