Previously, when MCP4725_EXTENDED was defined, compilation of the library failed:
E:\arduino\libraries\MCP4725\MCP4725.cpp: In member function 'int MCP4725::writeRegisterMode(uint16_t, uint8_t)':
E:\arduino\libraries\MCP4725\MCP4725.cpp:195:9: error: assignment of read-only parameter 'reg'
reg = reg | (_powerDownMode << 1);
^
+ added powerDownCode
(code/interface is experimental, test + refactor needed)
+ added RDY test in several places
+ removed smooth2Value() => sample sketch
+ extended test sketch
+ tested on 100, 400, 800 KHz (works)
+ added readEEPROM
+ added RDY (to check EEPROM write is done)
+ writeDAC() has got a flag for writing to EEPROM
+ prepare for PowerDownMode
+ cleaned up code a bit (some more still needed)