I'm working on a project involving an ADS1115 4 channel ADC and I made the pcb design error of not connecting it to the hardware I2C pins, thinking that it would be easy peasy to make software i2c work.
I'm using an ATMEGA328-AU and have the ADS1115 connected to A2 and A3 (PC2,PC3).
The design is final (for this iteration) and the board manufactured and all soldered up in 4 layers, so I have to make it work as it is.
I have been trying to get the adafruit library to work in some mutant form with the SoftWire library, but so far no luck.
Does anyone know if an easy way to get this going? I only need the functionality of the single ended reading.
Yes I have been trying out SoftWire which is based on SoftI2CMaster, as I understand it.
I think my concern is that I'm not sure how to use software I2C.
I've tried using defines and i2c related functions that are outpide the ADS1115 object from the adafruit library using hardware i2c, and the readSingleEnded() function, edited to non-object form.
The program runs, but I get no data from the chip. If there is an easy way to go about it, I'd appreciate a pointer in the right direction.
sketch_nov07a:9:26: error: no matching function for call to 'SoftWire::SoftWire()'
SoftWire Wire = SoftWire();
^
exit status 1
no matching function for call to 'SoftWire::SoftWire()'
BTW, SoftWire has an example, how to initialize a class, here: