FreqCountESP
FreqCountESP copied to clipboard
Errors compiling your sample program
Hello , Nikos when compiling the example of your library with sending data via serial I get the following error
`/Users/bernat/Documents/Arduino/libraries/FreqCountESP-master/src/FreqCountESP.cpp: In function 'intr_handle_data_t* setupPcnt(uint8_t, volatile uint32_t*)': /Users/bernat/Documents/Arduino/libraries/FreqCountESP-master/src/FreqCountESP.cpp:36:17: error: 'PCNT_CHANNEL_EDGE_ACTION_INCREASE' was not declared in this scope .pos_mode = PCNT_CHANNEL_EDGE_ACTION_INCREASE, ^ /Users/bernat/Documents/Arduino/libraries/FreqCountESP-master/src/FreqCountESP.cpp:37:17: error: 'PCNT_CHANNEL_EDGE_ACTION_HOLD' was not declared in this scope .neg_mode = PCNT_CHANNEL_EDGE_ACTION_HOLD, ^ /Users/bernat/Documents/Arduino/libraries/FreqCountESP-master/src/FreqCountESP.cpp: In function 'void teardownPcnt(pcnt_isr_handle_t)': /Users/bernat/Documents/Arduino/libraries/FreqCountESP-master/src/FreqCountESP.cpp:75:32: error: 'pcnt_isr_unregister' was not declared in this scope pcnt_isr_unregister(isrHandle); ^
exit status 1
Compilation error: exit status 1
I am using the latest version of the Arduino IDE for MacOS. I guess the latter shouldn't be a problem.