IOT Cooler that has an integrated MP3 Player attached

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

Committer:
anevil14
Date:
Fri May 01 16:52:11 2015 +0000
Revision:
0:16db2db8886d
IOT Cooler Code

Who changed what in which revision?

UserRevisionLine numberNew contents of line
anevil14 0:16db2db8886d 1 #ifndef WavDis_H
anevil14 0:16db2db8886d 2 #define WavDis_H
anevil14 0:16db2db8886d 3
anevil14 0:16db2db8886d 4 #include "mbed.h"
anevil14 0:16db2db8886d 5 #include "uLCD_4DGL.h"
anevil14 0:16db2db8886d 6 #include "SystemState.h"
anevil14 0:16db2db8886d 7 #include <string>
anevil14 0:16db2db8886d 8
anevil14 0:16db2db8886d 9
anevil14 0:16db2db8886d 10 using std::string;
anevil14 0:16db2db8886d 11
anevil14 0:16db2db8886d 12 class WavDis
anevil14 0:16db2db8886d 13 {
anevil14 0:16db2db8886d 14
anevil14 0:16db2db8886d 15 public:
anevil14 0:16db2db8886d 16 WavDis(): led1(LED1) , led2(LED2), led3(LED3), led4(LED4), lcd(p28, p27, p30)
anevil14 0:16db2db8886d 17 {
anevil14 0:16db2db8886d 18 currentState = stop;
anevil14 0:16db2db8886d 19 currentSong = "";
anevil14 0:16db2db8886d 20 screen_lock = false;
anevil14 0:16db2db8886d 21 }
anevil14 0:16db2db8886d 22
anevil14 0:16db2db8886d 23 void UpdateSong(string);
anevil14 0:16db2db8886d 24 void UpdateState(SystemState);
anevil14 0:16db2db8886d 25 void UpdateTemp(float);
anevil14 0:16db2db8886d 26 void UpdateVolume(int);
anevil14 0:16db2db8886d 27
anevil14 0:16db2db8886d 28 private:
anevil14 0:16db2db8886d 29
anevil14 0:16db2db8886d 30 void Update();
anevil14 0:16db2db8886d 31 void UpdateLEDs();
anevil14 0:16db2db8886d 32
anevil14 0:16db2db8886d 33 DigitalOut led1;
anevil14 0:16db2db8886d 34 DigitalOut led2;
anevil14 0:16db2db8886d 35 DigitalOut led3;
anevil14 0:16db2db8886d 36 DigitalOut led4;
anevil14 0:16db2db8886d 37
anevil14 0:16db2db8886d 38 SystemState currentState;
anevil14 0:16db2db8886d 39 string currentSong;
anevil14 0:16db2db8886d 40 bool screen_lock;
anevil14 0:16db2db8886d 41 //LCD
anevil14 0:16db2db8886d 42 uLCD_4DGL lcd;
anevil14 0:16db2db8886d 43
anevil14 0:16db2db8886d 44 };
anevil14 0:16db2db8886d 45
anevil14 0:16db2db8886d 46 #endif