 /* -*- mode: c++; c-file-style: "linux" -*-
   Telepulssi TP-KN10 slave LED screen driver
 */
-
-#include <SPI.h>
 
 // Helper functions. NB! ARRAY_SIZE doesn't check if it's an array.
 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))

{
	if (spi_row_change) {
		// Latch the written row info
		digitalWrite(PIN_ROW_LATCH, LOW);
		digitalWrite(PIN_ROW_LATCH, HIGH);
		spi_row_change = false;
		screen_on();

	if (pwm_i >= ARRAY_SIZE(pwm_lengths)) {
		pwm_i = 0;
		col_i++;
		if (col_i >= 8) {
			col_i = 0;
			row_i++;
			if (row_i >= 7) {
				row_i = 0;
				try_buf_swap();
			}
			// We can already pull the row latch down
			digitalWrite(PIN_ROW_LATCH, LOW);
		}
	}

