FastLED 3.9.15
Loading...
Searching...
No Matches
fl::ScreenMap Class Reference

Detailed Description

Definition at line 28 of file screenmap.h.

#include <screenmap.h>

Public Member Functions

 ScreenMap ()=default
 
 ScreenMap (const pair_xy_float *lut, uint32_t length, float diameter=-1.0)
 
template<uint32_t N>
 ScreenMap (const pair_xy_float(&lut)[N], float diameter=-1.0)
 
 ScreenMap (const ScreenMap &other)
 
 ScreenMap (uint32_t length, float mDiameter=-1.0f)
 
float getDiameter () const
 
uint32_t getLength () const
 
pair_xy_float mapToIndex (uint32_t x) const
 
ScreenMapoperator= (const ScreenMap &other)
 
pair_xy_floatoperator[] (uint32_t x)
 
const pair_xy_floatoperator[] (uint32_t x) const
 
void set (uint16_t index, const pair_xy_float &p)
 
void setDiameter (float diameter)
 

Static Public Member Functions

static ScreenMap Circle (int numLeds, float cm_between_leds=1.5f, float cm_led_diameter=0.5f)
 
static bool ParseJson (const char *jsonStrScreenMap, const char *screenMapName, ScreenMap *screenmap, Str *err=nullptr)
 
static bool ParseJson (const char *jsonStrScreenMap, FixedMap< Str, ScreenMap, 16 > *segmentMaps, Str *err=nullptr)
 
static void toJson (const FixedMap< Str, ScreenMap, 16 > &, JsonDocument *doc)
 
static void toJsonStr (const FixedMap< Str, ScreenMap, 16 > &, Str *jsonBuffer)
 

Static Private Member Functions

static const pair_xy_floatempty ()
 

Private Attributes

uint32_t length = 0
 
float mDiameter = -1.0f
 
LUTXYFLOATPtr mLookUpTable
 

The documentation for this class was generated from the following files: