### jLCD_I2C Display

jLCD_I2C - Display 20x4 or 16x2.
Developed in B4J.
Based upon this project https://www.b4x.com/android/forum/threads/raspberry-b4j-i2c-hd44780-lcd-driver.61123/ (thanks to the author).
Dependecies
On jPi4J (see category Raspberry Pi Libraries > jPi4J GPIO Controller) and the pi4j jar files (core, device, gpio-extension, service).
Ensure the additional library jar files are located in the B4J additional libraries folder.
Reference
Not available
Download
Documentation on request.
Wiring
Wiring HD44780 I2C LCD2004 (SainSmart)
LCD2004 = RPi
GND = GND
VCC = 5v
SDA = SDA (pin #3)
SCL = SCL (pin #5)
I2C Address
0x27
Sample Code
`Sub Process_Globals
Private lcd As LCD_I2C
End Sub`
`Sub AppStart (Args() As String)
'Init the LCD using bus 1 with address 0x27, 4 rows and 20 columns
lcd.Initialize(1, 0x27, 4, 20)
lcd.BacklightOn
lcd.ClearDisplay
lcd.Goto(1,1)
lcd.Char_Custom(0, Array As Byte(0x00,0x0A,0x00,0x04,0x11,0x0E,0x00,0x00))
lcd.Print($"Hello World ${Chr(0)}"$)
lcd.Goto(2,1)
lcd.CursorStyle(lcd.CURSOR_BLINKINGBLOCK)
'IMPORTANT
StartMessageLoop
End Sub`

Changed: 2018-06-07 09:18, Category: Raspberry Pi Libraries, File: T6C235M1722.htm, ID: 1722