openenergymonitor / EmonLib

Electricity monitoring library - install in Arduino IDE's libraries folder then restart the IDE
openenergymonitor.org
GNU Affero General Public License v3.0
589 stars 419 forks source link

added support for 12-bit ADC resolution on Arduino Due #7

Closed icboredman closed 10 years ago

icboredman commented 10 years ago

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.