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.27.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for digole-0.0.1.27-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 896b88db93fd5b53a09f81b9a1ce45054f14006b2a72c05a804bf721483cce3c |
|
MD5 | 023855ebba7e5fcb81c4a6571e92cd64 |
|
BLAKE2b-256 | 04cf42e335a45178ab55357f04fa2aa2517626696141daac60b7a1e580f10a3f |