X-Git-Url: https://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/9d18e10afb2439a6a9ba6978a799259746a837b7..9b1c307f5be2e264cf0ce6f38af872f2b149be5d:/drivers/dac/mcp4725/mcp4725.h diff --git a/drivers/dac/mcp4725/mcp4725.h b/drivers/dac/mcp4725/mcp4725.h index 71100cc..bb91b3e 100644 --- a/drivers/dac/mcp4725/mcp4725.h +++ b/drivers/dac/mcp4725/mcp4725.h @@ -39,7 +39,8 @@ #include "projectconfig.h" -#define MCP4725_ADDRESS (0xC0) // 1100000x - Assumes A0 is GND and A2,A1 are 0 (MCP4725A0T-E/CH) +//#define MCP4725_ADDRESS (0xC0) // 1100000x - Assumes A0 is GND and A2,A1 are 00 (MCP4725A0T-E/CH) +#define MCP4725_ADDRESS (0xC4) // 1100010x - Assumes A0 is GND and A2,A1 are 01 (MCP4725A1T-E/CH) #define MCP4725_READ (0x01) #define MCP4726_CMD_WRITEDAC (0x40) // Writes data to the DAC #define MCP4726_CMD_WRITEDACEEPROM (0x60) // Writes data to the DAC and the EEPROM (persisting the assigned value after reset)