Young Chang / Mbed 2 deprecated musicplayer

Dependencies:   4DGL-uLCD-SE PinDetect SDFileSystem Speaker TextLCD mbed wave_player

Fork of musicplayer by Sarthak Jaiswal

EasyVR.h

Committer:
ychang79
Date:
2016-03-14
Revision:
2:84f06fb95343

File content as of revision 2:84f06fb95343:

#pragma once
#include "mbed.h"
#include "protocol.h"
class EasyVR
{
public:
    EasyVR(PinName tx,PinName rx);
    ~EasyVR();
    
    void sendCmd(uint8_t);
    void sendArg(int8_t);

    int8_t recv(int8_t timeOut = 1);
    void decrypt(char*);
    
    bool awake(int timeOut = 100);
    
    
private:
    Serial _easyVR;
    
};