A library for esp32 i2c oled ssd1306
Switch branches/tags
Nothing to show
Clone or download
Latest commit 6ae1c96 Feb 10, 2017


#ESP32 I2C OLED SSD1306 library for esp-idf

This is a library of i2c oled ssd1306 for esp-idf.

Code modified from ESP-I2C-OLED.

I changed the code style into C++. So you can easily use multiple devices by create different objects. I also changed the hardware i2c driver into a software one. So you can use any two GPIO pins as SDA and SCL.

IMPORTANT: If you want to compile it, be sure that you add "COMPONENT_LDFLAGS += -lstdc++" in Makefile.

Pay attention that OLED class has two different constructors. One with default I2C address 0x78, but in the other you can set manual address.

Remember to call refresh after you draw something new on the screen.

External RESET pin function is not implemented yet.

NOTICE1: If you want to use pure C method, please turn to branch pure-c

NOTICE2: I'm using C++ style string, if you don't want that, you can uncomment related code blocks in ssd1306.cpp and ssd1306.hpp.