Awesome Open Source
Awesome Open Source

#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.

Alternative Project Comparisons
Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
C Plus Plus (246,118
C (186,346
Pin (9,757
Esp (8,390
Esp32 (4,303
I2c (3,975
Ssd (1,973
Esp Idf (605
Oled (195
Ssd1306 (135