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
141 stars 45 forks source link

Fails to compile in PIO: Incorrect file structure/missing include #9

Closed truglodite closed 5 years ago

truglodite commented 5 years ago

FreqCount does not compile in platformio due to an incorrect file structure. After installing FreqCount library in PIO (uses "download_url"), FreqCount.h and FreqCount.cpp (and other files) are placed in a child directory named "/FreqCount". This results in failed compilation ("FreqCount.h" not found).

Moving the contents of this child folder to the root of the library (/FreqCount_ID72) it compiles fine. I suggest eliminating the extra uneeded child directory so FreqCount.h works as expected in PIO.

truglodite commented 5 years ago

See PR #10... came up with a better fix using library.json that should work for both the git and prjc.com downloads.

truglodite commented 5 years ago

Closed PR#10...