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

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

Revision:
16:7ac462ba84ac
Parent:
15:69991c038abe
--- a/LM75B.cpp	Fri May 02 17:28:17 2014 +0000
+++ b/LM75B.cpp	Fri May 30 19:04:36 2014 +0000
@@ -191,11 +191,13 @@
     return value * 0.125;
 }
 
+#ifdef MBED_OPERATORS
 LM75B::operator float()
 {
     //Return the current temperature reading
     return temp();
 }
+#endif
 
 char LM75B::read8(char reg)
 {