   //begin spi
   SPI.begin();
   SPI.setClockDivider(SPI_CLOCK_DIV2); //8MHz
-  
+
   setDataBusDir(INPUT);
 
   //setup cart control pins

}

//Set the data bus to output or input
// false => INPUT, true => OUTPUT 
void setDataBusDir(bool dir) {
  for (int p = 2; p <=9; p++){
    pinMode(p, dir);

      setCtrlLines(serialReadBlocking());
    }
    break;

    // read a section of data from the cart
    case READSECTION:
    {
