OLED with SSD1322 controller

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
danielm
Posts: 167
Joined: Mon Oct 05, 2015 12:24 pm

OLED with SSD1322 controller

Post by danielm » Wed Feb 12, 2020 7:38 am

Is there any driver/library for OLED display with SSD1322 controller? Usual resolution is 256px * 64px.

VicLuna
Posts: 11
Joined: Fri Sep 13, 2019 8:36 pm

Re: OLED with SSD1322 controller

Post by VicLuna » Sat Apr 11, 2020 9:15 am

Hi

have you tried SSD1306?
https://github.com/adafruit/micropython ... it-ssd1306

this library when you create the class define the resolution.
it may works.

tell us

Regards

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: OLED with SSD1322 controller

Post by jimmo » Tue Apr 14, 2020 5:54 am

I'd probably try and adapt the driver from luma-oled to the SSD1306 driver at https://github.com/micropython/micropyt ... ssd1306.py See https://github.com/rm-hull/luma.oled/bl ... _init__.py
VicLuna wrote:
Sat Apr 11, 2020 9:15 am
this library when you create the class define the resolution.
it may works.
I doubt it - the SSD1322 is different to the 1306. And the up-to-date version of that driver is the one I linked to above.

danielm
Posts: 167
Joined: Mon Oct 05, 2015 12:24 pm

Re: OLED with SSD1322 controller

Post by danielm » Wed Apr 15, 2020 7:18 am

I am familiar with SSD1306 driver and used it a lot in the past. However SSD1306 is limited to 128*64px and I was in need of something bigger.

SSD1322 does not support I2C, only SPI and parallel.

Yes, I was also thinking to adapt SSD1322 library for CPython. I should have hardware with 3.12" 256*64px SSD1322 display ready in about a month. Then I will will try to do it.

There are also 4.7" 256*128px displays with 2xSSD1322 - there are two chip select pins.

jakiee3y
Posts: 2
Joined: Sat Jul 17, 2021 2:26 pm

Re: OLED with SSD1322 controller

Post by jakiee3y » Sat Jul 17, 2021 2:30 pm

danielm wrote:
Wed Feb 12, 2020 7:38 am
Is there any driver/library for OLED display with SSD1322 controller? Usual resolution is 256px * 64px.
after months of searching, I finally made my own version for ssd1322.
https://github.com/jakiee3y/micropython-ssd1322

User avatar
benonymous
Posts: 2
Joined: Mon Oct 18, 2021 11:32 pm

Re: OLED with SSD1322 controller

Post by benonymous » Tue Oct 19, 2021 1:35 am

Double post removed here.
Last edited by benonymous on Tue Oct 19, 2021 11:16 pm, edited 1 time in total.

User avatar
benonymous
Posts: 2
Joined: Mon Oct 18, 2021 11:32 pm

Re: OLED with SSD1322 controller

Post by benonymous » Tue Oct 19, 2021 4:44 am

First of all, thanks to jakiee3y for writing the driver 8-) I have adapted the test code for the ESP32 in MicroPython to try to run the display of a Raspberry Pi Pico. Unfortunately, when the display initialises, it just lights up nearly all the pixels and won't respond to the disp.fill(0) command. Does the Pi Pico need a different initialisation script?

jakiee3y
Posts: 2
Joined: Sat Jul 17, 2021 2:26 pm

Re: OLED with SSD1322 controller

Post by jakiee3y » Sun Dec 12, 2021 1:00 am

benonymous wrote:
Tue Oct 19, 2021 4:44 am
First of all, thanks to jakiee3y for writing the driver 8-) I have adapted the test code for the ESP32 in MicroPython to try to run the display of a Raspberry Pi Pico. Unfortunately, when the display initialises, it just lights up nearly all the pixels and won't respond to the disp.fill(0) command. Does the Pi Pico need a different initialisation script?
This works: (ssd1322.py @ https://github.com/jakiee3y/micropython-ssd1322)

# DC -- GP2
# CS -- GP5
# RES -- GP3
# SCK -- GP6
# MOSI -- GP7

import ssd1322
spi=SPI(0,8_000_000)
cs=Pin(5,Pin.OUT)
dc=Pin(2,Pin.OUT)
res=Pin(3,Pin.OUT)
disp=ssd1322.SSD1322_SPI(256,64,spi,dc,cs,res)
disp.fill(0)
disp.show()
disp.line(0,0,255,63,15)
disp.show()
disp.text('hello',100,30,15)
disp.show()

User avatar
rdagger
Posts: 143
Joined: Tue Feb 28, 2017 6:16 pm
Contact:

Re: OLED with SSD1322 controller

Post by rdagger » Fri Aug 12, 2022 7:17 pm

In case anyone is interested, I wrote a Micropython driver for the SSD1322.

https://github.com/rdagger/micropython-ssd1322

The library supports drawing lines, shapes, text, sprites, QR codes and images. All code is documented and there are demo examples. Tested on Raspberry Pi Pico W with 5.5 inch green OLED display SPI module with 256x64 resolution.

Post Reply