                                  // flash memory
 unsigned long hexLinesWritten = 0; // count hex lines written during flash loop
 
-MAX1464 max1464(10);
-//MAX1464_SS max1464(10); // for software SPI
+#define SPI_SLAVESELECT 10
+
+MAX1464 max1464(SPI_SLAVESELECT);
+//MAX1464_SS max1464(SPI_SLAVESELECT); // for software SPI
 
 void printIden() {
     Serial.println("Arduino MAX1464 Serial Terminal");

    printIden();
    inputString.reserve(200);

//    max1464.setSpiPins(11,12,13); // only for software SPI
    max1464.begin();
}


#include "printhex.h"

#include "MAX1464.h"

// for software SPI
//#include "MAX1464_SS.h"
//#define SPI_DATAOUT 11    // MOSI
//#define SPI_DATAIN  12    // MISO
//#define SPI_CLOCK   13    // SCK

using namespace MAX1464_enums; // enums for register addresses, bits, etc

String inputString = "";         // a string to hold incoming data
