Well done!
The runtime switch will be difficult if you don't want to reset the MPGuino but just switch the current information from gallons/miles to liters/km or vice versa. It's possible but would require conversion functions everywhere that the units are used. I suppose the data could be kept internally in some arbitrary units and then always converted for display.
I gave up trying to work within the ATmega168 Flash constraints. I'm using an ATmega328 with Arduino-0013. Works just fine and cost $5.00US for the chip.
|