Professional Documents
Culture Documents
05 - RPi Pico - SSD1306 OLED Display
05 - RPi Pico - SSD1306 OLED Display
Required Components
▶ Required Hardware
◼ Raspberry Pi Pico
◼ 4 jumper wires
◼ SSD1306 OLED Display (with 128x64 or 128x32 pixels)
▶ Required Software
◼ SSD1306 OLED Library (install as a package from Thonny IDE)
Diagram
Code
oled.fill(1)
oled.show()
utime.sleep(2)
# welcome message
oled.fill(0)
oled.text("Welcome!", 35, 0)
oled.text("Simplified Ttrls", 0, 8)
oled.text("3.ABCDEFGHIJKLM", 0, 16)
oled.text("4.NOPQRSTUVWXYZ", 0, 24)
oled.text("5.01234567890123", 0, 32)
oled.text("6.ABCDEFGHIJKLM", 0, 40)
oled.text("7.NOPQRSTUVWXYZ", 0, 48)
oled.text("8.01234567890123", 0, 56)
oled.show()
utime.sleep(2)
# looop example
i = 0
while True:
i = i + 1
print (str(i % 20))
oled.fill(0)
oled.text("I'm counting...", 5, 20)
oled.text(str(i % 20), 55, 36)
oled.show()
utime.sleep(1)
```