26 const CRGB &
at(
int x,
int y)
const {
return (*
this)(
x,
y); }
45 for (fl::size i = 0; i <
mXyMap.getTotal(); ++i) {
58template <fl::size W, fl::size H>
class LedsXY :
public Leds {
63 :
XYMap::constructRectangularGrid(W, H)) {}
const XYMap & xymap() const
void fill(const CRGB &color)
CRGB & operator()(int x, int y)
Leds(CRGB *leds, u16 width, u16 height)
const CRGB & at(int x, int y) const
Leds & operator=(const Leds &)=default
Leds(const Leds &)=default
LedsXY(bool is_serpentine)
LedsXY(const LedsXY &)=default
void setXyMap(const XYMap &xymap)
void setSerpentine(bool is_serpentine)
LedsXY & operator=(const LedsXY &)=default
static XYMap constructSerpentine(u16 width, u16 height, u16 offset=0)
static XYMap constructRectangularGrid(u16 width, u16 height, u16 offset=0)
Defines the red, green, and blue (RGB) pixel struct.
Representation of an RGB pixel (Red, Green, Blue)