LcdDisplay
LcdDisplay is a simple Elixir library that allows you to control a Liquid-crystal display (LCD) like Hitachi HD44780.
See documentation and example apps for more information.
Installation
You can install LcdDisplay by adding lcd_display to your list of dependencies in mix.exs:
def deps do
[
{:lcd_display, "0.0.13"}
]
end
Examples
As an example, if you want to control a Hitachi HD44780 type display through
I²C, you can use LcdDisplay.HD44780.I2C module as a
display driver.
# Start the LCD driver and get a PID.
pid =
LcdDisplay.start_display(
LcdDisplay.HD44780.I2C, # A display driver module
%{display_name: "display 1"} # A config map
)
# Run a command.
LcdDisplay.execute(pid, {:print, "Hello world"})
LcdDisplay.execute(pid, :clear)
Thanks
ExLCDfor inspiration