24 CRGB &operator()(
int x,
int y);
25 const
CRGB &operator()(
int x,
int y) const;
28 const CRGB &
at(
int x,
int y)
const {
return (*
this)(
x,
y); }
44 operator const CRGB *()
const {
return mLeds.data(); }
47 for (fl::size i = 0; i <
mXyMap.getTotal(); ++i) {
60template <fl::size W, fl::size H>
class LedsXY :
public Leds {
65 :
XYMap::constructRectangularGrid(
W,
H)) {}
const XYMap & xymap() const
Leds & operator=(const Leds &) FL_NOEXCEPT=default
void fill(const CRGB &color)
Leds(CRGB *leds, u16 width, u16 height)
Leds(Leds &&) FL_NOEXCEPT=default
const CRGB & at(int x, int y) const
Leds(const Leds &) FL_NOEXCEPT=default
fl::span< const CRGB > rgb() const
LedsXY(bool is_serpentine)
LedsXY & operator=(const LedsXY &) FL_NOEXCEPT=default
LedsXY(const LedsXY &) FL_NOEXCEPT=default
void setXyMap(const XYMap &xymap)
void setSerpentine(bool is_serpentine)
static XYMap constructSerpentine(u16 width, u16 height, u16 offset=0) FL_NOEXCEPT
static XYMap constructRectangularGrid(u16 width, u16 height, u16 offset=0) FL_NOEXCEPT
Defines the 8-bit red, green, and blue (RGB) pixel type in the fl namespace.
Base definition for an LED controller.
Representation of an 8-bit RGB pixel (Red, Green, Blue)