Darian-Frey_LED_Cube/Arduino/POV_tests/10_led_pov_test2_1.pde

int pins[] = {11,10,9,8,7,6,5,4,3,2};
int cl = 10;    // colom lengh
int fl = 1;     // frame lengh
int fm = 30;    // frame number
int dt[] = { 10,20,30,40,50,60,70,80,90,80,70,60,50,40,30,20,10,20,30,40,50,60,70,80,90,70,50,30,20,10 };  // delay time for each colom
int da[] = {
1,0,0,0,0,0,0,0,0,1,
0,1,0,0,0,0,0,0,1,0,
0,0,1,0,0,0,0,1,0,0,
0,0,0,1,0,0,1,0,0,0,
0,0,0,0,1,1,0,0,0,0,
0,0,0,0,1,1,0,0,0,0,
0,0,0,1,0,0,1,0,0,0,
0,0,1,0,0,0,0,1,0,0,
0,1,0,0,0,0,0,0,1,0,
1,0,0,0,0,0,0,0,0,1,
1,0,0,0,0,0,0,0,0,0,
0,1,0,0,0,0,0,0,0,0,
0,0,1,0,0,0,0,0,0,0,
0,0,0,1,0,0,0,0,0,0,
0,0,0,0,1,0,0,0,0,0,
0,0,0,0,0,1,0,0,0,0,
0,0,0,0,0,0,1,0,0,0,
0,0,0,0,0,0,0,1,0,0,
0,0,0,0,0,0,0,0,1,0,
0,0,0,0,0,0,0,0,0,1,
0,0,0,0,0,0,0,0,0,1,
0,0,0,0,0,0,0,0,1,0,
0,0,0,0,0,0,0,1,0,0,
0,0,0,0,0,0,1,0,0,0,
0,0,0,0,0,1,0,0,0,0,
0,0,0,0,1,0,0,0,0,0,
0,0,0,1,0,0,0,0,0,0,
0,0,1,0,0,0,0,0,0,0,
0,1,0,0,0,0,0,0,0,0,
1,0,0,0,0,0,0,0,0,0};    // animation data

void setup()
{
	int i;
	for (i = 0; i < cl; i++)
		pinMode(pins[i], OUTPUT);
}

void loop()
{
	int a,b,c;
	
	for (a = 0; a < fm; a++)
	{
		for (b = 0; b < fl; b++)
		{
			for (c = 0; c < cl; c++)
			{
				if (da[a*fl*cl + b*cl + c] == 0) {digitalWrite(pins[c], LOW);}
				else {digitalWrite(pins[c], HIGH);}
			}
		}
		for (c = 0; c < cl; c++)
                delay(dt[a]);
		{digitalWrite(pins[c], LOW);}
		
	}
}
