LM75B Digital temperature sensor and thermal watchdog
Dependents: testLM75B testSensor TCPSocket_Client
Diff: LM75B.h
- Revision:
- 2:f7dc7b327a4a
- Parent:
- 1:61987c319606
--- 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) ; }