Skip to main content

Augments the SSD1306_I2C MicroPython library with high-level functions

Project description

SSD1306_PLUS

For MicroPython only.

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.2.tar.gz (1.7 kB view hashes)

Uploaded Source

Built Distribution

ssd1306_plus-0.0.2-py2.py3-none-any.whl (2.5 kB view hashes)

Uploaded Python 2 Python 3

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