LcdDisplay.HD44780.GPIO (LcdDisplay v0.0.4) View Source

Knows how to commuticate with HD44780 type display via GPIO pins. Currently supports the 4-bit mode only.

Examples

alias LcdDisplay.HD44780

config = %{
  name: "display 1", # the identifier
  rs: 2,             # the GPIO pin for RS
  rw: 3,             # the GPIO pin for RW
  en: 4,             # the GPIO pin for EN
  d4: 23,            # the GPIO pin for D4
  d5: 24,            # the GPIO pin for D5
  d6: 25,            # the GPIO pin for D6
  d7: 26,            # the GPIO pin for D7
}

# Start the LCD driver and get the initial display state.
{:ok, display} = HD44780.GPIO.start(config)

# Run a command and the display state will be updated.
{:ok, display} = HD44780.GPIO.execute(display, {:print, "Hello world"})

Link to this section Summary

Functions

Executes the specified command and returns a new display state.

Initializes the LCD driver and returns the initial display state.

Stops the LCD driver.

Link to this section Functions

Executes the specified command and returns a new display state.

Initializes the LCD driver and returns the initial display state.

Stops the LCD driver.