A feature complete driver for the MCP4725 DAC from Microchip with an AnalogOut-compatible API.
Dependents: MCP4725_HelloWorld DAC02_RFID_and_TFT
Diff: MCP4725.cpp
- Revision:
- 2:42d9d780813b
- Parent:
- 1:3b687a9acdf3
--- a/MCP4725.cpp Wed May 07 16:24:16 2014 +0000 +++ b/MCP4725.cpp Fri May 30 18:57:36 2014 +0000 @@ -137,6 +137,7 @@ m_I2C.write(m_ADDR, buff, 3); } +#ifdef MBED_OPERATORS MCP4725::operator float() { //Return the current output voltage @@ -149,6 +150,7 @@ write(value); return *this; } +#endif void MCP4725::readDac() {