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

◆ setScreenMap() [2/3]

CLEDController & CLEDController::setScreenMap ( const fl::XYMap & map,
float diameter = -1.f )
inline

Definition at line 195 of file cled_controller.h.

195 {
196 // EngineEvents::onCanvasUiSet(this, map);
197 fl::ScreenMap screenmap = map.toScreenMap();
198 if (diameter <= 0.0f) {
199 // screen map was not set.
200 if (map.getTotal() <= (64*64)) {
201 screenmap.setDiameter(.1f); // Assume small matrix is being used.
202 }
203 }
204 fl::EngineEvents::onCanvasUiSet(this, screenmap);
205 return *this;
206 }
static void onCanvasUiSet(CLEDController *strip, const ScreenMap &xymap)
void setDiameter(float diameter)
fl::ScreenMap toScreenMap() const
Definition xymap.cpp:13
u16 getTotal() const
Definition xymap.cpp:126

References CLEDController(), fl::XYMap::getTotal(), fl::EngineEvents::onCanvasUiSet(), fl::ScreenMap::setDiameter(), and fl::XYMap::toScreenMap().

Referenced by setScreenMap().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: