A feature complete driver for the LM75B temperature sensor from NXP.
Dependents: app-board-TempAlarm LM75B IoTWorkshopSensors EduRobot ... more
Diff: LM75B.h
- Revision:
- 15:69991c038abe
- Parent:
- 14:3a44310726fe
diff -r 3a44310726fe -r 69991c038abe LM75B.h --- 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 *