ul-gh / PiPyADC

Python classes for interfacing Texas Instruments analog-to-digital converters with the Raspberry Pi
GNU Lesser General Public License v2.1
69 stars 27 forks source link

Initialization causes software crash when board is not connected #17

Closed kizniche closed 2 years ago

kizniche commented 5 years ago

When initializing the ADS1256 class (adc = ADS1256()), my software crashes without an error.

I've briefly attempted to diagnose this issue, however I don't receive any errors when this happens, making it difficult to debug. If you have any recommendations for what might be the issue or how I can check if the board is connected before attempting initialization, it would be most appreciated.

kizniche commented 5 years ago

As a note, in case it's relevant, I've performed a minor edit to the code for python 3 compatibility.

ul-gh commented 2 years ago

Hi,

with version 2 of this code, I added proper error handling, please have a look and let me know if there are still any issues.

Best wishes, Ulrich