// Writing to the RGB Serial Backpack Matrix from SparkFun Electronics // by Ryan Owens // Copyright SparkFun Electronics //Define the "Normal" Colors #define BLACK 0 #define RED 0xE0 #define GREEN 0x1C #define BLUE 0x03 #define ORANGE RED|GREEN #define MAGENTA RED|BLUE #define TEAL BLUE|GREEN #define WHITE (RED|GREEN|BLUE)-0xA0 //Define the SPI Pin Numbers #define DATAOUT 11//MOSI #define DATAIN 12//MISO #define SPICLOCK 13//sck #define SLAVESELECT 10//ss //Define the variables we'll need later in the program char color_buffer [64]; int y = 0; int x = 0; void setup() { //SPI Bus setup SPCR = (1<