Digole LCD Drivers
Project description
Digole LCD Driver
Tested with Digole 160x128 Color LCD 1.8" DSDM/Serial
Raspberry Pi 3 B using the i2c bus
Install: pip3 install digole
Upgrade: pip3 install digole --upgrade
Usage:
```
from digole import lcd
use the default i2c address of 0x27
s = lcd()
```
specify a different i2c address
``` python
s = lcd(0x29)```
clear the screen
``` python
s.clearScreen()```
write a line of text
``` python
s.writeLine('Text to write')```
change X start position
from the left edge in columns
``` python
s.changePosition(x)```
change XY start position of the text
from the top left corner in columns, rows
``` python
s.changePosition(x,y)
s.changePosition(0,2) # start the text on column 0 row 2```
Tested with Digole 160x128 Color LCD 1.8" DSDM/Serial
Raspberry Pi 3 B using the i2c bus
Install: pip3 install digole
Upgrade: pip3 install digole --upgrade
Usage:
```
from digole import lcd
use the default i2c address of 0x27
s = lcd()
```
specify a different i2c address
``` python
s = lcd(0x29)```
clear the screen
``` python
s.clearScreen()```
write a line of text
``` python
s.writeLine('Text to write')```
change X start position
from the left edge in columns
``` python
s.changePosition(x)```
change XY start position of the text
from the top left corner in columns, rows
``` python
s.changePosition(x,y)
s.changePosition(0,2) # start the text on column 0 row 2```
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
digole-0.0.1.22.tar.gz
(1.8 kB
view hashes)
Built Distribution
Close
Hashes for digole-0.0.1.22-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bafe90796ccb5a12633f5d1d6211daa6d05e333dcc21163a34aab7bc37c4ec0f |
|
MD5 | 12eea76c6cc4466c64187b9992030483 |
|
BLAKE2b-256 | 7dc76a55510a42c215a6434c10f3d88acb106a89cfb8d884385b2330538aa0e4 |