Getting ready

You will need the Adafruit I2C 16x2 RGB LCD Pi Plate (which also includes five keypad buttons), shown in the following photo:

Adafruit I2C 16x2 RGB LCD Pi Plate with keypad buttons

The Adafruit I2C 16x2 RGB LCD Pi Plate directly connects to the GPIO connector of Raspberry Pi.

As before, we can use the PCF8591 ADC module or use the data_local.py module from the previous section (use data_adc or data_local in the import section of the script). The data_adc.py and data_local.py files should be in the same directory as the new script.

The LCD Pi Plate only requires four pins (SDA, SCL, GND, and 5V); it connects over the whole GPIO ...

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.