Template: LCD1602 RGB Module Guides for Pi
From Waveshare Wiki
Hardware Configuration
Enable I2C interface
- Open the terminal, and use the command to enter the configuration page.
sudo raspi-config Choose Interfacing Options -> I2C -> Yes to enable the I2C interface.
And then reboot the system:
sudo reboot
Hardware Connection
You can directly attach it to the 40PIN GPIO of Raspberry Pi. Or you can wire it to Raspberry Pi with the PH2.0 4PIN interface of the Module, please refer to the Pin definition below:
LCD | Raspberry Pi | |
BCM2835 | Board | |
VCC | 3.3V | 3.3V |
GND | GND | GND |
SDA | SDA.1 | 3 |
SCL | SCL.1 | 5 |
Take the LCD1602 RGB Module as an example, just connect it to the Raspberry Pi. The color of the actual cable may be different from the figure here, please connect them according to the pins instead of color.
If you are using Jetson Nano, the connection should be as bellow:
Download the demo
Open the terminal of the Raspberry Pi, execute command to download demo codes:
cd ~ wget https://files.waveshare.com/upload/5/5b/LCD1602-RGB-Module-demo.zip unzip LCD1602-RGB-Module-demo.zip cd ~/LCD1602-RGB-Module-demo/Raspberry sudo chmod 777 * sudo python Choose_Color.py sudo python Discoloration.py