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

◆ DrawOneFrame()

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

Definition at line 196 of file XYMatrix.ino.

197{
198 uint8_t lineStartHue = startHue8;
199 for( uint8_t y = 0; y < kMatrixHeight; y++) {
200 lineStartHue += yHueDelta8;
201 uint8_t pixelHue = lineStartHue;
202 for( uint8_t x = 0; x < kMatrixWidth; x++) {
203 pixelHue += xHueDelta8;
204 leds[ XY(x, y)] = CHSV( pixelHue, 255, 255);
205 }
206 }
207}
CRGB leds[1]
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 stdint.h:208

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: