adafruit / Adafruit-Raspberry-Pi-Python-Code

Adafruit library code for Raspberry Pi
1.43k stars 686 forks source link

ADS1x15 mistake #36

Closed pedvide closed 4 years ago

pedvide commented 11 years ago

Hi, there's a mistake in the register definitions in file Adafruit_ADS1x15.py. For the ADS1015 it says in line 57: __ADS1015_REG_CONFIG_DR_920SPS = 0x0050 In binary that's 0000 0000 0101 0000. This sets the DR to 490SPS and the COMP_MODE to window mode! It should be __ADS1015_REG_CONFIG_DR_920SPS = 0x0060

I have also updated the library to include most functions of both chips. I wrote a post in the forum, that hasn't receive much attention, but I think it would be great if you added my changes to the library. http://forums.adafruit.com/viewtopic.php?f=19&t=38466

ladyada commented 4 years ago

Thank you for the Issue! This library has been deprecated in favor of our python3 Blinka library. We have replaced all of the libraries that use this repo with CircuitPython libraries that are Python3 compatible, and support a wide variety of single board/linux computers!

Visit https://circuitpython.org/blinka for more information

CircuitPython has support for almost 200 different drivers, and a as well as FT232H support for Mac/Win/Linux!