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

◆ operator[]() [1/2]

const CRGB * fl::Leds::operator[] ( int x) const

Definition at line 37 of file leds.cpp.hpp.

37 {
38 FASTLED_ASSERT(mXyMap.isSerpentine() || mXyMap.isLineByLine(),
39 "XYMap is not serpentine or line by line");
40 return &mLeds[mXyMap(0, y)];
41}
fl::span< CRGB > mLeds
Definition leds.h:57
XYMap mXyMap
Definition leds.h:56

References fl::FL_NO_EXCEPT, mLeds, mXyMap, and fl::y.