@@ -266,6 +266,38 @@ After one of these calls you need to call
266266See [ examples] ( https://github.com/RobTillaart/ADS1X15/blob/master/examples/ADS_differential/ADS_differential.ino ) .
267267
268268
269+ #### lastRequestMode
270+
271+ Since 0.3.12 the library tracks the last request mode, single pin or differential.
272+ This variable is set at the moment of request, and keeps its value until a new
273+ request is made. This implies that the value / request can be quite old.
274+
275+ Values >= 0x10 are differential, values < 0x10 are single pin.
276+
277+ - ** uint8_t lastRequest()** returns one of the values below.
278+
279+ | Value | Description | Notes |
280+ | :-------:| :-----------------------------| :--------|
281+ | 0xFF | no (invalid) request made | after call constructor.
282+ | 0x00 | single pin 0 |
283+ | 0x01 | single pin 1 |
284+ | 0x02 | single pin 2 |
285+ | 0x03 | single pin 3 |
286+ | 0x10 | differential pin 1 0 |
287+ | 0x30 | differential pin 3 0 |
288+ | 0x31 | differential pin 3 1 |
289+ | 0x32 | differential pin 3 2 |
290+
291+
292+ Please note that (for now) the function does not support a descriptive return value
293+ for the following two requests:
294+ - ** readADC_Differential_0_2()** ADS1x15 only - in software (no async equivalent)
295+ - ** readADC_Differential_1_2()** ADS1x15 only - in software (no async equivalent)
296+
297+ As these are emulated in software by two single pin calls, the state would be
298+ one of the two single pin values.
299+
300+
269301#### ReadADC continuous mode
270302
271303To use the continuous mode you need call three functions:
@@ -430,15 +462,15 @@ If, "Wire1" is used, you need to add "&Wire1" in the constructor.
430462
431463#### Could
432464
433- - More examples ?
465+ - More examples
434466- SMB alert command (00011001) on I2C bus?
435467- sync order .h / .cpp
436468
437469
438470#### Wont (unless requested)
439471
440472- type flag?
441- - constructor for ADS1X15?
473+ - constructor for ADS1X15? No as all types are supported.
442474
443475
444476## Support
0 commit comments