LM75B Digital temperature sensor and thermal watchdog

Dependents:   testLM75B testSensor TCPSocket_Client

Files at this revision

API Documentation at this revision

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
diff -r 61987c319606 -r f7dc7b327a4a LM75B.h
--- 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) ;
     }