LcdDisplay.DisplayController (lcd_display v0.2.0) View Source

Wraps a given display driver and controls the display using that driver.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Delegates the specified operation to the display driver, and updates the state as needed.

Starts a display driver process and registers the process with a composite key of driver module and display name.

Link to this section Types

Specs

display_command() :: LcdDisplay.HD44780.Driver.command()

Specs

display_driver() :: LcdDisplay.HD44780.Driver.t()

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Delegates the specified operation to the display driver, and updates the state as needed.

Examples

DisplayController.execute(pid, {:print, "Hello"})
Link to this function

start_link(display_driver)

View Source

Specs

start_link(display_driver()) :: {:ok, pid()} | {:error, any()}

Starts a display driver process and registers the process with a composite key of driver module and display name.