LcdDisplay.HD44780.GPIO (LcdDisplay v0.0.2) 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: 1, # the GPIO pin for RS
en: 2, # the GPIO pin for EN
d4: 7, # the GPIO pin for D4
d5: 8, # the GPIO pin for D5
d6: 9, # the GPIO pin for D6
d7: 10, # the GPIO pin for D7
rows: 2, # the number of display rows
cols: 16, # the number of display columns
font_size: "5x8" # "5x10" or "5x8"
}
# Start the LCD driver and get the initial display state.
HD44780.GPIO.start(config)
# Run a command and the display state will be updated.
{:ok, display} = HD44780.I2C.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.