FastLED 3.10.8
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
uint8_t XY(uint8_t x, uint8_t y)
Definition Fire2023.h:219
#define kMatrixHeight
#define kMatrixWidth
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: