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
- Committer:
 - thomasmorris
 - Date:
 - 2018-01-09
 - Revision:
 - 50:3d61ca637399
 - Parent:
 - 38:8d86e0d8a816
 
File content as of revision 50:3d61ca637399:
#include "mbed.h"
#include <string>
#include "rtos.h"
#include "DATA.hpp"
DATA::DATA()
{
   
}
   
void DATA::set_time(int time)
{
    _Time = time;
}
void DATA::set_temperature(double temp)
{
    _Temperature = temp;   
}
void DATA::set_pressure(double pressure)
{
    _Pressure = pressure;   
}
void DATA::set_light(double light)
{
    _Light = light;
}
void DATA::set_all_zero()
{
    _Time = 0;
    _Temperature = 0;
    _Pressure = 0;
    _Light = 0;
}
//Getters
int DATA::get_time()
{
    return _Time;   
}
double DATA::get_temperature()
{
    return _Temperature;   
}
double DATA::get_pressure()
{
    return _Pressure;   
}
double DATA::get_light()
{
    return _Light;   
}