.96″ OLED display using Arduino UNO, I2C programming basics

This tutorial illustrates the basics of programming .96″ OLED display from Arduino by I2C interface. This program will give you an idea about the control and data bytes that should be sent to the OLED display.

#include <Wire.h#define SSD1306_DEACTIVATE_SCROLL 0x2E #define SSD1306_MEMORYMODE 0x20 ///< See datasheet #define SSD1306_COLUMNADDR 0x21 ///< See datasheet #define SSD1306_PAGEADDR 0x22 ///< See datasheet #define SSD1306_SETCONTRAST 0x81 ///< See datasheet #define SSD1306_CHARGEPUMP 0x8D ///< See datasheet #define SSD1306_SEGREMAP 0xA0 ///<
Read More
X