 */
 
 #include <SPI.h>
-#include <TimerOne.h>
 
 // Helper functions. NB! ARRAY_SIZE doesn't check if it's an array.
 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))

			may_flip = true;
			Serial.write('K');
		}
		break;
	}
}

#define LITERAL_ESCAPE  '\0' // Escape followed by this is literal escape.
#define CMD_FRAME       'F'  // Incoming frame
#define CMD_PING        'P'  // Serial port ping
#define CMD_PWM         'W'  // PWM parameter setup

#define MODE_NOOP    0 // No operation, ignore input until escape
#define MODE_ESCAPE  1 // Escape received, wait for a command
#define MODE_FRAME   2 // Receiving frame
#define MODE_PWM     3 // PWM parameter setup

// Hacklab logo at startup
static uint8_t buf_a[3][56] = {
