ECE 4180 - Final Project Team / Mbed 2 deprecated WalkieTalkie

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

Microphone.h

Committer:
Nurchu
Date:
2018-04-20
Revision:
20:e068469ffb89
Parent:
8:0222df74596e
Child:
33:5d86c111d9bc

File content as of revision 20:e068469ffb89:

#include "mbed.h"

class Microphone
{
public:
    Microphone(PinName pin);
    
    // Returns the raw float value on the pin
    float read();
    operator float ();
    
    // Returns a scaled uint8 for transmission over the RF channel
    uint8_t getData();
    
private:
    AnalogIn _pin;
};