MCP4725

Dependents:   Cube_Mini_Template

Revision:
6:0e58d3068eb8
Parent:
5:3e6ffce1eea2
--- a/mcp4725.h	Thu Nov 07 19:05:29 2013 +0000
+++ b/mcp4725.h	Fri Jan 31 17:59:17 2020 +0000
@@ -63,7 +63,7 @@
      *       0 on success,
      *   non-0 on failure
      */
-    int write(enum PowerMode mode, int dac_value, bool writeToEeprom);
+    int write(float dac_value, enum PowerMode mode = MCP4725::Normal, bool writeToEeprom = false);
     
         
     /** Read the contents of the dac register, the contents of eeprom, and if an eeprom write is currently active.