View Source Fledex (fledex v0.2.0)
This module should provide some simple macros that allow to define the led strip and to update it. The code you would write (in livebook) would look something like the following: iex> use Fledex iex> led_strip do
live_loop :john, send_config: %{offset: counter}, delay_config: counter do
config = %{
num_leds: 50,
reversed: true
}
leds(50)
|> func(:rainbow, config)
end
end
Summary
Functions
This function should not be used. It's only here for tests and can be removed
any any point in time. It only returns :ok
This introduces a new led_strip. Probably we only have a single led strip and then the default name (the module name) will be used.
This introduces a new live_loop
(animation) that will be played over
and over again until it is changed. Therefore we we give it a name to
know whether it changes
Functions
This function should not be used. It's only here for tests and can be removed
any any point in time. It only returns :ok
This introduces a new led_strip. Probably we only have a single led strip and then the default name (the module name) will be used.
This introduces a new live_loop
(animation) that will be played over
and over again until it is changed. Therefore we we give it a name to
know whether it changes