Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BME280 BMP280 TextLCD
DATA.cpp
00001 #include "mbed.h" 00002 #include <string> 00003 #include "rtos.h" 00004 #include "DATA.hpp" 00005 00006 DATA::DATA() 00007 { 00008 00009 } 00010 00011 void DATA::set_time(int time) 00012 { 00013 _Time = time; 00014 } 00015 void DATA::set_temperature(double temp) 00016 { 00017 _Temperature = temp; 00018 } 00019 void DATA::set_pressure(double pressure) 00020 { 00021 _Pressure = pressure; 00022 } 00023 void DATA::set_light(double light) 00024 { 00025 _Light = light; 00026 } 00027 00028 void DATA::set_all_zero() 00029 { 00030 _Time = 0; 00031 _Temperature = 0; 00032 _Pressure = 0; 00033 _Light = 0; 00034 } 00035 00036 //Getters 00037 int DATA::get_time() 00038 { 00039 return _Time; 00040 } 00041 double DATA::get_temperature() 00042 { 00043 return _Temperature; 00044 } 00045 double DATA::get_pressure() 00046 { 00047 return _Pressure; 00048 } 00049 double DATA::get_light() 00050 { 00051 return _Light; 00052 }
Generated on Sun Jul 31 2022 05:12:27 by
1.7.2