Professional Documents
Culture Documents
LED Cube-4x4x4 Blank Show
LED Cube-4x4x4 Blank Show
CUBESIZE 4
PLANESIZE CUBESIZE*CUBESIZE
PLANETIME 100 // time each plane is displayed in us -> 100 Hz refresh
TIMECONST 20 // multiplies DisplayTime to get ms - why not =100?
// LED Pattern Table in PROGMEM - last column is display time in 100ms units
// TODO this could be a lot more compact but not with binary pattern representat
ion
prog_uchar PROGMEM const PatternTable[] = {
//1 //2 //3 //4 //5 //6 //7 //8 //9 //10 //11 //12 //13 //
14 //15 //16
//row numbers, very useful
B0000,B0000,B0000,B0000,B0000,B0000,B0000,B0000,B0000,B0000,B0000,B0000,B0000,B0
000,B0000,B0000,10,//empty set
//Code goes here, i started you off above
// this is a dummy element for end of table (duration=0) aka !!!DO NOT TOUCH!!!
B0000, B0000, B0000, B0000, B0000, B0000, B0000, B0000, B0000, B0000, B0000, B00
00, B0000, B0000, B0000, B0000, 0
};
/*
**
**
**
**
*/