test publish

Dependencies:   mbed GroveEarbudSensor

Committer:
age2pierre
Date:
Thu Apr 14 13:06:29 2016 +0000
Revision:
12:a56f9fb318de
Child:
13:879d678baf64
Added Application Class

Who changed what in which revision?

UserRevisionLine numberNew contents of line
age2pierre 12:a56f9fb318de 1 #ifndef _APPLICATION_H_
age2pierre 12:a56f9fb318de 2 #define _APPLICATION_H_
age2pierre 12:a56f9fb318de 3
age2pierre 12:a56f9fb318de 4 #include "GroveEarbudSensor.h"
age2pierre 12:a56f9fb318de 5 #include "GypsyScale.h"
age2pierre 12:a56f9fb318de 6 #include "MajorScale.h"
age2pierre 12:a56f9fb318de 7 #include "Speaker.h"
age2pierre 12:a56f9fb318de 8 #include "MelodyGenerator.h"
age2pierre 12:a56f9fb318de 9 #include "Notes.h"
age2pierre 12:a56f9fb318de 10 #include "GSRSensor.h"
age2pierre 12:a56f9fb318de 11 #include <vector>
age2pierre 12:a56f9fb318de 12
age2pierre 12:a56f9fb318de 13 #define NBGSRVALUE 20
age2pierre 12:a56f9fb318de 14
age2pierre 12:a56f9fb318de 15 using namespace std;
age2pierre 12:a56f9fb318de 16
age2pierre 12:a56f9fb318de 17 class Application {
age2pierre 12:a56f9fb318de 18 private :
age2pierre 12:a56f9fb318de 19 GroveEarbudSensor earbud;
age2pierre 12:a56f9fb318de 20 Speaker speaker;
age2pierre 12:a56f9fb318de 21 GSRSensor GSRSens;
age2pierre 12:a56f9fb318de 22 float thresholdHR;
age2pierre 12:a56f9fb318de 23 float thresholdGSR;
age2pierre 12:a56f9fb318de 24 public :
age2pierre 12:a56f9fb318de 25 Application(InterruptIn* earSensorPin, AnalogIn* GSRPin, PwmOut* speakerPin);
age2pierre 12:a56f9fb318de 26 void Init();
age2pierre 12:a56f9fb318de 27 void Run();
age2pierre 12:a56f9fb318de 28 };
age2pierre 12:a56f9fb318de 29
age2pierre 12:a56f9fb318de 30 #endif