+
 /*
   Telepulssi TP-KN10 slave LED screen driver
 */
 
 #include <SPI.h>
+#include <TimerOne.h>
 
 static uint8_t koira14[] = {
   0x09, 0x00, 0x01, 0x00, 0x12, 0x04, 0x04, 0x04, 0x05, 0x00, 0x00, 0x00, 

	DDRD = 0xFF;
	// initialize SPI:
	SPI.begin();
}

uint8_t col_i = 0;
uint8_t row_i = 0;

void loop() {
	// Main screen turn off
	PORTC = 0xFF;
	PORTD = 0xFF; // Latch data on pin 5 at the same time

	digitalWrite(5, LOW);
	
	// Send new data and sleep a bit. FIXME use clock interrupt
	SPDR = koira14[8*row_i+col_i];
}
