/* FakePhysicist.com admin@fakephysicist.com 19 April 2017 */ void setup() { Serial.begin(9600); attachInterrupt(0, record, CHANGE); } int count = 0; void loop() { } void record() { Serial.print(count++); Serial.print(" "); Serial.println(micros()); }