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

◆ setScreenMap() [1/4]

Channel & fl::Channel::setScreenMap ( const fl::ScreenMap & map)

Set screen map for JS canvas visualization.

Parameters
mapScreenMap with LED positions
Returns
Reference to this channel for method chaining

Definition at line 815 of file channel.cpp.hpp.

815 {
816 mScreenMap = map;
818 return *this;
819}
CLEDController * asController()
Get pointer to base CLEDController for linked list traversal.
Definition channel.h:129
fl::ScreenMap mScreenMap
Definition channel.h:280
static void onCanvasUiSet(CLEDController *strip, const ScreenMap &xymap) FL_NOEXCEPT
MapRedBlackTree< Key, T, Compare, fl::allocator_slab< char > > map
Definition map.h:283

References Channel(), asController(), mScreenMap, and fl::EngineEvents::onCanvasUiSet().

+ Here is the call graph for this function: