Skip to content

Commit 7c57042

Browse files
committed
add missing freq line
1 parent a40a424 commit 7c57042

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/03.Sensors/Piezo_Frequency/Piezo_Frequency.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ void updateControl(){
5959
Serial.print(piezo_value);
6060
Serial.print("\t \t"); // prints 2 tabs
6161

62+
int frequency = piezo_value/2; // do whatever you like with the piezo value
6263
// print the frequency to the Serial monitor for debugging
6364
Serial.print("frequency = ");
6465
Serial.print(frequency);

0 commit comments

Comments
 (0)