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
Examples at www.github.com/jethornton/digole
Installing ``` pip3 install digole ```
Upgrade ``` pip3 install digole --upgrade ```
Importing ```from digole import lcd```
Create a new instance and use the default i2c address of 0x27 ``` s = lcd() ```
Create a new instance and use a different i2c address ``` s = lcd(0x29) ```
clear the screen ``` s.clearScreen() ```
write a line of text ``` s.writeLine('Text to write') ```
change X start position from the left edge in columns ``` s.changePosition(x) ```
change XY start position of the text from the top left corner in columns, rows
```s.changePosition(x,y)
s.changePosition(0,2) # start the text on column 0 row 2```
Change Foreground Color color value 0-255 ```s.changeForeColor(color)```
Black = 0 = 0x0
Navy = 2 = 0x2
Blue = 3 = 0x3
Green = 24 = 0x18
Teal = 27 = 0x1B
Lime = 28 = 0x1C
Aqua = 31 = 0x1F
Maroon = 192 = 0xC0
Purple = 195 = 0xC3
Olive = 219 = 0xDB
Magenta = 227 = 0xE3
Yellow = 252 = 0xFC
White = 255 = 0xFF
Tested with Digole 160x128 Color LCD 1.8" DSDM/Serial
Raspberry Pi 3 B using the i2c bus
Examples at www.github.com/jethornton/digole
Installing ``` pip3 install digole ```
Upgrade ``` pip3 install digole --upgrade ```
Importing ```from digole import lcd```
Create a new instance and use the default i2c address of 0x27 ``` s = lcd() ```
Create a new instance and use a different i2c address ``` s = lcd(0x29) ```
clear the screen ``` s.clearScreen() ```
write a line of text ``` s.writeLine('Text to write') ```
change X start position from the left edge in columns ``` s.changePosition(x) ```
change XY start position of the text from the top left corner in columns, rows
```s.changePosition(x,y)
s.changePosition(0,2) # start the text on column 0 row 2```
Change Foreground Color color value 0-255 ```s.changeForeColor(color)```
Black = 0 = 0x0
Navy = 2 = 0x2
Blue = 3 = 0x3
Green = 24 = 0x18
Teal = 27 = 0x1B
Lime = 28 = 0x1C
Aqua = 31 = 0x1F
Maroon = 192 = 0xC0
Purple = 195 = 0xC3
Olive = 219 = 0xDB
Magenta = 227 = 0xE3
Yellow = 252 = 0xFC
White = 255 = 0xFF
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.28.tar.gz
(2.3 kB
view details)
Built Distribution
File details
Details for the file digole-0.0.1.28.tar.gz
.
File metadata
- Download URL: digole-0.0.1.28.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/20.7.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12fe5af70efc6c9f248da840c0120e31d2e3fbb97d5683ae7e785489a1860d07 |
|
MD5 | 7d455b5a5b9675b3e91c8122caaf4cff |
|
BLAKE2b-256 | a7ce98239628d11156f5c329c9e5bdfa050e144f7aafd9c5ca158023273bb15c |
Provenance
File details
Details for the file digole-0.0.1.28-py3-none-any.whl
.
File metadata
- Download URL: digole-0.0.1.28-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/20.7.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08700d0c503bae527cbcf99946d24bea43bc21452999fe04f096aa93257faeb7 |
|
MD5 | 13b90f4da559ab79ed25a4ad5b90a188 |
|
BLAKE2b-256 | 89fbd00f08c338d76cd7c564fd5971cf0de83327aad121a1a815b8a4c6cd3999 |