DASD

Revision:
0:2abe3b8113cc
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/INPUTS.cpp	Sat Jan 21 15:59:21 2017 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+#include "INPUTS.h"
+
+INPUTS::INPUTS (PinName pot_hum_pin, PinName pot_temp_pin): pot_vlaga(pot_hum_pin), pot_temp(pot_temp_pin){
+   get_hum_req();
+   get_temp_req();
+    }
+
+float INPUTS::get_hum_req(){
+   req_hum = pot_vlaga.read()*99;
+   return req_hum;
+    }
+    
+float INPUTS::get_temp_req(){
+    req_temp = (15*pot_temp.read())+20;
+    return req_temp;
+    }
\ No newline at end of file