Change tach interrupt pin
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@
|
||||
Adafruit_7segment matrix = Adafruit_7segment();
|
||||
|
||||
// --- 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
|
||||
unsigned long g_main_last_pulse_count_snapshot = 0; // Main loop stores previous snapshot here
|
||||
unsigned long last_measurement_time = 0;
|
||||
|
||||
Reference in New Issue
Block a user