For amx31820

Dependencies:   OneWire

Dependents:   MAX31820

Fork of DS1820 by Zoltan Hudak

Revision:
14:f375b7de7856
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Sf18B20.h	Mon Apr 30 07:54:54 2018 +0000
@@ -0,0 +1,18 @@
+#ifndef SfDS1820_H_
+#define SfDS1820_H_
+#include "DS1820.h"
+class   Sf18B20 : public DS1820
+{
+public:
+    Sf18B20(PinName pin);
+    bool Run(unsigned period);
+    void Stop(void);
+    double Read18B20(void);
+    bool DataReady(void);
+private:
+    Ticker flipper;
+    double data18B20;
+    bool dataready;
+    void flip(void);
+};
+#endif