Interface for Dallas DS18B20 digital thermometer device.
Dependents: WIZ550io_Xively_Demo ESP8266-WEB-Mbed-Controller BrewCtrl Brew_Keg ... more
The output from the example program should look like this.
Diff: DS18B20.h
- Revision:
- 1:00972ed59ba3
- Parent:
- 0:769f9b2b30d5
--- a/DS18B20.h Fri Jul 05 22:14:08 2013 +0000 +++ b/DS18B20.h Fri Jul 05 22:35:43 2013 +0000 @@ -51,7 +51,8 @@ enum RESOLUTION { RES_9_BIT=0x1f, /**< 93.75ms */ RES_10_BIT=0x3f, /**< 187.5ms */ RES_11_BIT=0x5f, /**< 375ms */ - RES_12_BIT=0x7f }; /**< 750ms */ + RES_12_BIT=0x7f /**< 750ms */ + }; /** Holds 8-byte internal ROM */ typedef union {