Skip to content

Instantly share code, notes, and snippets.

@eepj
eepj / ssd1307.md
Last active July 13, 2022 06:28
Use Adafruit SSD1306 library with SSD1307 OLED displays.

Use Adafruit SSD1306 library with SSD1307 OLED displays

  1. Define SSD1307 in Adafruit_SSD1306.h.
#define SSD1307
  1. Define new commands in Adafruit_SSD1306.h.
#define SSD1307_SET_COM_PINS_HARDWARE_CONFIG 0xDA
#define SSD1307_SET_COM_SEG_AND_LR_SWAP 0x12
#define SSD1307_SET_REMAP_COL0 0xA0