Dallas' DS1820 family temperature sensor. For more details see [https://developer.mbed.org/users/hudakz/code/DS1820/wiki/Homepage]

Fork of DS1820 by Zoltan Hudak

Revision:
0:433af64321d5
Child:
4:adf4e7972d73
diff -r 000000000000 -r 433af64321d5 DS1820.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/DS1820.h	Sun Mar 15 14:16:16 2015 +0000
@@ -0,0 +1,22 @@
+#ifndef DS1820_H_
+    #define DS1820_H_
+
+    #include <OneWire.h>
+
+class   DS1820
+{
+    OneWire oneWire;
+    uint8_t present;
+    uint8_t type_s;
+    uint8_t data[12];
+    uint8_t addr[8];
+    float   toFloat(uint16_t word);
+public:
+    DS1820(PinName pin);
+    DS1820(char model, PinName pin);
+    bool   begin(void);
+    void   startConversion(void);
+    float  read(void);
+
+};
+#endif /* DS1820_H_ */