LcdDisplay.HD44780.GPIO (LcdDisplay v0.0.9) View Source
Knows how to commuticate with HD44780 type display via GPIO pins. Supports the 4-bit mode only. You can turn on/off only one backlight LED.
Examples
alias LcdDisplay.HD44780
config = %{
display_name: "display 1",
pin_rs: 2,
pin_rw: 3,
pin_en: 4,
pin_d4: 23,
pin_d5: 24,
pin_d6: 25,
pin_d7: 26,
pin_led_5v: 12,
}
# 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.