Skip to content

A python library to control lcd via i2c communication.

Notifications You must be signed in to change notification settings

asukiaaa/asukiaaa_py_i2c_lcd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

asukiaaa_py_i2c_lcd

An i2c driver to control lcd from raspberry pi with python.

Useage

Install

sudo apt install smbus python-pip
sudo pip install asukiaaa-py-i2c-lcd

Activate I2C of raspberry pi

sudo raspi-config

Interface Options -> I2C -> Yes

Connect

Raspberry pi I2C Relay
3.3v VCC
2 (SDA) SDA0
3 (SCL) SCL0
GND GND
I2C Relay LCD
VCC (3.3v) VCC
SDA1 SDA
SCL1 SCL
GND GND

Run

Execute the following command.

from asukiaaa_py_i2c_lcd.core import I2cLcd, AQM1602_ADDR

I2C_BUS_NUM = 1

lcd = I2cLcd(I2C_BUS_NUM, AQM1602_ADDR)
lcd.setCursor(0,0)
lcd.write("Hello")
lcd.setCursor(3,1)
lcd.write("World")

References

About

A python library to control lcd via i2c communication.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages