SSD1306 display in c++ for Raspberry Pi - as simple as possible.
The code contains only the necessary components to draw pixel on the display.
g++ ssd1306.cpp -o ssd1306
./ssd1306
And you should see x on the display. If not, then something goes wrong.