FastLED 3.10.8
Loading...
Searching...
No Matches

◆ loop()

void loop ( )

Definition at line 218 of file XYMatrix.ino.

219{
220 uint32_t ms = millis();
221 int32_t yHueDelta32 = ((int32_t)cos16( ms * (27/1) ) * (350 / kMatrixWidth));
222 int32_t xHueDelta32 = ((int32_t)cos16( ms * (39/1) ) * (310 / kMatrixHeight));
223 DrawOneFrame( ms / 65536, yHueDelta32 / 32768, xHueDelta32 / 32768);
224 if( ms < 5000 ) {
225 FastLED.setBrightness( scale8( BRIGHTNESS, (ms * 256) / 5000));
226 } else {
227 FastLED.setBrightness(BRIGHTNESS);
228 }
229 FastLED.show();
230}
#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:196
fl::u32 uint32_t
Definition s16x16x4.h:219
fl::u32 millis() FL_NO_EXCEPT
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: