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

Link to this macro

led_strip(strip_name, strip_options \\ :kino, list)

View Source (macro)

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.

Link to this macro

live_loop(loop_name, loop_options \\ [], list)

View Source (macro)

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