ESP32 | Sensor 09 – OLED Display

ESP32 | Sensor 09 - OLED Display

01

Overview

The OLED screen has advantages such as high contrast, low power consumption, wide viewing angles, and self-emissive pixels, making it suitable for small display applications like wearable devices and desktop widgets.

This OLED display has a size of 0.96 inches, with a resolution of 128×64 pixels, and uses I2C communication, driven by the SSD1306.

It is important to note the risk of screen burn-in and aging with OLED screens, so avoid displaying static images for extended periods.

02

Wiring

  • Operating Voltage: 3.3V-5V

  • Communication Type: IIC Protocol

  • IIC Address: 0x3D

  • Right 1-G: GND, negative terminal

  • Right 2: 3.3V, positive terminal

  • Right 3: SDA, pin 21

  • Right 4-S: SCL, pin 22

03

Programming

ESP32 | Sensor 09 - OLED Display Program Explanation:

First, initialize the I2C pins, connecting SCL to pin 22 and SDA to pin 21; then set the OLED device address to 0x3D; finally, set the content to be displayed on the OLED.

ESP32 | Sensor 09 - OLED DisplayESP32 | Sensor 09 - OLED DisplayESP32 | Sensor 09 - OLED Display

04

Effect

ESP32 | Sensor 09 - OLED Display

Students who need accessories can purchase them from my Taobao store under the same name.

ESP32 | Sensor 09 - OLED DisplayFollow me for more sharesWeilan Classroom

Leave a Comment