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
Release files for asukiaaa-py-i2c-lcd 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| asukiaaa_py_i2c_lcd-0.1.4.tar.gz | 2.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| asukiaaa_py_i2c_lcd-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.6 kB
Release files / asukiaaa_py_i2c_lcd-0.1.4.tar.gz
| Download URL | asukiaaa_py_i2c_lcd-0.1.4.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
304be479ef3404aa4f162cc3499fbff56c992794dd38ab4af9ba5ed1bd5a6fc6
|
|
BLAKE2b-256 checksum How to use checksums |
409975432e9c5a52fdf23bc75bcac452900feb05708586b5d3e81063962f6e0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / asukiaaa_py_i2c_lcd-0.1.4-py3-none-any.whl
| Download URL | asukiaaa_py_i2c_lcd-0.1.4-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
32289d12511582f7ec9dbbb23884a33362a19718cb918045c518aec835e308a9
|
|
BLAKE2b-256 checksum How to use checksums |
2289196b8c0ba972197a1ef4fff7c6819117c2a8878af45f06776801ef850bcd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |