Skip to the content.


OLED SSD1306 and SSD1309 Device Driver for Raspberry Pi and Raspberry Pi Pico


Operation Cheked OLED Modules Blog Site

Schematic for OLED SSD1306

Fig. 1; Schematic for OLED SSD1306:

Fig. 2; Connect VCC, GND, SCL, and SDA to your Raspberry Pi:


Schematic for OLED SSD1309

SSD1309 is need to change the chip resistor on the OLED module board. According to the silk-printed “I2C PORT: R8, R4” and “SPI PORT R9” on the board, please remove a chip resistor R9, and solder 0Ω jumpers on R8 and R4. The following schematic is an example of the reset circuit.

Fig. 3; schematic of reset circuit:


Fig. 4; R9 is removed, and R8 and R4 are soldered: Photo2

Usage, Download and Display Contents

pi@raspberrypi:~ $ git clone ⏎  
pi@raspberrypi:~ $ cd oled/raspi ⏎  
pi@raspberrypi:~/oled/raspi $ ls -1 ⏎  
misaki.fnt  ............. Misaki Fonts on FONTX2 format
misaki_README.txt  ...... LICENSE text for Misaki Fonts  ........... Program for ASCII Character  ..... Program for Japanese Character
pi@raspberrypi:~ $ ./ ⏎  

How to change the text

“disp_port” and “disp_land” in this program are variables for the characters on the display. The variable disp_port is for portrait, and the variable disp_port is for landscape view.

GitHub Pages (This Document) GitHub Pages site