DAC Lib

Dependents:   Cube_Mini_Solution Cube_Mini_Solution

Revision:
6:0e58d3068eb8
Parent:
5:3e6ffce1eea2
diff -r 3e6ffce1eea2 -r 0e58d3068eb8 mcp4725.h
--- 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.