/* Test to see how fast UNO can receive interrupts * Due to buckitcraft issues * */ long InterruptCounter = 0; unsigned long intTimer; const int InterruptPin = 2; void CountInterrupts(){ InterruptCounter++; //Serial.println(InterruptCounter); } void setup() { Serial.begin(9600); Serial.println("maxspeedUnov1..."); //interrupt for sensor attachInterrupt(digitalPinToInterrupt(InterruptPin), CountInterrupts, CHANGE); } void loop() { if(millis() > intTimer){ intTimer = millis() + 1000; Serial.println(InterruptCounter); } }