SSD1306/SH1106 Driver for esp-idf
Go to file
2021-01-04 07:29:23 +09:00
main Code refactored 2021-01-04 07:29:23 +09:00
CMakeLists.txt Add CMakeLists.txt 2020-04-11 17:22:48 +09:00
LICENSE Update LICENSE 2020-12-06 18:17:37 +09:00
Makefile Add gpio_pad_select_gpio 2019-06-02 11:02:09 +09:00
README.md Code refactored 2021-01-04 07:29:23 +09:00

esp-idf-ssd1306

SSD1306 driver for esp-idf

I used this repository as a reference.
I used this font file.

Installation for ESP32

git clone https://github.com/nopnop2002/esp-idf-ssd1306
cd esp-idf-ssd1306/
idf.py set-target esp32
idf.py menuconfig
idf.py flash

Installation for ESP32-S2

git clone https://github.com/nopnop2002/esp-idf-ssd1306
cd esp-idf-ssd1306/
idf.py set-target esp32s2
idf.py menuconfig
idf.py flash

You have to set this config value with menuconfig.

  • CONFIG_INTERFACE
  • CONFIG_PANEL
  • CONFIG_SDA_GPIO
  • CONFIG_SCL_GPIO
  • CONFIG_RESET_GPIO
  • CONFIG_MOSI_GPIO
  • CONFIG_SCLK_GPIO
  • CONFIG_CS_GPIO
  • CONFIG_DC_GPIO

config-main


Generic 128x32 i2c

128x32 config-128x32_i2c


Generic 128x64 i2c

128x64 config-128x64_i2c


128x64 TTGO

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


128x64 ESP-WROOM-32

ESP32-OLED-2 config-ESP-WROOM-32


Generic 128x64 SPI

D0 is SCLK.
D1 is MOSI.

128x64_spi config-128x64_spi