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

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

Files at this revision

API Documentation at this revision

Comitter:
neilt6
Date:
Fri May 30 19:04:36 2014 +0000
Parent:
15:69991c038abe
Commit message:
Added MBED_OPERATORS check to implementation

Changed in this revision

LM75B.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 69991c038abe -r 7ac462ba84ac LM75B.cpp
--- 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)
 {