A battery monitor component for use in Scenic applications.
Scenic.Battery is a dumb component, so you have to tell it the state yourself. It doesn't know anything about your machine.
Shamelessly modeled after Scenic.Clock.
If available in Hex, the package can be installed
by adding scenic_battery
to your list of dependencies in mix.exs
:
def deps do
[
{:scenic_battery, "~> 0.1.0"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/scenic_battery.