modify the write function for temperature update If you use update temperature, you modify the repeat condition when write function use - read16() -> m_I2C.write(m_Addr, &reg, 1); //stop condition - read16() -> m_I2C.write(m_Addr, &reg, 1,1); //repeat condition

Fork of LM75B by Neil Thiessen

Revision:
15:69991c038abe
Parent:
14:3a44310726fe
--- a/LM75B.h	Tue Nov 12 17:22:12 2013 +0000
+++ b/LM75B.h	Fri May 02 17:28:17 2014 +0000
@@ -100,8 +100,9 @@
      * @param sda The I2C data pin.
      * @param scl The I2C clock pin.
      * @param addr The I2C slave address (defaults to ADDRESS_0).
+     * @param hz The I2C bus frequency (defaults to 400kHz).
      */
-    LM75B(PinName sda, PinName scl, Address addr = ADDRESS_0);
+    LM75B(PinName sda, PinName scl, Address addr = ADDRESS_0, int hz = 400000);
 
     /** Probe for the LM75B and indicate if it's present on the bus
      *