项目作者: MrLaki5

项目描述 :
Raspberry Pi python driver for lcd i2c display
高级语言: Python
项目地址: git://github.com/MrLaki5/RaspberryPi-lcd-i2c-driver.git
创建时间: 2021-02-06T16:24:34Z
项目社区:https://github.com/MrLaki5/RaspberryPi-lcd-i2c-driver

开源协议:GNU General Public License v3.0

下载


RaspberryPi lcd i2c display driver

Adding an lcd display to your Raspberry Pi can increase mobility of your projects and give you whole new dimension of interfacing possibilities. This project with setup steps below will help you to easily connect and run your i2c lcd display on Raspberry Pi.


Setup

Connect i2c display to Raspberry Pi

Connection is simple, from the image below we can see pins on Raspberry Pi that should be connected

  • 5V power (RPi) => VCC (Display)
  • Ground (RPi) => GND (Display)
  • SDA (RPi) => SDA (Display)
  • SCL (RPi) => SCL (Display)

Enable i2c display

After display is connected turn Raspberry Pi on and perform next steps in order to activate display

  1. # Install required packages
  2. sudo apt install i2c-tools python-smbus
  3. # Enable i2c interface
  4. sudo raspi-config # Interfaceing Options > I2C > Activate
  5. # Reboot
  6. sudo reboot
  7. # Check address of display
  8. sudo i2cdetect -y 1
  9. # It is probably 0x27, but if it's some other address, init display with it

Test driver

Driver consists of test code, just simply run command below to test it

  1. python3 ./lcd_i2c_driver.py

Driver interface

Can be found on WIKI


References

Display worksheet