LM75B Digital temperature sensor and thermal watchdog
Dependents: testLM75B testSensor TCPSocket_Client
Revision 2:f7dc7b327a4a, committed 2016-07-06
- Comitter:
- Rhyme
- Date:
- Wed Jul 06 07:28:18 2016 +0000
- Parent:
- 1:61987c319606
- Commit message:
- sample code in the header had errors and they have been fixed
Changed in this revision
| LM75B.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/LM75B.h Wed Jul 06 07:11:23 2016 +0000
+++ b/LM75B.h Wed Jul 06 07:28:18 2016 +0000
@@ -39,8 +39,8 @@
LM75B lm75b(PIN_SDA, PIN_SCL, LM75B_I2C_ADDRESS) ;
while(1) {
- itemp = lm75b->temp() ;
- lm75b->getTemp(&ftemp) ;
+ itemp = lm75b.temp() ;
+ lm75b.getTemp(&ftemp) ;
printf("Temp = %d C degree, %.3f C degree\n", itemp, ftemp) ;
wait(1) ;
}