https://github.com/perfecxx/micropython-ssd1306
MicroPython Library for SSD1306 OLED Displays with some simple shape drawing functions.
https://github.com/perfecxx/micropython-ssd1306
esp32 micropython oled ssd1306 ssd1306-driver ssd1306-oled ssd1306-oled-example
Last synced: about 1 year ago
JSON representation
MicroPython Library for SSD1306 OLED Displays with some simple shape drawing functions.
- Host: GitHub
- URL: https://github.com/perfecxx/micropython-ssd1306
- Owner: PerfecXX
- License: mit
- Created: 2024-12-21T08:25:00.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-06T08:33:33.000Z (about 1 year ago)
- Last Synced: 2025-05-06T09:44:13.570Z (about 1 year ago)
- Topics: esp32, micropython, oled, ssd1306, ssd1306-driver, ssd1306-oled, ssd1306-oled-example
- Language: Python
- Homepage:
- Size: 334 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# MicroPython SSD1306
[](https://github.com/PerfecXX/MicroPython-SSD1306)
[](https://opensource.org/licenses/MIT)
MicroPython Library for SSD1306 OLED Displays with some simple shape drawing functions.
# Installation
- Manual Installation
- Upload the ```ssd1306.py``` file to your device.
- Thonny IDE Package Manager
- Open Thonny IDE.
- Go to Tools > Manage Packages.
- Search for ```micropython-ssd1306-driver``` and install it.
# Example Usage
- [Screen Control](https://github.com/PerfecXX/MicroPython-SSD1306/tree/main/example/i2c/screen%20control)
- [Text](https://github.com/PerfecXX/MicroPython-SSD1306/tree/main/example/i2c/text)
- [Shape](https://github.com/PerfecXX/MicroPython-SSD1306/tree/main/example/i2c/shape)
- [Image](https://github.com/PerfecXX/MicroPython-SSD1306/tree/main/example/i2c/image)
- [QRCode](https://github.com/PerfecXX/MicroPython-SSD1306/tree/main/example/i2c/QRCode)
- [More Example](https://github.com/PerfecXX/MicroPython-SSD1306/tree/main/example)
# Quick Example
```python
# Import Library
from ssd1306 import SSD1306_I2C
from machine import Pin,SoftI2C
# Pin Setup
i2c = SoftI2C(scl=Pin(22), sda=Pin(21))
oled = SSD1306_I2C(128, 64, i2c)
# Text Display (Text,x,y,color)
oled.text("Hello Wolrd!",0,0,1)
oled.show()
```
# Useful Link & Tools
- [External QRCode Library](https://github.com/JASchilz/uQR)
- This library is used to generate a QR code matrix and render it to the SSD1306.
- [Image to Matrix Generator](https://jlamch.net/MXChipWelcome/)
- This link is used to convert images into byte arrays and render them to the SSD1306.