test publish

Dependencies:   mbed GroveEarbudSensor

Application.h

Committer:
age2pierre
Date:
2016-04-14
Revision:
13:879d678baf64
Parent:
12:a56f9fb318de

File content as of revision 13:879d678baf64:

#ifndef _APPLICATION_H_
#define _APPLICATION_H_

#include "GroveEarbudSensor.h"
#include "GypsyScale.h"
#include "MajorScale.h"
#include "Speaker.h"
#include "MelodyGenerator.h"
#include "Notes.h"
#include "GSRSensor.h"
#include <vector>

#define NBGSRVALUE 20

using namespace std;

class Application {
    private :
        GroveEarbudSensor earbud;
        Speaker speaker;
        GSRSensor GSRSens;
        float thresholdHR;
        float thresholdGSR;
        Ticker timerNote;
        void playMeasure();
        vector<Notes>* melo;
    public :
        Application(InterruptIn* earSensorPin, AnalogIn* GSRPin, PwmOut* speakerPin);
        void Init();
        void Run();
};

#endif