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 181 of file XYMatrix.ino.

182{
183 uint8_t lineStartHue = startHue8;
184 for( uint8_t y = 0; y < kMatrixHeight; y++) {
185 lineStartHue += yHueDelta8;
186 uint8_t pixelHue = lineStartHue;
187 for( uint8_t x = 0; x < kMatrixWidth; x++) {
188 pixelHue += xHueDelta8;
189 leds[ XY(x, y)] = CHSV( pixelHue, 255, 255);
190 }
191 }
192}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:80
uint32_t y[NUM_LAYERS]
Definition Fire2023.ino:81
#define kMatrixHeight
#define kMatrixWidth
uint16_t XY(uint8_t x, uint8_t y)
Representation of an HSV pixel (hue, saturation, value (aka brightness)).
Definition chsv.h:16

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: