pico-ssd1306-demo.mp4
The library implements the driver commands over I2C as described in the SSD1306 datasheet.
The project is built with the official Raspberry Pi Pico VSCode extension. While it's still under development at the time of writing, I've found it quite helpful.
For library functions and parameters, see ssd1306.h. An example of how to use the library is provided example.c.
You can use tools/bmp_to_h.py to convert monochrome BMP images to header files that can be included into the program. One option to create BMP images is Imagemagick CLI.
An example of how to create a header file from a source image (tools/ directory):
# Imagemagick conversion into BMP
convert image_pico_board.png -monochrome -negate image_pico_board.bmp
# Run the script
./bmp_to_h.py image_pico_board.bmp
# The file image_pico_board.h is written and can be included in the program
MIT License