For Hepta-Sat Lite

Revision:
0:f74735cb01bc
Child:
1:a23c2cd65379
diff -r 000000000000 -r f74735cb01bc HeptaTemp.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/HeptaTemp.h	Thu Jul 20 02:15:14 2017 +0000
@@ -0,0 +1,34 @@
+#ifndef MBED_HEPTA2TEMP_H
+#define MBED_HEPTA2TEMP_H
+#include"mbed.h"
+
+class HeptaTemp
+{
+public:
+    HeptaTemp(PinName pin);
+    void temp_sense(float* temp);
+    void temp_sense_u16(char* temp_u16, int *dsize);
+
+private:
+//resistance
+    float R1 ;
+    float R2 ;
+    float R3;
+    float R4;
+    float R5;
+    float Pt;
+    float R_1;
+    float R_2;
+//current
+    float I;
+//voltage
+    float Vref;
+    
+//temperature coefficient
+    float ce;
+    
+    AnalogIn _pin;
+
+};
+
+#endif