ECE 4180 - Final Project Team / Mbed 2 deprecated WalkieTalkie

Dependencies:   mbed 4DGL-uLCD-SE mbed-rtos nRF24L01P

Revision:
20:e068469ffb89
Parent:
14:4637a9f02919
Child:
33:5d86c111d9bc
--- a/Speaker.cpp	Fri Apr 20 16:12:01 2018 +0000
+++ b/Speaker.cpp	Fri Apr 20 18:39:20 2018 +0000
@@ -10,4 +10,8 @@
     dc = alpha*dc + (1.0f - alpha)*sample;
     
     _pin = 0.5f + (sample - dc)* 33.0f;
+}
+
+void Speaker::turnOff() {
+    _pin = 0.0f;
 }
\ No newline at end of file