Fix I2C address of MCP4728 on LPC176x (#16578)

This commit is contained in:
dagorel 2020-01-16 02:15:54 +01:00 committed by Scott Lahteine
parent f10d3564e1
commit bda4957f9b

View file

@ -43,7 +43,7 @@ xyze_uint_t mcp4728_values;
*/ */
void mcp4728_init() { void mcp4728_init() {
Wire.begin(); Wire.begin();
Wire.requestFrom(int(DAC_DEV_ADDRESS), 24); Wire.requestFrom(I2C_ADDRESS(DAC_DEV_ADDRESS), 24);
while (Wire.available()) { while (Wire.available()) {
char deviceID = Wire.read(), char deviceID = Wire.read(),
hiByte = Wire.read(), hiByte = Wire.read(),