Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: STM32_Button_Interrupt_dla_taty
Diff: Sf18B20.h
- 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