8000 GitHub - andrewwdao/pi-LCD-I2C: Python module for the LCD display connected to a Raspberry Pi. Ported from C++ library for Arduino at: https://github.com/fdebrabander/Arduino-LiquidCrystal-I2C-library
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

andrewwdao/pi-LCD-I2C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LCD-I2C module for Raspberry Pi

About

This is a Python module for the LCD display connected to a Raspberry Pi.

Designed for 20x4 (default), 16x2,... LCD (definitely not 12864 LCD).

Ported from C++ library for Arduino on Github.

Ported by Minh-An Dao, from Can Tho University, Vietnam. Licensed under the MIT License. (c) 2019-2020

Installation

  • Clone or download the repository to your Rasp.
  • Setup I2C before using:
    • Give permission to the setup file:
        chmod +x ./ setup-i2c
    • Run setup: (only need to run once on a fresh Rasbian Buster installation)
        sudo ./ setup-i2c
  • Run the demo:
python3 lcd.py
  • Now the LCD should show some letters. If not, please double check your wiring and the type of LCD.
  • You can change the number of rows and columns of the LCD in initialization file (default to be 20x4).
  • You can check inside the module to see what functions are available. Since I only port functions that are necessary for my project, you can not expect to have full functions as the original. However, I believe all basic functions for displaying the LCD are included.
  • Have fun coding!

About

Python module for the LCD display connected to a Raspberry Pi. Ported from C++ library for Arduino at: https://github.com/fdebrabander/Arduino-LiquidCrystal-I2C-library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0