njsss
Posts: 19
Joined: Fri May 20, 2016 9:36 pm

C++ library to use with Adafruit SSD1306 I2C LCD

Wed Oct 17, 2018 4:21 pm

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.

User avatar
AndyD
Posts: 2327
Joined: Sat Jan 21, 2012 8:13 am
Location: Melbourne, Australia
Contact: Website

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

Fri Oct 19, 2018 9:23 pm

I have some code on github that you may find useful : libSSD1306

dsyleixa123
Posts: 103
Joined: Mon Jun 11, 2018 11:22 am

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

Sat Oct 20, 2018 2:24 pm

hi,
I once found this one which worked fine to me so far:
https://github.com/hallard/ArduiPi_OLED

ribasco
Posts: 2
Joined: Tue Oct 23, 2018 12:17 pm

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

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.

njsss
Posts: 19
Joined: Fri May 20, 2016 9:36 pm

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

Wed Oct 24, 2018 6:20 pm

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.

njsss
Posts: 19
Joined: Fri May 20, 2016 9:36 pm

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

Wed Oct 24, 2018 6:29 pm

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. :(

Return to “C/C++”