![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Dallas
Diff: Dallas.h
- Revision:
- 0:c2bc9c47c922
diff -r 000000000000 -r c2bc9c47c922 Dallas.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Dallas.h Thu Sep 22 17:41:33 2016 +0000 @@ -0,0 +1,22 @@ +#ifndef Dallas_H +#define Dallas_H + +#include "mbed.h" +#include "DS18B20.h" + +class Dallas{ + static const PinName pin = D10; + static const bool crcOn; + static const bool useAddr; + static const bool parasitic; + static const unsigned char* Address; + + DS18B20 _DS18B20; + public: + Dallas(); + ~Dallas(); + float lerTemperatura(DS18B20 _DS18B20); + +}; + +#endif \ No newline at end of file