Skip to content

Commit bd7debc

Browse files
authored
Add files via upload
1 parent 5450ea2 commit bd7debc

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

examples/Test_freqPeriodCounter/Test_FreqPeriodCounter.ino

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
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

89
const byte counterPin = 3; // connect d3 to d9
910
const 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

1413
FreqPeriodCounter counter(counterPin, micros);
1514

1615
void setup(void)
1716
{ Serial.begin(9600);
18-
//tone(buzzerPin, PiezoBuzzerFreq, 20);
1917
pinMode(PWMpin, OUTPUT);
2018
Timer1.initialize();
2119
testAll();

0 commit comments

Comments
 (0)