View Single Post
Old 03-21-2011, 06:33 AM   #983 (permalink)
FalconFour
EcoModding Lurker
 
FalconFour's Avatar
 
Join Date: Sep 2010
Location: Fresno, CA
Posts: 78

LEAF - '11 Nissan LEAF
Thanks: 4
Thanked 9 Times in 7 Posts
^ Actually, you'll want to use this code instead: http://opengauge.googlecode.com/svn/...no/mpguino.cpp
I don't know why the "PDE" file stays up on the SVN page, it's moldy-oldy and faaaaar out of date. Now that everyone with an Arduino is using the (now-)standard '328 chip, there's zero concern of optimizing bytes in the compiled code... so the ye-olde PDE version should just be taken out back and shot, IMO.

Only thing you'll need to do is adjust the timing values (commented out) in the cpp version, if you're using a 16MHz Arduino as opposed to the 20MHz crystal in the prebuilt MPGuino board. Near the top, look for the section that says "//use with 16mhz, not tested" (it works fine). Match up the commented-out 16MHz values with the active 20MHz counterparts, and swap commenting ("//") on them, and you'll have 16MHz timing. Otherwise everything will be incorrectly displayed and timed on a 16MHz board.

Of course, over the next week or so I hope to start work on gutting and rebuilding MPGuino's code from the ground up, so this may not be too relevant in the near future...
  Reply With Quote
The Following User Says Thank You to FalconFour For This Useful Post:
russell mcdonnell (03-22-2011)