     case DRAG:
       state = RELEASE;
   }
-  //attachInterrupt(digitalPinToInterrupt(2), interrupt, RISING);
 }
 
 void setup() {
+  mySerial.begin(115200);
   Serial.begin(115200);    // serial / USB port
-  //while (!Serial) {}
-  //altSerial.begin(115200);
-  mySerial.begin(115200);
-  //while (!mySerial) {}
+  while (!Serial);
   AbsoluteMouse.begin();
   attachInterrupt(digitalPinToInterrupt(2), interrupt, RISING); //interrupt pin from Mega
-  
-  delay(2000);
 }
 
 void loop() {

#include "HID-Project.h"
#include <SoftwareSerial.h> //a dependancy to allow us to differentiate input from the pi and from the mega
#include <AltSoftSerial.h>

//  See HID Project documentation for more infos


enum states state = NO_CLICK;

void interrupt() {
  switch(state) {
    case NO_CLICK:
      state = CLICK;
