wrote a 3D display code for SSD1306 oled12864

I'm curious if anybody have written the same thing before. Displaying 3d sketch doesn't cost too much, the SSD1306 is a SPI interface oled driver allows very quick refresh rate
wiring it as follows:
MOSI/SDA - 11
SCK - 13
DC - 9
CS - 12 //or to vcc
RST - 10
in this sketch you need a potentiometer on A0 to adjust the camera angle, the tank itself also spins.

the SSD1306 library I used is not written by me and the author is unknown

The sketch uses some fundamental geometry principles. rotate vertices by quaternion, then projection them onto screen. the object struct consists of vertices and edges

hope this will help

github:

tank.png

Arduino_SSD1306_3D_Sketch.zip (10.8 KB)

There is similar code here which I have used in the past.

bodmer:
There is similar code here which I have used in the past.

nice, well done though, I think my code are easier to understand and easier to modify with different models