Skip to main content

An i2c library to control AQM1602

Project description

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")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
asukiaaa_py_i2c_lcd-0.1.4-py3-none-any.whl (4.3 kB) Copy SHA256 hash SHA256 Wheel py3 May 18, 2018
asukiaaa_py_i2c_lcd-0.1.4.tar.gz (2.3 kB) Copy SHA256 hash SHA256 Source None May 18, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page