You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The library is backwards compatible with version 3.6.0
16
+
17
+
MAJOR: async modus
18
+
------------------
19
+
- Added - private bool waitForConversion.
20
+
This boolean is default set to true in the Constructor to keep the library backwards compatible. If this flag is true calls to requestTemperatures(), requestTemperaturesByAddress() et al, will be blocking with the appropiate time specified (in datasheet) for the resolution used. If the flag is set to false, requestTemperatures() et al, will return immediately after the conversion command is send over the 1-wire interface. The programmer is responsible to wait long enough before reading the temperature values. This enables the application to do other things while waiting for a new reading, like calculations, update LCD, read/write other IO lines etc. See examples.
21
+
22
+
- Added - void setWaitForConversion(bool);
23
+
To set the flag to true or false, depending on the modus needed.
24
+
25
+
- Added - bool getWaitForConversion(void);
26
+
To get the current value of the flag.
27
+
28
+
- Changed - void requestTemperatures(void);
29
+
Added a test (false == waitForConversion) to return immediately after the conversion command instead of waiting until the conversion is ready.
Changed return type from void to bool. The function returns false if the device identified with [deviceIndex] is not found on the bus and true otherwise.
Changed return type from void to bool. The function returns false if the device identified with [deviceAddress] is not found on the bus and true otherwise.
66
+
Added code to handle the DS18S20 which has a 9 bit resolution separately.
67
+
Changed code so the blocking delay matches the bitResolution set in the device with deviceAddress.
Changed return type from void to bool. The function returns false if the device identified with [deviceIndex] is not found on the bus and true otherwise.
0 commit comments