Module GPIO.lcd-hd44780

Lua module to use a hd44780 compatible LCD display with the Raspberry Pi GPIO interface.

based on code from lrvick, LiquidCrystal and Adafruit

lrvic - https://github.com/lrvick/raspi-hd44780/blob/master/hd44780.py

LiquidCrystal - https://github.com/arduino/Arduino/blob/master/libraries/LiquidCrystal/LiquidCrystal.cpp

Adafruit - https://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code/blob/master/AdafruitCharLCD/AdafruitCharLCD.py

Info:

  • Copyright: (c); Adafruit for the Python library, Thijs Schreijer for the Lua migration

Functions

delayMicroseconds (microseconds) This function will sleep for a number om micro (NOT milli!) seconds.
initialize (pin_rs, pin_e, pin_db) Creates a new display object with its pin configuration.


Functions

delayMicroseconds (microseconds)
This function will sleep for a number om micro (NOT milli!) seconds. On first call it will replace itself with a new implementation based on LuaSocket or the OS. NOTE: the OS version is really slow!

Parameters:

  • microseconds number of microseconds to sleep
initialize (pin_rs, pin_e, pin_db)
Creates a new display object with its pin configuration.

Parameters:

  • pin_rs pin number for rs (according to current pin numbering scheme)
  • pin_e pin number for e (according to current pin numbering scheme)
  • pin_db table/list with 4 pin numbers for data (according to current pin numbering scheme)

Returns:

    New display object
generated by LDoc 1.4.2