Skip to content
This repository was archived by the owner on Dec 20, 2018. It is now read-only.

Comparator mode doesn't work for ADS1015 #3

Closed
caternuson opened this issue Oct 10, 2017 · 1 comment
Closed

Comparator mode doesn't work for ADS1015 #3

caternuson opened this issue Oct 10, 2017 · 1 comment

Comments

@caternuson
Copy link
Contributor

caternuson commented Oct 10, 2017

For the ADS1015, which is 12 bit, the 12bit values used for comparison sit in the high bits of the registers. Need to << 4 them.

See "Lo_thresh AND Hi_thresh REGISTERS" section of datasheet.

For ref, here's where it's done in the Arduino version of the lib:
https://github.com/adafruit/Adafruit_ADS1X15/blob/master/Adafruit_ADS1015.cpp#L335

@caternuson
Copy link
Contributor Author

Hi! We are deprecating this library. This issue is either fixed or may need updating for the new library:
https://github.com/adafruit/Adafruit_CircuitPython_ADS1x15

Please see issue summary here:
#13

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant