A simply library for the LM75B I2C temperature sensor (forked from "chris/LM75B").
Fork of LM75B by
Revision 2:1d73b9205f1b, committed 2016-02-03
- Comitter:
- co657_frmb
- Date:
- Wed Feb 03 02:15:03 2016 +0000
- Parent:
- 1:6a70c9303bbe
- Commit message:
- a small update perhaps
Changed in this revision
LM75B.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/LM75B.cpp Fri Oct 26 21:40:51 2012 +0000 +++ b/LM75B.cpp Wed Feb 03 02:15:03 2016 +0000 @@ -22,5 +22,5 @@ i2c.write( LM75B_ADDR, cmd, 1); // Send command string i2c.read( LM75B_ADDR, cmd, 2); // Send command string - return ( float((cmd[0]<<8)|cmd[1]) / 256.0 ); + return ( float((cmd[0]<<8)|cmd[1]) / (float)256.0 ); }