Directly controlling an LCD alphanumeric display

Alternatively, you can also drive the screen directly from the Raspberry Pi with the following connections:

We are not using the I2C bus here.

LCD

VSS

VDD

V0

RS

RW

E

DB4

DB5

DB6

DB7

LCD Pin

1

2

3

4

5

6

11

12

13

14

Raspberry Pi GPIO

6 (GND)

2 (5V)

Contrast

11

13 (GND)

15

12

16

18

22

 

The preceding table lists the connections required between the Raspberry Pi and the HD44780-compatible, alphanumeric display module.

The contrast pin (V0) can be connected to a variable resistor as before (with one side connected to the 5 V supply and the other to GND); although, depending on the screen, you may find you can connect directly ...

Get Raspberry Pi 3 Cookbook for Python Programmers - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.