Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: app-board-TempAlarm LM75B IoTWorkshopSensors EduRobot ... more
Revision 16:7ac462ba84ac, committed 2014-05-30
- 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 |
--- 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)
{
LM75B Temperature Sensor
LPC General Purpose Shield OM13082