FastLED 3.10.8
Loading...
Searching...
No Matches

◆ XYsafe()

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

Definition at line 188 of file XYMatrix.ino.

189{
190 if( x >= kMatrixWidth) return -1;
191 if( y >= kMatrixHeight) return -1;
192 return XY(x,y);
193}
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

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

+ Here is the call graph for this function: