View Source Fledex.Leds (fledex v0.1.0)
Link to this section Summary
Functions
:offset is 1 indexed. Offset needs to be >0 if it's bigger than the :count then the led will be stored, but ignored
Link to this section Types
@type colorint() :: 0..16_777_215
@type hsv() :: {hue :: 0..255, saturation :: 0..255, value :: 0..255}
@type rgb() :: {red :: 0..255, green :: 0..255, blue :: 0..255}
Link to this section Functions
@spec get_light(t(), pos_integer()) :: colorint()
@spec new() :: t()
@spec rotate([colorint()], pos_integer(), boolean()) :: [colorint()]
@spec update(t(), colorint() | t(), pos_integer()) :: t()
:offset is 1 indexed. Offset needs to be >0 if it's bigger than the :count then the led will be stored, but ignored