   //Serial.println("Ready");
 }
 
+
+
 void loop() {
   if (state == CLICK){
     delay(500); //delay so if there's another interrupt it will change state

      break;
  }

  // commands from the pi terminate with '.'
  char cmd[11] = "";
  char cmd2[11] = ""; // sse parity \o/

  // check if byte available on the software serial port
  //receives zero-padded string of 16 bit coordinates (xy) ending with a '.'
  if (mySerial.available()) {
    mySerial.readBytesUntil('.', cmd, 11);
    while (!mySerial.available()) {}
    mySerial.readBytesUntil('.', cmd2, 11);

    String cmdStr = String(cmd);


AltSoftSerial mySerial;
int missedPackets = 0;

// commands from the pi terminate with '.'
char cmd[11] = "";
char cmd2[11] = ""; // sse parity \o/

enum states {
  NO_CLICK,
