denkitronik / ADS1118

Arduino Library for Texas Instruments ADS1118 - 16-Bit Analog-to-Digital Converter with internal Reference and Temperature Sensor
MIT License
20 stars 14 forks source link

SPI begin transaction #10

Open jlhuerfanor opened 3 years ago

jlhuerfanor commented 3 years ago

I've seen that for AVR hardware SPI the driver doesn't call SPI.beginTransaction, therefore in case you are working with multiple SPI devices, transaction settings could be overriden by another device. I've tested this using Ethernet Shield and two ADS1118, and after each ethernet call the adc gets misconfigured. I've suggest to add the instruction into AVR blocks too.

Arson-Oakwood commented 1 year ago

Did not want to create new issue, and question is relevant to this. How can I use 2 ADS1118 modules with single SPI bus as is described in corresponding documentation with your library. There is no function in your library documentation or text explaining this, I can't deduce usage form .h and .cpp file, and afraid to overwrite it over your library because I can intervene in CS handling and just break everything. So can I (and how if able) use your library to interact with two ADS1118 modules via single SPI bus?