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

color_flow = [
  %Yeelight.FlowExpression.Sleep{
    duration: 1000
  }
]

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.Sleep{duration: integer()}