- Adds
enumerate
method for getting a list of available LEDs.
- Specifying string for LED name to set function now bypasses name mapping
- Removed all compile-time config cacheing to avoid deps issues
- Now raises ArgumentError for invalid states
- Added alternate single-LED API form
set/2
- Simplified README
This update reflects a number of changes that bring this module more in line with current Nerves and Elixir naming, coding, and license conventions, in preparation for pushing to hex. Unfortunately it changes the API, but hey, we're still < 1.0, right?
- Breaking API Changes
- Renamed project to
nerves_leds
(wasnerves_io_led
) - Module is now Nerves.Leds (was Nerves.Led)
- Removed the
alive
functionality (can useoneshot
trigger instead)
- Renamed project to
- Improved code style in places and fixed warnings
- Improved and fixed bugs in docs
- Changed LICENSE to Apache 2
- Breaking API Changes
- app_name is now
nerves_io_led
for config.exs - changed configuration options to avoid confusing 'map' terminology
- config option
name_map
is now justnames
- config option
state_map
is now juststates
- config option
- app_name is now
- Move from Cellulose to Nerves Project
- Scope as Nerves.IO.Leds
- Add support for ExDoc
- Clean up README.md
- Add package support