LcdDisplay.DisplaySupervisor (lcd_display v0.1.2) View Source

Supervises display controller processes.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

display_controller(driver_module, config)

View Source

Creates a LcdDisplay.DisplayController process.

Examples

pid = DisplaySupervisor.display_controller(
  LcdDisplay.HD44780.PCF8574,
  %{
    display_name: "display 1", # the identifier
    i2c_bus: "i2c-1",          # I2C bus name
    i2c_address: 0x27,         # 7-bit address
    rows: 2,                   # the number of display rows
    cols: 16,                  # the number of display columns
    font_size: "5x8"           # "5x10" or "5x8"
  }
)