31 float cm_led_diameter = 0.5f);
39 float diameter = -1.0);
66 static bool ParseJson(
const char *jsonStrScreenMap,
70 static bool ParseJson(
const char *jsonStrScreenMap,
71 const char *screenMapName,
ScreenMap *screenmap,
static void toJsonStr(const FixedMap< Str, ScreenMap, 16 > &, Str *jsonBuffer)
ScreenMap & operator=(const ScreenMap &other)
void setDiameter(float diameter)
ScreenMap(const pair_xy_float(&lut)[N], float diameter=-1.0)
uint32_t getLength() const
static void toJson(const FixedMap< Str, ScreenMap, 16 > &, JsonDocument *doc)
static const pair_xy_float & empty()
const pair_xy_float & operator[](uint32_t x) const
static ScreenMap Circle(int numLeds, float cm_between_leds=1.5f, float cm_led_diameter=0.5f)
LUTXYFLOATPtr mLookUpTable
static bool ParseJson(const char *jsonStrScreenMap, FixedMap< Str, ScreenMap, 16 > *segmentMaps, Str *err=nullptr)
void set(uint16_t index, const pair_xy_float &p)
pair_xy_float mapToIndex(uint32_t x) const
float getDiameter() const
Implements the FastLED namespace macros.
pair_xy< float > pair_xy_float
Implements a simple red square effect for 2D LED grids.
static FASTLED_NAMESPACE_BEGIN uint8_t const p[]