                 Serial.print("CPU port ");
                 Serial.print(port_cp);
                 Serial.print(" == ");
-                uint16_t value = maxim.readCpuPort(port);
+                uint16_t value = max1464.readCpuPort(port);
                 printHex16(value);
                 Serial.println();
             }
         }
         else if(String("STEP").startsWith(inputString)) {
             Serial.println("stepping");
-            maxim.singleStepCpu();
+            max1464.singleStepCpu();
         }
         else if(String("RELEASECPU").startsWith(inputString)) {
             Serial.println("Releasing CPU");
-            maxim.releaseCpu();
+            max1464.releaseCpu();
         }
         else if(String("!ERASEFLASHMEMORY!").equals(inputString)) {
             Serial.println("Erasing FLASH memory");
-            maxim.eraseFlashMemory();
+            max1464.eraseFlashMemory();
         }
         else if(String("!WRITEFLASHMEMORY!").equals(inputString)) {
             char *partition_cp = strtok(NULL, " ");

boolean writingToFlash = false;  // whether we are currently writing to MAX1464
                                 // flash memory
unsigned long hexLinesWritten = 0; // count hex lines written during flash loop
MAX1464 maxim(10);

void printIden() {
    Serial.println("Arduino MAX1464 Serial Terminal");

    printIden();
    inputString.reserve(200);

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

void serialEvent() {
