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.
Fork of LM75B by
Revision 14:3a44310726fe, committed 2013-11-12
- Comitter:
- neilt6
- Date:
- Tue Nov 12 17:22:12 2013 +0000
- Parent:
- 13:27c19044ace6
- Child:
- 15:69991c038abe
- Commit message:
- open() no longer resets the device
Changed in this revision
| LM75B.cpp | Show annotated file Show diff for this revision Revisions of this file |
| LM75B.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/LM75B.cpp Thu Nov 07 17:42:41 2013 +0000
+++ b/LM75B.cpp Tue Nov 12 17:22:12 2013 +0000
@@ -26,11 +26,6 @@
{
//Probe for the LM75B using a Zero Length Transfer
if (!m_I2C.write(m_ADDR, NULL, 0)) {
- //Reset the device to default configuration
- write8(REG_CONF, 0x00);
- write16(REG_THYST, 0x4B00);
- write16(REG_TOS, 0x5000);
-
//Return success
return true;
} else {
--- a/LM75B.h Thu Nov 07 17:42:41 2013 +0000
+++ b/LM75B.h Tue Nov 12 17:22:12 2013 +0000
@@ -103,7 +103,7 @@
*/
LM75B(PinName sda, PinName scl, Address addr = ADDRESS_0);
- /** Probe for the LM75B and reset it to default configuration if present
+ /** Probe for the LM75B and indicate if it's present on the bus
*
* @returns
* 'true' if the device exists on the bus,
