Page 1 of 1

OLED spi - question to Mr Neil

Posted: Fri May 25, 2018 11:57 am
by Deouss
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

Re: OLED spi - question to Mr Neil

Posted: Fri May 25, 2018 2:39 pm
by chegewara
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.

Re: OLED spi - question to Mr Neil

Posted: Fri May 25, 2018 2:41 pm
by kolban
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.