C++ library to use with Adafruit SSD1306 I2C LCD
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
I have some code on github that you may find useful : libSSD1306
-
- Posts: 1129
- Joined: Mon Jun 11, 2018 11:22 am
Re: C++ library to use with Adafruit SSD1306 I2C LCD
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.
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
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.
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
That looks great! But I really have no experience on how to deal with i2c or SPI.ribasco wrote: ↑Wed Oct 24, 2018 4:30 pmI 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.
