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:
Navigate to the relevant directory:
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.
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.
128×32 OLEDs are not yet supported. Stay tuned. OLEDs are quite nice devices. Small, and illuminated.