Hello everyone,
I'm currently trying to output to two of the DAC's separeately. I based my code off of the Adafruit library and have the pins wired correctly as they work individually. My main question is basically when outputting to two DAC's separately but synchronously would this be the correct code for that? Or would I just do setVoltage from the library in two separate calls. Heres the two examples I have:
Double Wire.begin()
Wire.begin(0x62);
Wire.write(0x40);
Wire.write(rightVoltage / 16); // Upper data bits (D11.D10.D9.D8.D7.D6.D5.D4)
Wire.write((rightVoltage % 16) << 4);
Wire.begin(0x63);
Wire.write(leftVoltage / 16); // Upper data bits (D11.D10.D9.D8.D7.D6.D5.D4)
Wire.write((lefttVoltage % 16) << 4);
digitalWrite(13, LOW);
Wire.endTransmission();
Double .setVoltage
dacLeft.setVoltage(leftVoltage);
dacRight.setVoltage(rightVoltage);