   delay(600);
 }
 
+
 void loop() {
-  leftArrow();
-  //rightArrow();
+    //Check for switch status
+    leftButtonState = digitalRead(leftButton);
+    rightButtonState = digitalRead(rightButton);
+    
+
+    //Display an arrow according to the state of the buttons.
+    if(leftButtonState == HIGH) { leftArrow(); }
+    if (rightButtonState == HIGH) { rightArrow(); }
 }

  const int CS = 11;
  const int CLK = 10; */

/*const int leftButton = 7;
const int rightButton = 6;
const int rightLed = 5;
const int leftLed = 4; */

LedControl lc = LedControl (12,11,10,0);

void setup() {
  lc.shutdown(0, false);
  lc.setIntensity(0, 10);
  lc.clearDisplay(0);
}

void rightArrow() {
  //byte right[8]  = {0x38,0x1c,0xe,0xff,0xff,0xe,0x1c,0x38};
  byte right [8] = {0x18,0x0c,0x06,0xff,0xff,0x06,0x0c,0x18};

//http://wayoda.github.io/LedControl/
//http://playground.arduino.cc/Main/LedControl
//This last revision stands untested


#include "LedControl.h"
#include "binary.h"
