For amx31820

Dependencies:   OneWire

Dependents:   MAX31820

Fork of DS1820 by Zoltan Hudak

Sf18B20.h

Committer:
schnf30
Date:
2018-04-30
Revision:
14:f375b7de7856

File content as of revision 14:f375b7de7856:

#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