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

◆ XYsafe()

uint16_t XYsafe ( uint8_t x,
uint8_t y )
Examples
XYMatrix.ino.

Definition at line 173 of file XYMatrix.ino.

174{
175 if( x >= kMatrixWidth) return -1;
176 if( y >= kMatrixHeight) return -1;
177 return XY(x,y);
178}
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)

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

+ Here is the call graph for this function: