DS18B20.configure

Name

 * DS18B20.configure

Description
Writes configuration data to a DS18x20 device on a 1-wire bus.

If there are multiple devices on the 1-wire bus, then the address of the specific device must already have been set or read into the table of ROM codes by using the DS18B20.find function before this function is used.
 * Since Beta 9.5

Syntax
u8 DS18B20.configure(u8 pin, u8 num, u8 TH, u8 TL, u8 res)
 * Parameters:
 * pin = pin number where 1-wire bus is connected.
 * num = index of the sensor or SKIPROM ( = 0 ) if there is only one sensor on the bus.
 * TH = Alarm Trigger High
 * TL = Alarm Trigger Low
 * res = resolution (RES12BIT, RES11BIT, RES10BIT or RES9BIT)


 * Returns/Output:
 * TRUE ( = 1 ) if configuration OK, otherwise FALSE ( = 0 )

Example
DS18B20.configure(0, 0, 0, 0, RES12BIT);
 * Device is connected on pin 0.
 * Device is alone (first position = 0) on the bus.
 * No high alarm needed.
 * No low alarm needed.
 * Max. resolution.