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
Diff: DATA.cpp
- Revision:
- 8:0e4481b64353
- Child:
- 10:46946784326d
diff -r dfe19413fdc2 -r 0e4481b64353 DATA.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/DATA.cpp Tue Dec 19 13:26:54 2017 +0000
@@ -0,0 +1,42 @@
+#include "mbed.h"
+#include "DATA.hpp"
+
+
+DATA::DATA()
+{
+
+}
+
+void DATA::set_time(float time)
+{
+ _Time = time;
+}
+void DATA::set_temperature(float temp)
+{
+ _Temperature = temp;
+}
+void DATA::set_pressure(float pressure)
+{
+ _Pressure = pressure;
+}
+void DATA::set_light(float light)
+{
+ _Light = light;
+}
+//Getters
+float DATA::get_time()
+{
+ return _Time;
+}
+float DATA::get_temperature()
+{
+ return _Temperature;
+}
+float DATA::get_pressure()
+{
+ return _Pressure;
+}
+float DATA::get_light()
+{
+ return _Light;
+}