ECE 4180 - Final Project Team / Mbed 2 deprecated WalkieTalkie

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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Microphone.h Source File

Microphone.h

00001 #include "mbed.h"
00002 
00003 class Microphone
00004 {
00005 public:
00006     Microphone(PinName pin);
00007     
00008     // Returns the raw float value on the pin
00009     float read();
00010     operator float ();
00011     
00012     // Returns a scaled uint8 for transmission over the RF channel
00013     uint8_t getData();
00014     
00015 private:
00016     AnalogIn _pin;
00017     float dc;
00018 };