Skip to content

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

License

Notifications You must be signed in to change notification settings

bokunimowakaru/oled

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oled

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

Schematic1

bokunimo.net Blog Site

for OLED SSD1306

Fig. 1; connect VCC, GND, SCL, and SDA to your Raspberry Pi:
Schematic1

for OLED SSD1309

SSD1309 is need to change the chip resistor on the OLED module board. Please remove a chip resistor R9, and soldering 0Ω jumpers for R8 and R4. according to the silk-printed "I2C PORT: R8, R4" and "SPI PORT R9" on the back of the board. The following schematic is an example of the reset circuit.

Fig. 2; schematic of reset circuit:

Schematic2

Fig. 3; R9 is removed, and R8 and R4 are soldered: Schematic2

Usage, Download and Display Contents

pi@raspberrypi:~ $ git clone https://bokunimo.net/git/oled ⏎  
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
test_oled.py  ........... Program for ASCII Character 
test_oled_kanji.py  ..... Program for Japanese Character
  
pi@raspberrypi:~ $ ./test_oled_kanji.py ⏎  

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)


git.bokunimo.com GitHub Pages site

http://git.bokunimo.com/