Raspberry Pi Pico practice problem · Raspberry Pi Pico
Write on the OLED
MediumBudget $16MicroPython
A 128×64 SSD1306 OLED is on the Pico's I²C: SDA on GP4, SCL on GP5, at address 0x3C. Show any message on it.
The ssd1306 module is frozen into the firmware, so setup is three lines:
from machine import I2C, Pin
from ssd1306 import SSD1306_I2C
screen = SSD1306_I2C(128, 64, I2C(0, sda=Pin(4), scl=Pin(5)))
Then use the normal MicroPython display methods: screen.fill(0), screen.text("Hi", 0, 0) and screen.show().