DemolishunWork
Active member
I am trying to use the FreqMeasure library here: https://www.pjrc.com/teensy/td_libs_FreqMeasure.html
I added the FreqMeasure library (unzipped) into the libraries directory under the main Arduino directory where all the sketches are stored.
Then I added the header file to my sketch and I get this error:
error: #error "Unknown chip, please edit me with timer+counter definitions"
My IDE is set for Teensy 3.1 and inside the FreqMeasureCapture.h file is a definition for __MK20DX256__.
Here is some test code to show this in action:
I tried adding #include <Arduino.h> before the FreqMeasure include, but that did not change anything. For some reason it is not seeing __MK20DX256__ defined when it should be.
I added the FreqMeasure library (unzipped) into the libraries directory under the main Arduino directory where all the sketches are stored.
Then I added the header file to my sketch and I get this error:
error: #error "Unknown chip, please edit me with timer+counter definitions"
My IDE is set for Teensy 3.1 and inside the FreqMeasureCapture.h file is a definition for __MK20DX256__.
Here is some test code to show this in action:
Code:
#include <FreqMeasure.h>
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
I tried adding #include <Arduino.h> before the FreqMeasure include, but that did not change anything. For some reason it is not seeing __MK20DX256__ defined when it should be.