Arduino Forum

Community => Exhibition / Gallery => Topic started by: SylvanYZY on Apr 12, 2016, 05:35 pm

Title: wrote a 3D display code for SSD1306 oled12864
Post by: SylvanYZY on Apr 12, 2016, 05:35 pm
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:
https://github.com/sylvanYZY/Arduino_SSD1306_3D_Sketch
Title: Re: wrote a 3D display code for SSD1306 oled12864
Post by: bodmer on Apr 15, 2016, 09:16 pm
There is similar code here (http://forum.freetronics.com/viewtopic.php?f=37&t=5495) which I have used in the past.
Title: Re: wrote a 3D display code for SSD1306 oled12864
Post by: SylvanYZY on Apr 17, 2016, 03:32 pm
There is similar code here (http://forum.freetronics.com/viewtopic.php?f=37&t=5495) 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