Neil Thiessen / LM75B

Dependents:   app-board-TempAlarm LM75B IoTWorkshopSensors EduRobot ... more

Files at this revision

API Documentation at this revision

Comitter:
neilt6
Date:
Tue Nov 12 17:22:12 2013 +0000
Parent:
13:27c19044ace6
Child:
15:69991c038abe
Commit message:
open() no longer resets the device

Changed in this revision

LM75B.cpp Show annotated file Show diff for this revision Revisions of this file
LM75B.h Show annotated file Show diff for this revision Revisions of this file
--- a/LM75B.cpp	Thu Nov 07 17:42:41 2013 +0000
+++ b/LM75B.cpp	Tue Nov 12 17:22:12 2013 +0000
@@ -26,11 +26,6 @@
 {
     //Probe for the LM75B using a Zero Length Transfer
     if (!m_I2C.write(m_ADDR, NULL, 0)) {
-        //Reset the device to default configuration
-        write8(REG_CONF, 0x00);
-        write16(REG_THYST, 0x4B00);
-        write16(REG_TOS, 0x5000);
-
         //Return success
         return true;
     } else {
--- a/LM75B.h	Thu Nov 07 17:42:41 2013 +0000
+++ b/LM75B.h	Tue Nov 12 17:22:12 2013 +0000
@@ -103,7 +103,7 @@
      */
     LM75B(PinName sda, PinName scl, Address addr = ADDRESS_0);
 
-    /** Probe for the LM75B and reset it to default configuration if present
+    /** Probe for the LM75B and indicate if it's present on the bus
      *
      * @returns
      *   'true' if the device exists on the bus,