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

◆ DrawOneFrame()

void DrawOneFrame ( uint8_t startHue8,
int8_t yHueDelta8,
int8_t xHueDelta8 )
Examples
XYMatrix.ino.

Definition at line 183 of file XYMatrix.ino.

184{
185 uint8_t lineStartHue = startHue8;
186 for( uint8_t y = 0; y < kMatrixHeight; y++) {
187 lineStartHue += yHueDelta8;
188 uint8_t pixelHue = lineStartHue;
189 for( uint8_t x = 0; x < kMatrixWidth; x++) {
190 pixelHue += xHueDelta8;
191 leds[ XY(x, y)] = CHSV( pixelHue, 255, 255);
192 }
193 }
194}
fl::CRGB leds[NUM_LEDS]
int y
Definition simple.h:93
int x
Definition simple.h:92
#define kMatrixHeight
#define kMatrixWidth
FL_OPTIMIZATION_LEVEL_O3_BEGIN fl::u16 XY(fl::u8 x, fl::u8 y) FL_LINK_WEAK
Definition blur.cpp.hpp:35
fl::hsv8 CHSV
Definition chsv.h:11
unsigned char uint8_t
Definition s16x16x4.h:209

References kMatrixHeight, kMatrixWidth, leds, x, XY(), and y.

Referenced by loop().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: