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.2"}
]
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.
alias LcdDisplay.HD44780
# Start the LCD driver and get the initial display state.
{:ok, display} = HD44780.I2C.start()
# Run a command and the display state will be updated.
{:ok, display} = HD44780.I2C.execute(display, {:print, "Hello world"})
{:ok, display} = HD44780.I2C.execute(display, :clear)
Thanks
ExLCDfor inspiration
Links
- Hitachi HD44780 datasheet