OK, so I’ve finally got a 128×64 SSD1306 OLED working in both MicroPython and the C++ SDK.
You’re probably best off cloning my git repo:
git clone https://github.com/blippy/rpi/tree/master/1306
Navigate to the relevant directory:
cd rpi/1306
MicroPython
Upload ssd1306.py s onto the Pico. Then, from Thonny (or whatever), connect to the Pico and run the demo program pico1306.py. Easy peasy.
C++ SDK
Do the following usual stuff:
cd pico-sdk mkdir build cd build cmake ..
Then upload the uf2 file onto the board.
I’m assuming that you have the development environment set up correctly.
It supports an 8×8 font and drawing at pixels.
Have fun.
128×32 OLEDs are not yet supported. Stay tuned. OLEDs are quite nice devices. Small, and illuminated.