Marlin-RC_Deltaprintr/Marlin/dac_mcp4728.cpp
/**
 * Write all input resistor values to EEPROM using SequencialWrite method.
 * This will update both input register and EEPROM value
 * This will also write current Vref, PowerDown, Gain settings to EEPROM
 */
Write all input resistor values to EEPROM using SequencialWrite method.
This will update both input register and EEPROM value
This will also write current Vref, PowerDown, Gain settings to EEPROM
Write all input resistor values to EEPROM using SequencialWrite method . This will update both input register and EEPROM value This will also write current Vref PowerDown Gain settings to EEPROM
uint8_t mcp4728_eepromWrite() {
  Wire.beginTransmission(DAC_DEV_ADDRESS);
  Wire.send(SEQWRITE);
  for (uint8_t channel=0; channel <= 3; channel++) {
    Wire.send(DAC_STEPPER_VREF << 7 | 0 << 5 | DAC_STEPPER_GAIN << 4 | highByte(mcp4728_values[channel]));
    Wire.send(lowByte(mcp4728_values[channel]));
  }
  return Wire.endTransmission();
}
uint8_t mcp4728_eepromWrite ( ) { Wire . beginTransmission ( DAC_DEV_ADDRESS ) ; Wire . send ( SEQWRITE ) ; for ( uint8_t channel = 0 ; channel <= 3 ; channel ++ ) { Wire . send ( DAC_STEPPER_VREF << 7 | 0 << 5 | DAC_STEPPER_GAIN << 4 | highByte ( mcp4728_values [ channel ] ) ) ; Wire . send ( lowByte ( mcp4728_values [ channel ] ) ) ; } return Wire . endTransmission ( ) ; }
Write all input resistor values to EEPROM using SequencialWrite method.
Write all input resistor values to EEPROM using SequencialWrite method .