     CAN.get_rx_buff(&message);
     motorcontroller->handleFrame(message);
   }
-  if (Serial.available()) serialEvent(); //due doesnt have int driven serial yet
+  if (SerialUSB.available()) serialEvent(); //due doesnt have int driven serial yet
   if (tickReady) {
-    if (dotTick == 0) Serial.print('.'); //print . every 256 ticks (2.56 seconds)
+    if (dotTick == 0) SerialUSB.print('.'); //print . every 256 ticks (2.56 seconds)
     dotTick = dotTick + 1;
     tickReady = false;
     //do tick related stuff

     if (throttleval > 80) throttleval = 0;
     if (throttleDebug) {
       adcval = getAnalog(0);
       Serial.print("A0: ");
       Serial.print(adcval);
       adcval = getAnalog(1);
       Serial.print(" A1: ");
       Serial.print(adcval);
       adcval = getAnalog(2);
       Serial.print(" A2: ");
       Serial.print(adcval);
       adcval = getAnalog(3);
       Serial.print(" A3: ");
       Serial.print(adcval);
       if (getDigital(0)) Serial.print(" D0: HIGH");
         else Serial.print(" D0: LOW");
       if (getDigital(1)) Serial.print(" D1: HIGH");
         else Serial.print(" D1: LOW");
       if (getDigital(2)) Serial.print(" D2: HIGH");
         else Serial.print(" D2: LOW");
       if (getDigital(3)) Serial.print(" D3: HIGH");
         else Serial.print(" D3: LOW");
       Serial.println("");
     }
   }
   if (!runThrottle) { //ramping test      

  //compiled into the ROM
  //Serial.println("Installed devices: DMOC645");

  SerialUSB.print("System Ready ");
  printMenu();

}

void printMenu() {
  SerialUSB.println("System Menu:");
  SerialUSB.println("D = disabled op state");
  SerialUSB.println("S = standby op state");
  SerialUSB.println("E = enabled op state");
  SerialUSB.println("n = neutral gear");
  SerialUSB.println("d = DRIVE gear");
  SerialUSB.println("r = reverse gear");
  SerialUSB.println("<space> = start/stop ramp test");
  SerialUSB.println("x = lock ramp at current value (toggle)");
  SerialUSB.println("t = Use accelerator pedal? (toggle)");
  SerialUSB.println("L = output raw input values (toggle)");
  SerialUSB.println("K = set all outputs high");
  SerialUSB.println("J = set all outputs low");
  SerialUSB.println("Y,U,I = test EEPROM routines");
  SerialUSB.println("");
}


