Adds support for the Maxim DS18B20 thermometer.
This must be added to the ('Dallas') one wire bus.
The thermometer can either be connected using two pins:
whereby the two outer pins are both connected to ground and the middle pin is the bus signal pin. This is called 'parasitic' mode since the thermometer uses the signal pin to power itself. The drawback of this mode is that it takes longer to read a temperature value.
Alternatively it can connected using three pins:
whereby the thermometer has a seperate power line. The advantage of this mode is that it is faster to read a temperature value at the price of an extra 'wire'.
Note that you can change between the two connection methods without recompiling your code since WebbotLib asks the thermometer which of the two wiring methods have been used.
- dumpROM - Dumps the complete ROM ID of the device to the specified output stream.
- exists - Searches the bus to discover whether this device is plugged in.
- found - Tests whether this device was found when the bus was initialised.
- dump - Dump the last read sensor values to the standard output device.
- dumpTo - Dump the contents of the sensor to the specified output stream.
- getCelsius - Returns the temperature from the last read() in celsius.
- getTimeLastRead - Returns the value of the clock at the time when the sensor was last read.
- read - Read the sensor and store its current values. Returns TRUE if the sensor has been read successfully, or FALSE if the sensor is busy in which case the read values are unchanged.
- Temperature::getFahrenheit - Convert a temperature from celsius to fahrenheit.