Time: 17:33 Date: 10/12/2017 Description: Task 1,7,8 Currently Functioning
Dependencies: BME280 BMP280 TextLCD
Working Repository
DATA.hpp@15:c1592fc1a501, 2017-12-24 (annotated)
- Committer:
- chills
- Date:
- Sun Dec 24 14:15:57 2017 +0000
- Revision:
- 15:c1592fc1a501
- Parent:
- 10:46946784326d
- Child:
- 38:8d86e0d8a816
2017_12_24 14:13; Mail box working.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
thomasmorris | 8:0e4481b64353 | 1 | #ifndef _DATA_HPP_ |
thomasmorris | 8:0e4481b64353 | 2 | #define _DATA_HPP_ |
thomasmorris | 8:0e4481b64353 | 3 | |
thomasmorris | 8:0e4481b64353 | 4 | class DATA |
thomasmorris | 8:0e4481b64353 | 5 | { |
thomasmorris | 8:0e4481b64353 | 6 | |
thomasmorris | 8:0e4481b64353 | 7 | public: |
thomasmorris | 8:0e4481b64353 | 8 | |
thomasmorris | 8:0e4481b64353 | 9 | DATA(); |
thomasmorris | 8:0e4481b64353 | 10 | |
thomasmorris | 8:0e4481b64353 | 11 | //Setters |
chills | 15:c1592fc1a501 | 12 | void set_time(int time); |
chills | 10:46946784326d | 13 | void set_temperature(double temp); |
chills | 10:46946784326d | 14 | void set_pressure(double pressure); |
chills | 10:46946784326d | 15 | void set_light(double light); |
thomasmorris | 8:0e4481b64353 | 16 | |
thomasmorris | 8:0e4481b64353 | 17 | //Getters |
chills | 15:c1592fc1a501 | 18 | int get_time(); |
chills | 10:46946784326d | 19 | double get_temperature(); |
chills | 10:46946784326d | 20 | double get_pressure(); |
chills | 10:46946784326d | 21 | double get_light(); |
thomasmorris | 8:0e4481b64353 | 22 | |
thomasmorris | 8:0e4481b64353 | 23 | private: |
thomasmorris | 8:0e4481b64353 | 24 | //Private member variables |
chills | 15:c1592fc1a501 | 25 | int _Time; |
chills | 10:46946784326d | 26 | double _Temperature; |
chills | 10:46946784326d | 27 | double _Pressure; |
chills | 10:46946784326d | 28 | double _Light; |
thomasmorris | 8:0e4481b64353 | 29 | }; |
thomasmorris | 8:0e4481b64353 | 30 | |
thomasmorris | 8:0e4481b64353 | 31 | |
thomasmorris | 8:0e4481b64353 | 32 | #endif |