issues
search
RobTillaart
/
ADC08XS
Arduino library for ADC082S, ADC084S, ADC102S, ADC104S, ADC122S, ADC124S, 8, 10, 12 bits, 2 or 4 channel ADC (SPI).
MIT License
3
stars
0
forks
source link
implement int16 deltaRead(chan1, chan2)
#2
Closed
RobTillaart
closed
9 months ago
RobTillaart
commented
9 months ago
Some thoughts
differential read
int deltaRead(uint8_t chanA = 0, uint8_t chanB = 1)
returns int(read(A)) - int(read(B)) so can be negative.
comparator function:
bool comparator(uint8_t chanA, uint8_t chanB)
returns read(A) >= read(B)
void setComparatorReference(uint16_t value);
bool comparator(uint8_t chanA = 0)
returns read(A) >=reference value
RobTillaart
commented
9 months ago
done 0.1.1
comparator not done.
Some thoughts
differential read
comparator function: