This may be a bit obsolete with the m2 parts out but of you have some 08m laying around and need a quick datalogger (as I did) then I have some code to share. I'm typing this from bed (TMI) so I can't share it right now but reply to this post if you're interested and I'll pass it along. It reads in one ADC measurement and then stores it to a 24lc512 i2c eeprom, a low on a pin and it logs, a high and it dumps it over the prog ed terminal. Had to use a few tricks to make it all work on an 08m but its all gravy now.
Let me know if you want more information.
Daniel
Let me know if you want more information.
Daniel