A feature complete driver for the MCP4725 DAC from Microchip with an AnalogOut-compatible API.
Dependents: MCP4725_HelloWorld DAC02_RFID_and_TFT
Revision 2:42d9d780813b, committed 2014-05-30
- Comitter:
- neilt6
- Date:
- Fri May 30 18:57:36 2014 +0000
- Parent:
- 1:3b687a9acdf3
- Commit message:
- Added MBED_OPERATORS check to implementation
Changed in this revision
MCP4725.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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() {