added 3-phase buffer-delay algorithm, when CT sensors connected to different line phases.
also includes support for 12-bit ADC resolution on Arduino Due.
Since it makes sense to keep main EmonLib library single phase, these files were renamed to "EmonLib_3PH.cpp" and "EmonLib_3PH.h"
Includes example sketch "ArduinoDue_3phase.ino" showing how to use Due as EmonTx box:
There are 10 CT inputs connected to various household lines (after circuit breakers) and 1 AC-AC voltage adapter connected to one of these lines, used to measure voltage.
10 lines are connected to different phases, therefore, an extra parameter was added to functions voltage() and voltageTX() indicating a particular phase number.
The AC-AC line voltage adapter must be connected to phase 1.
Since it makes sense to keep main EmonLib library single phase, these files were renamed to "EmonLib_3PH.cpp" and "EmonLib_3PH.h"
Includes example sketch "ArduinoDue_3phase.ino" showing how to use Due as EmonTx box: