Page 1 of 1

C++ library to use with Adafruit SSD1306 I2C LCD

Posted: Wed Oct 17, 2018 4:21 pm
by njsss
Is there a simple ready-to-use c++ library for Adafruit SSD1306 OLED display? Preferably working with <wiringpi>. Most I found were either python library or Arduino one.

Re: C++ library to use with Adafruit SSD1306 I2C LCD

Posted: Fri Oct 19, 2018 9:23 pm
by AndyD
I have some code on github that you may find useful : libSSD1306

Re: C++ library to use with Adafruit SSD1306 I2C LCD

Posted: Sat Oct 20, 2018 2:24 pm
by dsyleixa123
hi,
I once found this one which worked fine to me so far:
https://github.com/hallard/ArduiPi_OLED

Re: C++ library to use with Adafruit SSD1306 I2C LCD

Posted: Wed Oct 24, 2018 4:30 pm
by ribasco
I would recommend the U8g2 library. https://github.com/olikraus/u8g2, It supports many display controllers including SSD1306.

I have made a project to demonstrate how to use this on the Raspberry Pi (see https://github.com/ribasco/u8g2-rpi-demo) with the ST7920 via SPI. Its easy to modify to make it work for SSD1306 via I2C.

Re: C++ library to use with Adafruit SSD1306 I2C LCD

Posted: Wed Oct 24, 2018 6:20 pm
by njsss
Thank you all!

Well I used this SSD1306 i2c driver for Raspberry PI (https://github.com/iliapenev/ssd1306_i2c), it's a C implementation, but fit my simple use.

Re: C++ library to use with Adafruit SSD1306 I2C LCD

Posted: Wed Oct 24, 2018 6:29 pm
by njsss
ribasco wrote:
Wed Oct 24, 2018 4:30 pm
I would recommend the U8g2 library. https://github.com/olikraus/u8g2, It supports many display controllers including SSD1306.

I have made a project to demonstrate how to use this on the Raspberry Pi (see https://github.com/ribasco/u8g2-rpi-demo) with the ST7920 via SPI. Its easy to modify to make it work for SSD1306 via I2C.
That looks great! But I really have no experience on how to deal with i2c or SPI. :(