I2C Adapter (Slave)
I2C Tracer
LC Display Adapter
Motor Controls
Camera Modules
Other Adapters
I2C LCD Adapter
The I²C LC display adapter enables easy interfacing a LCD (HD44780, 8-bit interface, e.g. 16x2 or 20x4) to an I2C-bus. Communication between a host and the I2C LCD controller takes places via the 2 wire bi-directional seriel interface. Thus it is possible to write/read alphanumeric characters to/from a LCD via I2C bus.
On power up the adapter takes over the initialisation of the display. All options of the LCD can be changed any time via I2C. These options could be stored in a non-volatile memory and after a new start the display will be initialised with the new options. Theoretically, up to 64 LC-Displays could be connected on an I2C bus. Slave adress is also programmable via I2C.
The following standard functions of a LC-Display are available:
DisplayON_OFF (Display ON/OFF, Cursor ON/OFF, Blinking ON/OFF)
SetEntryMode (Cursor Increase/Decrease, Display is shifted / not shifted)
SetFunction (8/4 bits Interface, 2/1 Line Display, 5x10/5x7 Dots)
Shift (Display shift / Cursor move, Right / Left shift)
Clear Display
Return Home
Set Cursor
CharToLCD (writes a character on the LCD)
CMDToLCD (sends a command to the LCD)
GetCursorAdr (reads current cursor adress)
GetCharAtCur (reads character at current cursor adress)
SetCGRAMAdr (sets a new CG RAM adresse)
SetGGRAMAdr (sets a new GGRAM adresse)
ReadRAM (read current adress CG- or GG-RAM)
Further functions:
WriteString:
Writes a stringon LCD (max. 40 characters).
SaveLCDIni:
Saves current options of the LCD. On power up the controller reads these options again and initialise the LCD
WriteUserDefChr:
To create a user defined characters and to load them to the CGRAM of a LCD. A LCD-Display allows 8 users defined characters to be loaded to the CGRAM. These are the first 8 characters (0x00 to 0x07) in the standard character pattern of a LCD.
SaveUserDefChr:
After loading a character to the LCD, the character could be saved in a non-volatile memory. After a power up the 8 characters will be automatically loaded to the CGRAM.
Delete:
In order to delete a certain range of the display.
CopyToClipBoard:
Up to 20 characters can be stored in a buffer. These can be inserted later at the cursor position again.
Paste:
Pastes characters in Clip board to the current cursor position.