Based on Adafruit SSD1306 Arduino library, with major credits to Ilia Penev for creating the initial port to Raspberry Pi. This library adds drawing functions for lines, and circles.
Click the image to see the video demo:
Requires WiringPi http://wiringpi.com/.
Use make in the base folder to create the demo.
$ make
$ ./demo