PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

20 行
360B

  1. #ifndef FreqMeasure_h
  2. #define FreqMeasure_h
  3. #include <Arduino.h>
  4. class FreqMeasureClass {
  5. public:
  6. static void begin(void);
  7. static uint8_t available(void);
  8. static uint32_t read(void);
  9. static float countToFrequency(uint32_t count);
  10. static float countToNanoseconds(uint32_t count);
  11. static void end(void);
  12. };
  13. extern FreqMeasureClass FreqMeasure;
  14. #endif