-
Notifications
You must be signed in to change notification settings - Fork 2
ConversionMillis
Arnd edited this page Dec 3, 2016
·
1 revision
This public variable is set to the number of milliseconds that the current conversions take place. It defaults to the maximum value and is updated each time a call to SetDeviceResolution() is made. Since only one value, the most recent, is stored and it is possible to set various thermometers to different resolutions it is possible to have an incorrect value.
The conversion times used for the various precision settings are as follows:
Precision | Milliseconds |
12 bits | 750 ms |
11 bits | 375 ms |
10 bits | 188 ms |
9 bits | 94 ms |
const uint8_t ONE_WIRE_PIN = 8; // 1-Wire microLAN pin
DSFamily_Class ds(ONE_WIRE_PIN); // Instantiate
ds.ScanForDevices(); // find all devices
Serial.print("Conversion time is "); // display results
Serial.print(ds.ConversionMillis); // show value
Serial.prinln(" milliseconds.");
Overview
Installation
Class Instantiation
ScanForDevices()
ReadDeviceTemp()
DeviceStartConvert()
GetDeviceResolution()
SetDeviceResolution()
Calibrate()
GetDeviceCalibration()
SetDeviceCalibration()
GetDeviceROM()
crc8()
MinTemperature()
MaxTemperature()
AvgTemperature()
StdDevTemperature()