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

ATmega644/644P/1284/1284P support #26

Closed proboscide99 closed 8 years ago

proboscide99 commented 8 years ago

Hi, I've added two lines of code to the readVcc function for 644/1284 support. Tested on a 1284P MCU, non tested on 644 but it should work.

elif defined(AVR_ATmega644) || defined(AVR_ATmega644P) || defined(AVR_ATmega1284) || defined(AVR_ATmega1284P)

ADMUX = _BV(REFS0) | _BV(MUX4) | _BV(MUX3) | _BV(MUX2) | _BV(MUX1);

Ciao!

glynhudson commented 8 years ago

Sounds great, however your pull request does not contain any commits (changes) from yourself. Please could you open a new pull request to try again. Will be happy to merge this , thanks for the contribution