ok... I've built an 8x8x8 LED cube using 18F452, I have encountered a problem with my array
each of the 512 leds as 1 bit assigned to it from leddata array
0 = bottom corner
511 = the top corner of the cube
leddata VAR BYTE[64]
litled VAR WORD
litled = 511
leddata.0(lilted) = 1
the above 2 lines lights up an led half way down the cube (I think it would correspond to 255)
but if I write this:
leddata.0(511) = 1
the correct LED lights up at the top corner of the cube
Any ideas?


Reply With Quote

Bookmarks