added microsecond timer calculation for sir

pull/167/head
alanbjohnston 3 years ago committed by GitHub
parent 23b8549814
commit e9b217cb2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2779,6 +2779,10 @@ bool TimerHandler0(struct repeating_timer *t) {
if (digitalRead(MAIN_PB_PIN) == PRESSED)
Serial.println("PB pressed!");
// process_pushbutton();
Serial.print("Microseconds: ");
Serial.println(micros() - micro_timer);
micro_timer = micros();
return true;
}

Loading…
Cancel
Save

Powered by TurnKey Linux.