driver for LCD1602/2002/2004 with I2C adapter, for Raspberry Pi or other device
Project description
Python I2CLCD module
Python I2CLCD module for LCD1602/2002/2004 screen with I2C adapter
Can be used on embedded devices like the Raspberry Pi
Features
- Implemented most of the built-in instructions of LCD1602/2002/2004
- Support for custom characters
- Support backlight settings
- Support 'Cursor or Display Shift' instructions
- Hints for each method
Quick start
import i2clcd
lcd = i2clcd.i2clcd(i2c_bus=1, i2c_addr=0x27, lcd_width=16)
lcd.init()
# fill a line by the text
lcd.print_line('hello', line=0)
lcd.print_line('world!', line=1, align='RIGHT')
# print text at the current cursor position
lcd.move_cursor(1, 0)
lcd.print('the')
# custom character
char_celsius = (0x10, 0x06, 0x09, 0x08, 0x08, 0x09, 0x06, 0x00)
lcd.write_CGRAM(char_celsius, 0)
lcd.move_cursor(0, 6)
lcd.print(b'CGRAM: ' + i2clcd.CGRAM_CHR[0])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
i2clcd-0.0.1.tar.gz
(3.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file i2clcd-0.0.1.tar.gz.
File metadata
- Download URL: i2clcd-0.0.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76f383e13984f8492be5a8db5a14d16f8dc3f87a8636771b50e035c81fb29bbc
|
|
| MD5 |
d8ee4b2000bcb5a463c857eefa988fc1
|
|
| BLAKE2b-256 |
3df5f8f8386e72a793ec31e462759cd73da1282bd4161737fe9c2ba6e3dc22ba
|
File details
Details for the file i2clcd-0.0.1-py3-none-any.whl.
File metadata
- Download URL: i2clcd-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1ad7cb9a9478a659daf6b7e042825996dd8eac76f3233de5be517f4a59f7829
|
|
| MD5 |
355023fb9cd03c286575a996ecf14918
|
|
| BLAKE2b-256 |
16d88a683768270beffbfae2d896f770e41c132cec68848ad346ea32432054cb
|