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.

/media/uploads/richardlane/ds18b20_terminal.png

Files at this revision

API Documentation at this revision

Comitter:
richardlane
Date:
Fri Jul 05 22:35:43 2013 +0000
Parent:
0:769f9b2b30d5
Commit message:
Fixed Doxygen issue.

Changed in this revision

DS18B20.h Show annotated file Show diff for this revision Revisions of this file
diff -r 769f9b2b30d5 -r 00972ed59ba3 DS18B20.h
--- 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 {