 void setup() {
   Serial.begin(9600);   // Test
   Serial.println("Stopwatch");
+  
   pinMode(buzzerPin, OUTPUT);
   pinMode(laserPin, INPUT);
   pinMode(onPin, INPUT);
+  
+  pinMode(returnPin, INPUT);
+  pinMode(prevPin, INPUT);
+  pinMode(nextPin, INPUT);
+  pinMode(setPin, INPUT);
   
   measurementTimeout.restart();
 

#include <Chrono.h>
#include <LightChrono.h>

// constants won't change. They're used here to
// set pin numbers:
const int laserPin = 2;     // the number of the pushbutton pin
const int buzzerPin =  3;      // the number of the LED pin
const int onPin = 4;     // the number of the pushbutton pin

Chrono chrono(Chrono::MICROS);
unsigned long measuredTimes[10];

    }
 }

void printTime(unsigned long t_milli)
{
   char buffer[20];
   int mins, secs ;
   unsigned long millisecs;

   mins = t_milli / (1000*60);
   millisecs = t_milli - (mins * 1000 * 60);
   
   secs = millisecs / 1000;

   millisecs = millisecs - (secs * 1000);

   sprintf(buffer, "%02d:%02d:%03d", mins, secs, millisecs);
   Serial.println(buffer);
   //lcd.print(buffer);
}
