/CharacterLCDController

Controls a character LCD using a Raspberry Pi

Primary LanguageJavaBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

CharacterLCDController

Requires the pi4j library: http://pi4j.com/download.html

Building

  1. Install the pi4j library: sudo apt install pi4j
  2. In the src/charlcdcontroller directory, compile the program with: pi4j -c *.java
  3. Run the program with pi4j -r CharLCDController

Pinout

GPIO Pin LCD Pin Name in code
+5 VDC 2, 15 N/A
GND 1, 16 N/A
00 6 enable
01 4 register
02 2 readWrite
03 7 dataBus[0]
04 8 dataBus[1]
05 9 dataBus[2]
06 10 dataBus[3]
07 11 dataBus[4]
21 12 dataBus[5]
22 13 dataBus[6]
23 14 dataBus[7]

Please note that Pi4J uses the GPIO pinout used by WiringPi:

CLI Parameters:

  • -g: Force GUI
  • -c: Force CLI
  • -d: Debug mode (does not require Pi4J or a Raspberry Pi, used for debug purposes only). Requires a terminal for full functionality