openenergymonitor/EmonLib — pull request #7 by icboredman (2014-01-04 22:09:30+00:00)
Title: added support for 12-bit ADC resolution on Arduino Due

To enable this feature on Arduino Due, add the following statement to setup() function in main sketch:
analogReadResolution(ADC_BITS);

Note: ADC_BITS is automatically defined in EmonLib.h as 12 on ARM-based Due or as 10 on any other AVR-based board.