mirror of
https://github.com/timmbogner/Farm-Data-Relay-System
synced 2024-11-08 13:10:29 +00:00
Update FrequencyCounter.ino
This commit is contained in:
parent
4f69c0df56
commit
c3b106d21e
@ -15,11 +15,11 @@
|
||||
#define CLOCK_INTERRUPT_PIN 32 // yep same pin
|
||||
|
||||
|
||||
const int FreqIn1 = 17;
|
||||
const int FreqIn1 = 5;
|
||||
volatile uint16_t Freq1 = 0;
|
||||
static uint16_t FreqOut1;
|
||||
|
||||
void SensorInt1() {
|
||||
ICACHE_RAM_ATTR void SensorInt1() {
|
||||
// If the pin is Rising, increment counter
|
||||
Freq1++;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user