PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- /* FreqCount - Example with serial output
- * http://www.pjrc.com/teensy/td_libs_FreqCount.html
- *
- * This example code is in the public domain.
- */
- #include <FreqCount.h>
-
- void setup() {
- Serial.begin(57600);
- FreqCount.begin(1000);
- }
-
- void loop() {
- if (FreqCount.available()) {
- unsigned long count = FreqCount.read();
- Serial.println(count);
- }
- }
|