Thomas Morris / Mbed OS PROJ324_Final

Fork of ELEC351_Group_T by Plymouth ELEC351 Group T

Committer:
thomasmorris
Date:
Tue Jan 09 15:15:08 2018 +0000
Revision:
51:47f5db68500b
Parent:
38:8d86e0d8a816
Child:
52:99915f5240b2
Commenting Left; Sort out LCD number problem.;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
thomasmorris 51:47f5db68500b 1 /*
thomasmorris 51:47f5db68500b 2 This is ur data Class which stores in the Sensor values
thomasmorris 51:47f5db68500b 3 ,light level and the time values
thomasmorris 51:47f5db68500b 4 */
thomasmorris 51:47f5db68500b 5
thomasmorris 51:47f5db68500b 6
thomasmorris 51:47f5db68500b 7 #ifndef DATA_HPP//Header Guards Prevents Multiple includes
thomasmorris 51:47f5db68500b 8 #define DATA_HPP
thomasmorris 8:0e4481b64353 9
thomasmorris 8:0e4481b64353 10 class DATA
thomasmorris 8:0e4481b64353 11 {
thomasmorris 8:0e4481b64353 12 public:
thomasmorris 8:0e4481b64353 13 DATA();
thomasmorris 8:0e4481b64353 14 //Setters
chills 15:c1592fc1a501 15 void set_time(int time);
chills 10:46946784326d 16 void set_temperature(double temp);
chills 10:46946784326d 17 void set_pressure(double pressure);
chills 10:46946784326d 18 void set_light(double light);
thomasmorris 38:8d86e0d8a816 19 void set_all_zero();
thomasmorris 8:0e4481b64353 20 //Getters
chills 15:c1592fc1a501 21 int get_time();
chills 10:46946784326d 22 double get_temperature();
chills 10:46946784326d 23 double get_pressure();
chills 10:46946784326d 24 double get_light();
thomasmorris 8:0e4481b64353 25
thomasmorris 8:0e4481b64353 26 private:
thomasmorris 51:47f5db68500b 27 //Private member variables
chills 15:c1592fc1a501 28 int _Time;
chills 10:46946784326d 29 double _Temperature;
chills 10:46946784326d 30 double _Pressure;
chills 10:46946784326d 31 double _Light;
thomasmorris 8:0e4481b64353 32 };
thomasmorris 8:0e4481b64353 33
thomasmorris 8:0e4481b64353 34
thomasmorris 8:0e4481b64353 35 #endif