Adafruit 2.42" OLED display on Raspberry Pi

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
johnmcd
 
Posts: 2
Joined: Mon Aug 22, 2016 2:25 pm

Adafruit 2.42" OLED display on Raspberry Pi

Post by johnmcd »

Hi,

I spent a couple of hours searching but I couldn't find anything on this topic. I'm working on a project using a Raspberry Pi with Python and Adafruit's 2.42" OLED display (https://www.adafruit.com/products/2719) would be perfect for my needs. However, the specs say it uses the SSD1305 controller, and the only documentation/library I can find is for the SSD1306 controller. I've done some research and found out that the SSD1305 has a different initialization sequence, so I was wondering if the Adafruit SSD1306 python library would for this display. If not are there any other options available?

Thanks

John

elnj
 
Posts: 6
Joined: Mon Apr 16, 2012 8:43 am

Re: Adafruit 2.42" OLED display on Raspberry Pi

Post by elnj »

Did you see that there's a tutorial linked from the product page? https://learn.adafruit.com/1-5-and-2-1- ... lay-module

If you follow that through a couple of pages on wiring, it eventually links to a C library they have on Github for the SSD1305: https://github.com/adafruit/Adafruit_SSD1305_Library

The example in that tutorial and library is for Arduino, but it looks like the code is straight C, so it seems likely you could adapt it to the Raspberry Pi. I'm not 100% sure that's true, but thought I'd point out the Github repo in case you hadn't seen it.

User avatar
johnmcd
 
Posts: 2
Joined: Mon Aug 22, 2016 2:25 pm

Re: Adafruit 2.42" OLED display on Raspberry Pi

Post by johnmcd »

elnj wrote:Did you see that there's a tutorial linked from the product page? https://learn.adafruit.com/1-5-and-2-1- ... lay-module

If you follow that through a couple of pages on wiring, it eventually links to a C library they have on Github for the SSD1305: https://github.com/adafruit/Adafruit_SSD1305_Library

The example in that tutorial and library is for Arduino, but it looks like the code is straight C, so it seems likely you could adapt it to the Raspberry Pi. I'm not 100% sure that's true, but thought I'd point out the Github repo in case you hadn't seen it.
Yep, I saw that, but thanks anyway. It's been a few years since I touched C and I'm not sure my skills are up to adapting the library to working with Python.

kkashwin
 
Posts: 6
Joined: Thu Dec 05, 2013 12:28 pm

Re: Adafruit 2.42" OLED display on Raspberry Pi

Post by kkashwin »

Hi John,

Did you finally getting it working with Python on Raspberry Pi?
I was hoping I can get a Python library for SSD1305 but like you mentioned all references on the Internet and Adafruit seems to be only for Arduino and C.

Thanks!
Ashwin

User avatar
cmkerr
 
Posts: 1
Joined: Wed Dec 05, 2018 7:34 pm

Re: Adafruit 2.42" OLED display on Raspberry Pi

Post by cmkerr »

Hi guys,

Did any of you figure this out?

User avatar
BeauSlim
 
Posts: 10
Joined: Wed Oct 25, 2017 1:59 am

Re: Adafruit 2.42" OLED display on Raspberry Pi

Post by BeauSlim »

cmkerr wrote: Did any of you figure this out?
I don't have one of these, but I do have a couple 1306 bonnets.

This github blog says to use 1306 drivers and provides a guide for getting luma.oled working with your display and the pi.

User avatar
adafruit_support_carter
 
Posts: 29159
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit 2.42" OLED display on Raspberry Pi

Post by adafruit_support_carter »

You can try this CircuitPython SSD1306 library:
https://github.com/adafruit/Adafruit_Ci ... on_SSD1306

To use on the RPi you will need to install blinka:
https://learn.adafruit.com/circuitpytho ... x/overview

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”