Installing micropython_ssd1306 on the Raspberry Pi Pico 2 with Thonny
This guide explains how to install the micropython_ssd1306 library (the SSD1306 OLED driver for MicroPython) on the Raspberry Pi Pico 2 using the Thonny Package Manager. Connect your Raspberry Pi Pico 2 (with MicroPython firmware) to your computer. Open Thonny and configure the interpreter for the Raspberry Pi Pico 2 (MicroPython). In the top menu, go to Tools > Manage packages... Search for micropython-ssd1306 and click Install. Exercise code: # mpy_pico2_ssd1306.py # MicroPython exercise running on Raspberry Pi Pico 2 with RP2350 # to control 128x64 SSD1306 OLED. # # https://coxxect.blogspot.com/2026/10/installing-micropythonssd1306-on.html # import time from machine import Pin, I2C from ssd1306 import SSD1306_I2C from framebuf import FrameBuffer i2c = I2C(0) print(i2c) print(i2c.scan()) oled = SSD1306_I2C(128, 64, i2c) print(oled.width, "x", oled.height) print("type(oled):", type(oled)) # whether o...