SSD1306/SH1106 Driver for esp-idf
Go to file
2019-05-03 09:02:10 +09:00
main Update ssd1306_spi.c 2019-05-03 09:02:10 +09:00
CMakeLists.txt First release 2019-04-20 09:44:55 +09:00
LICENSE First release 2019-04-20 09:44:55 +09:00
Makefile First release 2019-04-20 09:44:55 +09:00
README.md BUG Fix for SPI 2019-05-03 08:01:10 +09:00

esp-idf-ssd1306

Sample code for driving OLED display with SSD1306 driver via ESP-IDF's I2C master driver.

I used this repository as a reference.
https://github.com/yanbe/ssd1306-esp-idf-i2c

I used this font file.
https://github.com/dhepper/font8x8

You have to set this config value with menuconfig.
CONFIG_INTERFACEL
CONFIG_MODEL
CONFIG_SDA_GPIO
CONFIG_SCL_GPIO
CONFIG_RESET_GPIO
CONFIG_CS_GPIO
CONFIG_DC_GPIO

git clone https://github.com/nopnop2002/esp-idf-ssd1306
cd esp-idf-ssd1306/
make menuconfig
make flash

config


128x32 i2c

128x32 config-128x32_i2c

RESET GPIO not used.
CS GPIO not used.
DC GPIO not used.


128x64 i2c

128x64 config-128x64_i2c

RESET GPIO not used.
CS GPIO not used.
DC GPIO not used.


128x64 TTGO

ESP32-TTGO-1 ESP32-TTGO-2 128x64_Reset config-128x64_TTGO

CS GPIO not used.
DC GPIO not used.


128x64 ESP-WROOM-32

ESP32-OLED-2 config-128x64_esp32

RESET GPIO not used.
CS GPIO not used.
DC GPIO not used.


128x64 SPI

128x64_spi config-128x64_spi

MOSI is GPIO13.
SCLK is GPIO14.
SSD1306 Model not used.
SCL GPIO not used.
SDA GPIO not used.