I have a number of sketches that are sometimes used with a Duemilanove, and sometimes on a Mega2560.
When I switch the code between the two arduinos I often have to change a few lines where I use different pins on different shields. Is there someway of programatically identifying which processor I'm running on so I can do this switch automatically.
The following pseudo-code illustrates what I'm after...
if 'duemilanove' then
pinA=1
pinB=2 etc...
elseif 'Mega' then
PinA =53
pinB =54
Thanks