SSD1305显示屏的非displayio驱动程序
项目描述
介绍
SSD1305显示屏的非displayio驱动程序
依赖关系
此驱动程序依赖于
请确保所有依赖项在CircuitPython文件系统中都可用。这可以通过下载 Adafruit库和驱动程序包 来轻松实现。
从PyPI安装
在支持GNU/Linux系统(如树莓派)上,您可以从PyPI本地安装驱动程序 。 要为当前用户安装
pip3 install adafruit-circuitpython-ssd1305
要全局安装(在某些情况下可能需要)
sudo pip3 install adafruit-circuitpython-ssd1305
要在当前项目的虚拟环境中安装
mkdir project-name && cd project-name
python3 -m venv .venv
source .venv/bin/activate
pip3 install adafruit-circuitpython-ssd1305
使用示例
# 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.
from board import SCL, SDA
import busio
# Import the SSD1305 module.
import adafruit_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()
文档
此库的API文档可在 Read the Docs 上找到。
有关构建库文档的信息,请参阅 本指南。
贡献
欢迎贡献!在贡献之前,请阅读我们的 行为准则,以帮助本项目保持友好。
项目详情
关闭
adafruit-circuitpython-ssd1305-1.3.19.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 936cfe945c00339e63b4c41f9ae5ea904f6331a54971c22c47579e26b539538f |
|
MD5 | f6ee06323adfc78ca48e568fcdd8a0f6 |
|
BLAKE2b-256 | de3b602537f5abea5f37e8e3267e3add142196bf47a453562e944df6d9694a64 |
关闭
adafruit_circuitpython_ssd1305-1.3.19-py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 321fbe9aa4ade1d13c499fe319fce4cd011f786bd6227ff1cbfc629f68512736 |
|
MD5 | aa9105f19ade8465527557b433f78329 |
|
BLAKE2b-256 | 01496f151dbf4d86c5db29100b6febebc6bfead010b7ba54f5102a74d8a25cd4 |