View Source Fledex.LedStripDriver.LoggerDriver (fledex v0.1.1)

This is a dummy implementation of the LedStripDriver that dumps the binaries to IO. This can be useful if you want to run some tests without real hardware. The real implementatin probably opens a channel (if not already open) to the bus (like SPI) sends the data to the bus.

Note: this module is allowed to store information in the state (like the channel it has oppened), so that we don't have open/close it all the time. Cleanup should happen in the terminate function

Summary

Types

@type colorint() :: 0..16_777_215
@type hsv() :: {hue :: 0..255, saturation :: 0..255, value :: 0..255}
@type rgb() :: {red :: 0..255, green :: 0..255, blue :: 0..255}