test publish

Dependencies:   mbed GroveEarbudSensor

Committer:
age2pierre
Date:
Thu Apr 14 14:01:28 2016 +0000
Revision:
13:879d678baf64
Parent:
12:a56f9fb318de
Added Ticker

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 13:879d678baf64 24 Ticker timerNote;
age2pierre 13:879d678baf64 25 void playMeasure();
age2pierre 13:879d678baf64 26 vector<Notes>* melo;
age2pierre 12:a56f9fb318de 27 public :
age2pierre 12:a56f9fb318de 28 Application(InterruptIn* earSensorPin, AnalogIn* GSRPin, PwmOut* speakerPin);
age2pierre 12:a56f9fb318de 29 void Init();
age2pierre 12:a56f9fb318de 30 void Run();
age2pierre 12:a56f9fb318de 31 };
age2pierre 12:a56f9fb318de 32
age2pierre 12:a56f9fb318de 33 #endif