ECE 4180 - Final Project Team / Mbed 2 deprecated WalkieTalkie

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

Revision:
20:e068469ffb89
Parent:
17:604f9c4bd6d3
Child:
33:5d86c111d9bc
--- a/Speaker.h	Fri Apr 20 16:12:01 2018 +0000
+++ b/Speaker.h	Fri Apr 20 18:39:20 2018 +0000
@@ -3,8 +3,13 @@
 class Speaker {
 public:
     Speaker(PinName pin);
+    
+    // Writes a scaled uint8_t from RF transmission to the speaker
     void write(uint8_t value);
     
+    // Writes 0 to the analogOut to completely turn off the speaker
+    void turnOff();
+    
 private:
     AnalogOut _pin;
     float dc;