![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
temperature sensor with uOLED 96 g1 & GSM Support
Dependencies: OLED160G1 mbed uOLED
Fork of DS18B20 by
Diff: DS18B20.h
- Revision:
- 1:b2ea1e9d90df
- Parent:
- 0:03ec282c2908
diff -r 03ec282c2908 -r b2ea1e9d90df DS18B20.h --- a/DS18B20.h Fri Jan 29 19:01:56 2010 +0000 +++ b/DS18B20.h Wed Oct 31 12:26:00 2012 +0000 @@ -1,22 +1,23 @@ -#ifndef _DS18B20_ -#define _DS18B20_ - -#include <stdint.h> -#include "mbed.h" - -// Device Faimly ID and Setial number information -typedef union { - uint8_t rom[8]; - struct { - uint8_t familyCode; - uint8_t serialNo[6]; - uint8_t CRC; - } BYTES; -} ROM_Code_t; - -ROM_Code_t ReadROM() ; - -// temperature is store as 7.4 fixed point format (assuming 12 bit conversion) -void displayTemperature(Serial& s) ; - +#ifndef _DS18B20_ +#define _DS18B20_ + +#include <stdint.h> +#include "mbed.h" + +// Device Faimly ID and Setial number information +typedef union { + uint8_t rom[8]; + struct { + uint8_t familyCode; + uint8_t serialNo[6]; + uint8_t CRC; + } BYTES; +} ROM_Code_t; + +ROM_Code_t ReadROM() ; + +// temperature is store as 7.4 fixed point format (assuming 12 bit conversion) +void displayTemperature(Serial& s) ; +void showTemperature(float *f); + #endif \ No newline at end of file