DS18B20
Fork of DS18B20 by
Diff: DS18B20.h
- Revision:
- 0:d76559dea000
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/DS18B20.h Sun Jun 23 15:18:52 2013 +0000 @@ -0,0 +1,18 @@ +#ifndef DS18B20_h +#define DS18B20_h + +#include "mbed.h" +#include "Onewire.h" + +class DS18B20{ + +public: + DS18B20(PinName oneBus); + void broadcastConvert(); + float getTemperature(unsigned char* address); + void printSingleAddress(); + +private: + Onewire oneBus_; +}; +#endif \ No newline at end of file