It's easy to use OLEDs with Python and the Adafruit CircuitPython SSD1306 module. This module allows you to easily write Python code to control the display.
We'll cover how to wire the OLED to your Raspberry Pi. First assemble your OLED.
Since there's dozens of Linux computers/boards you can use we will show wiring for Raspberry Pi. For other platforms, please visit the guide for CircuitPython on Linux to see whether your platform is supported.
Connect the OLED as shown below to your Raspberry Pi.
- Pi 3.3V to OLED VIN
- Pi GND to OLED GND
- Pi SCL to OLED SCL
- Pi SDA to OLED SDA
- Pi GPIO4 to OLED RST (or any available GPIO pin)
You do not need to alter the jumpers on the back - I2C is the default configuration on this display!
-
Pi 3.3V to OLED Vin (red wire)
-
Pi GND to OLED Gnd (black wire)
-
Pi SCL to OLED Clk (yellow wire)
-
Pi SDA to OLED Data (blue wire)
Note: Connecting the OLED RST is not necessary as this revision added auto-reset circuitry so the RESET pin is not required.
You must solder two jumpers closed on the back of the display to use with I2C!
- Pi 3.3V to OLED Vin
- Pi GND to OLED Gnd
-
Pi SCL to OLED Clk
-
Pi SDA to OLED Data
- Pi GPIO4 to OLED Rst (or any available GPIO pin)
- Pi 3.3V to OLED VIN
- Pi GND to OLED GND
- Pi MOSI to OLED DATA
- Pi SCLK to OLED CLK
- Pi GPIO4 to OLED RST (or any available GPIO pin)
- Pi GPIO5 to OLED CS (or any available GPIO pin)
- Pi GPIO6 to OLED DC (or any available GPIO pin)
Text editor powered by tinymce.