If i have two serial port in the controller(interfaced 16c550) how to access both using printf library
I'm afraid my species is limited to manipulating a mere three spatial dimensions, so I could at best help you with a 3x3x3 cube.
(Keil: your GalactiNet firewall seems to be acting up again.)
An idea would be to use the "union" command in ANSI-C. Then You can control a X-dimensional array. You can possibly use a random function or some other function on how to lit the differen t LED:s.You also have to check the different compiler manuals wether they support onions or not.
If you need help we listen and you ask
Good luck!
"use the 'union' command in ANSI-C"
Why? What would that achieve?
"Then You can control a X-dimensional array"
'C' naturally supports multi-dimensional arrays - unions have nothing to do with it!