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: 2 months ago
JSON representation

MicroPython driver for SSD1327 128x128 4-bit greyscale OLED displays

Lists

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=18

display = ssd1327.SEEED_OLED_96X96(i2c) # Grove OLED Display
# display = ssd1327.SSD1327_I2C(128, 128, i2c) # WaveShare, Zio Qwiic

display.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 | GND

Raspberry Pi Pico | Grove OLED
----------------- | ----------
GPIO1 (I2C0_SCL) | SCL
GPIO0 (I2C0_SDA) | SDA
3V3 | VCC
GND | GND

WeMos 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).