Powered by AppSignal & Oban Pro
Would you like to see your link here? Contact us

Mango

priv/lights.livemd

Mango

Mix.install([{:delux, "~> 0.4"}])

Section

File.ls!("/sys/class/leds/")
Delux.start_link(
  indicators: %{
    default: %{red: "led0:red", green: "led0:green", blue: "led0:blue"}
  }
)

Delux.render(%{
  default: Delux.Effects.cycle([:black, :white], 1)
})