OLED Device Driver SSD1306 and SSD1209 for Raspberry Pi and Raspberry Pi Pico
- 解説ページ(bokunimo.netのブログ内):
https://bokunimo.net/blog/raspberry-pi/3619/ - Google Transrate to English:
https://bokunimo.net/blog/raspberry-pi/3619/
Fig. 1; connect VCC, GND, SCL, and SDA to your Raspberry Pi:
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:
Fig. 3; R9 is removed, and R8 and R4 are soldered:
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 ⏎
"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.