Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of Main_V3_Old by
Diff: DS18B20.cpp
- Revision:
- 5:ae57f8977663
- Parent:
- 4:784c4b53a3d4
--- a/DS18B20.cpp Mon Oct 02 13:20:42 2017 +0000
+++ b/DS18B20.cpp Mon Nov 20 13:12:03 2017 +0000
@@ -81,23 +81,23 @@
{
case nineBit: // 0.5 deg C increments
read_temp &= 0xFFF8; // bits 2,1,0 are undefined
- pc_ds18B20.traceOut("9 bit resolution ...\r\n");
+ // pc_ds18B20.traceOut("9 bit resolution ...\r\n");
break;
case tenBit: // 0.25 deg C increments
read_temp &= 0xFFFC; // bits 1,0 are undefined
- pc_ds18B20.traceOut("10 bit resolution ...\r\n");
+ //pc_ds18B20.traceOut("10 bit resolution ...\r\n");
break;
case elevenBit: // 0.125 deg C increments
read_temp &= 0xFFFE; // bit 0 is undefined
- pc_ds18B20.traceOut("11 bit resolution ...\r\n");
+ //pc_ds18B20.traceOut("11 bit resolution ...\r\n");
break;
case twelveBit: // 0.0625 deg C increments
- pc_ds18B20.traceOut("12 bit resolution ...\r\n");
+ //pc_ds18B20.traceOut("12 bit resolution ...\r\n");
break;
}
float realTemp = (float)read_temp/16 ;
- pc_ds18B20.traceOut("TEMP_READ/REAL TEMP: %f \r\n", realTemp);
+ //pc_ds18B20.traceOut("TEMP_READ/REAL TEMP: %f \r\n", realTemp);
return realTemp;
}
\ No newline at end of file
