View Source Yeelight.FlowExpression.RGB (yeelight v0.2.0)

color_flow = [
  %Yeelight.FlowExpression.RGB{
    duration: 1000,
    r: 255,
    brightness: 100
  },
  %Yeelight.FlowExpression.RGB{
    duration: 1000,
    g: 255,
    brightness: 100
  },
  %Yeelight.FlowExpression.RGB{
    duration: 1000,
    b: 255,
    brightness: 100
]

Yeelight.Command.start_color_flow(6, 0, color_flow)
|> Yeelight.Command.send_to(hd(devices))

Link to this section Summary

Link to this section Types

@type t() :: %Yeelight.FlowExpression.RGB{
  b: integer(),
  brightness: integer(),
  duration: integer(),
  g: integer(),
  r: integer()
}