Skip to main content

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)` color can be an int 0-255, a hex 0x0-0x255 or a color name from the chart.

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 Red = 224 = 0xE0 Magenta = 227 = 0xE3 Yellow = 252 = 0xFC White = 255 = 0xFF

Project details


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.4.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

digole-0.0.4-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file digole-0.0.4.tar.gz.

File metadata

  • Download URL: digole-0.0.4.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.2

File hashes

Hashes for digole-0.0.4.tar.gz
Algorithm Hash digest
SHA256 03822271ccf9d44bb1262bd656108caa40b810c72287cb468899fb423abd0d2f
MD5 145a297a645a04339ba4ff0d23c5226b
BLAKE2b-256 8cdfaa081cc511a23a4d118a8ee1744eeb78d95670ec4460d7dc632df5504701

See more details on using hashes here.

Provenance

File details

Details for the file digole-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: digole-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.2

File hashes

Hashes for digole-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0dcc521ec0a412fc7468146fd3fe9abbfbd3e828cb0af984167e1a9ba06b54e2
MD5 2d6d3e7d41828c873f381402afb32681
BLAKE2b-256 c4c57510407754ca145abe771d89f0b66728e68f6f4af683fb4e8a5e074d4875

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page