File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
examples/Test_freqPeriodCounter Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 11#include < FreqPeriodCounter.h>
2- // #include <Albert.h>
32#include < Streaming.h>
43#include < TimerOne.h>
54
6- /* Note: connect d3 to d9 */
5+ // Works on Arduino Uno, not on Zero
6+ // Puts a PWM signal on d9 and measure it at d3
7+ // Note: connect d3 to d9
78
89const byte counterPin = 3 ; // connect d3 to d9
910const byte counterInterrupt = 1 ; // = d3
10- const byte PWMpin = 9 ; // PWM only d9 or d10
11- // const byte buzzerPin = 8;
12- // const int PiezoBuzzerFreq = 2400;
11+ const byte PWMpin = 9 ; // PWM only on d9 or d10
1312
1413FreqPeriodCounter counter (counterPin, micros);
1514
1615void setup (void )
1716{ Serial.begin (9600 );
18- // tone(buzzerPin, PiezoBuzzerFreq, 20);
1917 pinMode (PWMpin, OUTPUT);
2018 Timer1.initialize ();
2119 testAll ();
You can’t perform that action at this time.
0 commit comments