Hello world code for PCT2075 and LM75B component class library. The PCT2075 is a temperature-to-digital converter featuring +/-1 degree-C accuracy over -25 degree-C to +100 degree-C range. It uses an on-chip band gap temperature sensor and Sigma-Delta A-to-D conversion technique with an overtemperature detection output that is a drop-in replacement for other LM75 series thermal sensors.
Diff: PCT2075/base_class/I2CTempSensor.cpp
- Revision:
- 1:5398b0799e20
- Parent:
- 0:3c3d4c5ac8e9
--- a/PCT2075/base_class/I2CTempSensor.cpp Fri Feb 27 10:47:24 2015 +0000
+++ b/PCT2075/base_class/I2CTempSensor.cpp Fri Feb 27 12:35:30 2015 +0000
@@ -28,7 +28,7 @@
i2c.write( adr, command, 2 );
}
-short I2CTempSensor::read( void )
+short I2CTempSensor::read16( void )
{
char command[ 2 ];