You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloading
the Adafruit library and driver bundle.
Installing from PyPI
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally from
PyPI. To install for current user:
pip3 install adafruit-circuitpython-ssd1305
To install system-wide (this may be required in some cases):
sudo pip3 install adafruit-circuitpython-ssd1305
To install in a virtual environment in your current project:
# Basic example of clearing and drawing pixels on a SSD1305 OLED display.# This example and library is meant to work with Adafruit CircuitPython API.# Author: Tony DiCola# License: Public Domain# Import all board pins.fromboardimportSCL, SDAimportbusio# Import the SSD1305 module.importadafruit_ssd1305# Create the I2C interface.i2c=busio.I2C(SCL, SDA)
# Create the SSD1305 OLED class.# The first two parameters are the pixel width and pixel height. Change these# to the right size for your display!display=adafruit_ssd1305.SSD1305_I2C(128, 32, i2c)
# Alternatively you can change the I2C address of the device with an addr parameter:#display = adafruit_ssd1305.SSD1305_I2C(128, 32, i2c, addr=0x31)# Clear the display. Always call show after changing pixels to make the display# update visible!display.fill(0)
display.show()
Documentation
API documentation for this library can be found on Read the Docs.
For information on building library documentation, please check out this guide.
Contributing
Contributions are welcome! Please read our Code of Conduct
before contributing to help this project stay welcoming.
About
Framebuf (non-displayio) driver for SSD1305 displays