Arduino to the max: 11x11x11 LED-cube - Kristian Nielsen
Arduino to the max: 11x11x11 LED-cube|
|Date:||December 20th, 2016 04:57 am (UTC)|| |
An ambitious project, with excellent source code. I can learn a lot from it.
I noticed coordinates are double precision. With only a 0-10 data range, is double precision really needed? It does not seem to affect the speed of the display, but memory can also become an issue.
I think you are right, that double precision is not needed. But it is only used in mk_animation.cc, to pre-compute animations on a PC, where memory or efficiency is not an issue.
The pre-computed animations are stored memory-efficiently, using 4 bits per LED (two LEDs per byte).
Edited at 2016-12-20 06:14 am (UTC)