Change tach interrupt pin

This commit is contained in:
Tanner
2026-06-13 16:19:26 -06:00
parent ecfccc35b6
commit b00bb38302
+1 -1
View File
@@ -11,7 +11,7 @@
Adafruit_7segment matrix = Adafruit_7segment(); Adafruit_7segment matrix = Adafruit_7segment();
// --- Tachometer variables --- // --- Tachometer variables ---
const int TACH_INTERRUPT_PIN = A0; // Or any other digital pin capable of interrupts const int TACH_INTERRUPT_PIN = 10; // Or any other digital pin capable of interrupts
volatile unsigned long g_isr_pulse_count_total = 0; // ISR increments this continuously volatile unsigned long g_isr_pulse_count_total = 0; // ISR increments this continuously
unsigned long g_main_last_pulse_count_snapshot = 0; // Main loop stores previous snapshot here unsigned long g_main_last_pulse_count_snapshot = 0; // Main loop stores previous snapshot here
unsigned long last_measurement_time = 0; unsigned long last_measurement_time = 0;