This repository contains sample code for Raspberry Pi 0.96" OLED Display Module. The document named RPI-OLED-Datesheet.pdf
with title "Raspberry Pi 0.96’ OLED Display Module User Manual" provides sample code listing on top of WiringPi. Since copy-and-paste the source code from this PDF file would be malformatted and it's painful to fix it, I republish its source here.
The vendor "52Pi" also provides another sample code with direct SPI bus access. It could be download via Engilish or 中文