Struct mcp4725::MCP4725 [−][src]
Expand description
MCP4725 DAC driver. Wraps an I2C port to send commands to an MCP4725
Implementations
Construct a new MCP4725 driver instance. i2c is the initialized i2c driver port to use, user_address is the three bit user-part of the i2c address where the MCP4725 can be reached
- The least significant bit of this address can be set externally by pulling the A0 leg of the chip low (0) or high (1) The two most significant bits are set in the factory. There are four variants of the chip with different addresses.
Set the dac and eeprom registers
Use the two byte fast command to set the dac register
Send a wake-up command over the I2C bus. WARNING: This is a general call command and can wake-up other devices on the bus as well.
Send a reset command on the I2C bus. WARNING: This is a general call command and can reset other devices on the bus as well.