Raspberry Pi Pinout

16x2 Character LCD

This plate makes it easy to use a 16x2 Character LCD. Most character LCDs use lots of GPIO pins, but since this uses I2C you only need two pins.

The keypad gives you buttons to input to the display and it comes with a python library to make it super easy to program.

Note that the same pinout applies to both positive, negative and normal LCD.

To install:

sudo apt-get update
sudo apt-get install build-essential python-dev python-smbus python-pip git
sudo pip install RPi.GPIO
git clone https://github.com/adafruit/Adafruit_Python_CharLCD.git
cd Adafruit_Python_CharLCD
sudo python setup.py install

详情

16x2 Character LCD