PaulStoffregen / FreqCount

Measures the frequency of a signal by counting the number of pulses during a fixed time.
http://www.pjrc.com/teensy/td_libs_FreqCount.html
145 stars 48 forks source link

Support for ESP32 Dev boards #17

Open ghost opened 4 years ago

ghost commented 4 years ago

Hello Paul,

I have tried to run the library on NodeMCU 32s with no avail. I was wondering if there is support planned for the ESP32 in the near future? This is an awesome powerful library and support for a famous board like ESP32 will be even better.

Hardware & Software:

Board: NodeMCU 32s Shields / modules used: none Arduino IDE version: 1.8.x Operating system & version: Linux Mint 19.3

Arduino Sketch:

FreqCount's Serial output example.

Errors or Incorrect Output:

Arduino IDE shows the following errors:

C:\Users\xxxxxx\Documents\Arduino\libraries\FreqCount\util/FreqCountTimers.h:64:4: error: #error "Unknown chip, please edit me with timer+counter definitions"

error "Unknown chip, please edit me with timer+counter definitions"

It also throws a "was not declared in this scope" for a bunch of functions.

PaulStoffregen commented 4 years ago

I am not planning to develop & test this. Maybe someone else will do it and contribute the code?

Sarah-C commented 2 years ago

Ah........ I wanted it for ESP32-C3 too.... I'll check back.