OLED spi - question to Mr Neil

Deouss
Posts: 425
Joined: Tue Mar 20, 2018 11:36 am

OLED spi - question to Mr Neil

Postby Deouss » Fri May 25, 2018 11:57 am

I have question to Mr Kolban about this library he wrote
https://github.com/nkolban/esp32-snippe ... plays/U8G2

Is it only for I2C driven OLEDs? I recently bought bunch of Oled screens 128x64 and they do not work with i2c.
Arduino code works on them but it take so much memory my project wouldn't work.
Maybe we should make some kind of esp database of libraries for idf

So - is there any idf library/code to display something on 0.96" oled screens that use spi interface?

Thanks for help

chegewara
Posts: 2207
Joined: Wed Jun 14, 2017 9:00 pm

Re: OLED spi - question to Mr Neil

Postby chegewara » Fri May 25, 2018 2:39 pm

If you are interested you can take a look at Adafruit library for OLED displays ive prepared to work with esp-idf. This is my old project, my skills was very bad back then, so its not best code, but its working.
https://github.com/chegewara/ssd1331_driver-esp-idf

I also have somewhere library for ssd1306.

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: OLED spi - question to Mr Neil

Postby kolban » Fri May 25, 2018 2:41 pm

Its been a long while since I looked at this code but they should work with SPI. In fact, if I remember correctly, when we got this library working, it was only SPI and some other chap needed to get them working with I2C and he managed that and then contributed his changes to the code base.

The high level answer is that they "should work". Sadly so much of my time these days is booked to other projects that I haven't been able to keep up with the repository as I would like. But this is the nature of open source ... its all there for the keen to start playing with, tinker with and enhance/fix. If we come across alternate libraries, make those known to me and I'll include links to those alternates in the README.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

Who is online

Users browsing this forum: No registered users and 71 guests