Browse Source

Fix I2C address of MCP4728 on LPC176x (#16578)

pull/1/head
dagorel 5 years ago
committed by Scott Lahteine
parent
commit
bda4957f9b
  1. 2
      Marlin/src/feature/dac/dac_mcp4728.cpp

2
Marlin/src/feature/dac/dac_mcp4728.cpp

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

Loading…
Cancel
Save