FastLED 3.9.15
Loading...
Searching...
No Matches

◆ loop()

void loop ( )

Definition at line 205 of file XYMatrix.ino.

206{
207 uint32_t ms = millis();
208 int32_t yHueDelta32 = ((int32_t)cos16( ms * (27/1) ) * (350 / kMatrixWidth));
209 int32_t xHueDelta32 = ((int32_t)cos16( ms * (39/1) ) * (310 / kMatrixHeight));
210 DrawOneFrame( ms / 65536, yHueDelta32 / 32768, xHueDelta32 / 32768);
211 if( ms < 5000 ) {
212 FastLED.setBrightness( scale8( BRIGHTNESS, (ms * 256) / 5000));
213 } else {
214 FastLED.setBrightness(BRIGHTNESS);
215 }
216 FastLED.show();
217}
#define BRIGHTNESS
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
#define kMatrixHeight
#define kMatrixWidth
void DrawOneFrame(uint8_t startHue8, int8_t yHueDelta8, int8_t xHueDelta8)
Definition XYMatrix.ino:183
fl::u32 uint32_t
Definition s16x16x4.h:219
fl::u32 millis()
Universal millisecond timer - returns milliseconds since system startup.
fl::i32 int32_t
Definition s16x16x4.h:220

References BRIGHTNESS, DrawOneFrame(), FastLED, kMatrixHeight, and kMatrixWidth.

+ Here is the call graph for this function: