Skip to main content

Augments the SSD1306_I2C MicroPython library with high-level functions

Project description

SSD1306_PLUS

For MicroPython only.

Added draw_sprite function to ssd1306_I2C library

from machine import I2C
i2c = I2C(0,sda=Pin(0), scl=Pin(1), freq=400000)
oled = SSD1306_PLUS(128, 64, i2c)

star = '''
.#.
#.#
.#.
'''

oled.draw_sprite(star, 0, 0, '#', '.')
# Sprite string, (x, y) of top left corner, white-colour character, black-colour character
# Any non-newline character in the sprite that is not either of the colour characters will be ignored (i.e. 'transparent').

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

ssd1306_plus-0.0.5.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

ssd1306_plus-0.0.5-py2.py3-none-any.whl (2.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file ssd1306_plus-0.0.5.tar.gz.

File metadata

  • Download URL: ssd1306_plus-0.0.5.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for ssd1306_plus-0.0.5.tar.gz
Algorithm Hash digest
SHA256 c2dc1403d92f4dea83dc365d246edaeeda0850dc7f43637100d1a64857c656ca
MD5 091da3d40b3d69a1155046b9205e75e9
BLAKE2b-256 295eb2f08e01dcb7b7ee747fea76765e186f9b3b137b0e1d4a973f603fe882a7

See more details on using hashes here.

File details

Details for the file ssd1306_plus-0.0.5-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for ssd1306_plus-0.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9ad8742b46750f00b8e919deac4876545abf15dfa48718c4fe32fa8d475e794e
MD5 848c0679a55457b837b1bd031ec47efc
BLAKE2b-256 f7fb8f17dcda4c063718ba458395e638df054819233684d7c5eed67edfae6227

See more details on using hashes here.

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