LcdDisplay.DisplayController (lcd_display v0.1.2) 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.

Discovers a process by the composite key of driver module atom and display name.

Link to this section Types

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(initial_display)

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.

Specs

whereis({atom(), any()}) :: pid() | nil

Discovers a process by the composite key of driver module atom and display name.