SOFT253 Coursework Weather Reader

Dependencies:   LPS25H hts221

Fork of Soft253-WeatherReader by Joseph Dumpleton

Revision:
1:8585a8d417dc
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/DataGenerator.cpp	Fri Apr 21 17:33:38 2017 +0000
@@ -0,0 +1,15 @@
+#include <stdlib.h>
+#include "DataGenerator.h"
+
+void DataGenerator::ReadTempHumi(float *pTemp, float *pHumi){
+    *pTemp = rand() % 3 + 22;
+    *pHumi = rand() % 20 + 40;
+}
+
+float DataGenerator::pressure(){
+    return (rand() % 20 + 40);
+}
+
+float DataGenerator::temperature(){
+    return (rand() % 3 + 22);
+}
\ No newline at end of file