library for using LM61.

Dependents:   Thermometer TMP36_Anlog_temperature_read

Please connect AnalogIn pin with vout pin of LM61.

Revision:
0:ba8b3a1b95ac
Child:
2:7fe5f722fc6b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LM61.cpp	Wed Jan 14 08:42:11 2015 +0000
@@ -0,0 +1,9 @@
+#include "LM61.h"
+
+LM61::LM61(PinName lm61, float vcc) : _lm61(lm61){
+    _vcc = vcc;
+}
+
+float LM61::GetTemp() {
+    return (_lm61.read()*_vcc - 0.6f) * 100;
+}
\ No newline at end of file