DAC controller interface
Dependents: dac_subsystem dac_controller dac_controller2 dac_controller2
Fork of MCP4725 by
Revision 6:35e3e80b804c, committed 2014-04-01
- Comitter:
- dzl5187
- Date:
- Tue Apr 01 04:45:16 2014 +0000
- Parent:
- 5:3e6ffce1eea2
- Commit message:
- first commit;
Changed in this revision
mcp4725.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/mcp4725.cpp Thu Nov 07 19:05:29 2013 +0000 +++ b/mcp4725.cpp Tue Apr 01 04:45:16 2014 +0000 @@ -20,8 +20,8 @@ _i2c_interface.frequency(freq); // Assemble the full I2C device address. - _device_address = 0xC0; // Prime the full device address with the device code. - _device_address |= (device_address_bits<<1); + _device_address = 0xC4; // Prime the full device address with the device code. + //_device_address |= (device_address_bits<<1); } int MCP4725::read(enum PowerMode* mode, enum PowerMode* mode_eeprom, int* dac_value, int* dac_value_eeprom, bool* eeprom_write_in_progress)