A feature complete driver for the LM75B temperature sensor from NXP.

Fork of LM75B by Neil Thiessen

Revision:
15:69991c038abe
Parent:
14:3a44310726fe
Child:
16:7ac462ba84ac
--- a/LM75B.cpp	Tue Nov 12 17:22:12 2013 +0000
+++ b/LM75B.cpp	Fri May 02 17:28:17 2014 +0000
@@ -16,10 +16,10 @@
 
 #include "LM75B.h"
 
-LM75B::LM75B(PinName sda, PinName scl, Address addr) : m_I2C(sda, scl), m_ADDR((int)addr)
+LM75B::LM75B(PinName sda, PinName scl, Address addr, int hz) : m_I2C(sda, scl), m_ADDR((int)addr)
 {
-    //Set the I2C bus frequency to 400kHz
-    m_I2C.frequency(400000);
+    //Set the I2C bus frequency
+    m_I2C.frequency(hz);
 }
 
 bool LM75B::open()