Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mcauser/micropython-ssd1327
MicroPython driver for SSD1327 128x128 4-bit greyscale OLED displays
https://github.com/mcauser/micropython-ssd1327
grove grove-oled-display micropython oled-display ssd1327
Last synced: 29 days ago
JSON representation
MicroPython driver for SSD1327 128x128 4-bit greyscale OLED displays
- Host: GitHub
- URL: https://github.com/mcauser/micropython-ssd1327
- Owner: mcauser
- License: mit
- Created: 2017-06-09T15:39:41.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-11-03T11:44:00.000Z (about 2 years ago)
- Last Synced: 2024-10-01T05:11:31.192Z (about 1 month ago)
- Topics: grove, grove-oled-display, micropython, oled-display, ssd1327
- Language: Python
- Homepage:
- Size: 2.74 MB
- Stars: 25
- Watchers: 4
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-mpython - micropython-ssd1327 - Driver for SSD1327 128x128 4-bit greyscale OLED displays. (精选驱动库 / 显示类)
- awesome-micropython - micropython-ssd1327 - Driver for SSD1327 128x128 4-bit greyscale OLED displays. (Libraries / Display)
README
# MicroPython SSD1327
A MicroPython library for SSD1327 128x128 4-bit greyscale OLED displays, over I2C.
For example, the [Grove - OLED Display 1.12"](http://wiki.seeed.cc/Grove-OLED_Display_1.12inch/) which features a 96x96 display.
![demo](docs/demo.jpg)
## Example
Copy the file to your device, using ampy, webrepl or compiling and deploying. eg.
```bash
$ ampy put ssd1327.py
```**Hello World**
```python
import ssd1327# using Software I2C
from machine import SoftI2C, Pin
i2c = SoftI2C(sda=Pin(21), scl=Pin(22)) # TinyPICO
# i2c = SoftI2C(sda=Pin(0), scl=Pin(1)) # Raspberry Pi Pico
# i2c = SoftI2C(sda=Pin(4), scl=Pin(5)) # WeMos D1 Mini# or using Hardware I2C
from machine import I2C, Pin
i2c = I2C(0) # TinyPICO sda=19, scl=18display = ssd1327.SEEED_OLED_96X96(i2c) # Grove OLED Display
# display = ssd1327.SSD1327_I2C(128, 128, i2c) # WaveShare, Zio Qwiicdisplay.text('Hello World', 0, 0, 255)
display.show()display.fill(0)
for y in range(0,12):
display.text('Hello World', 0, y * 8, 15 - y)
display.show()
```See [/examples](/examples) for more.
## Parts
* [Grove OLED Display 1.12"](https://www.seeedstudio.com/Grove-OLED-Display-1-12.html)
* [Zio Qwiic OLED Display (1.5inch, 128x128)](https://www.sparkfun.com/products/15890)
* [TinyPICO](https://www.tinypico.com/)
* [Raspberry Pi Pico](https://core-electronics.com.au/raspberry-pi-pico.html)
* [WeMos D1 Mini](https://www.aliexpress.com/item/32529101036.html)
* [Grove Male Jumper Cable](https://www.seeedstudio.com/Grove-4-pin-Male-Jumper-to-Grove-4-pin-Conversion-Cable-5-PCs-per-Pack.html)## Connections
TinyPICO ESP32 | Grove OLED
-------------- | ----------
GPIO22 (SCL) | SCL
GPIO21 (SDA) | SDA
3V3 | VCC
GND | GNDRaspberry Pi Pico | Grove OLED
----------------- | ----------
GPIO1 (I2C0_SCL) | SCL
GPIO0 (I2C0_SDA) | SDA
3V3 | VCC
GND | GNDWeMos D1 Mini | Grove OLED
------------- | ----------
D1 (GPIO5) | SCL
D2 (GPIO4) | SDA
3V3 (or 5V) | VCC
G | GND## Links
* [TinyPICO Getting Started](https://www.tinypico.com/gettingstarted)
* [WeMos D1 Mini](https://www.wemos.cc/en/latest/d1/d1_mini.html)
* [micropython.org](http://micropython.org)
* [micropython docs](http://docs.micropython.org/en/latest/)
* [Adafruit Ampy](https://learn.adafruit.com/micropython-basics-load-files-and-run-code/install-ampy)## License
Licensed under the [MIT License](http://opensource.org/licenses/MIT).