Reconcile Analog

Okay.. scenario time..

I program this nifty must have program that I want to run on the Uno and the Mega without changes. There are a LOT of pins being used, almost to the capacity of the Uno.

I set up pins 14-19 on the Uno for Potentiometers, analog sensors, etc. No choice. Those are the analog pins.

I then try to run this same program, as is, on a Mega. Are you telling me there is no problem?

There would NOT be a problem if the programmer didn't use statements referring to 14-19. If only he would have used A0-A6 to describe them! Pins 14-19 are NOT directly interchangeable.

He COULD use just 0-6 in his code, but wait.. NO! What happens when those pins are needed on the other platform? We just need the reporting to be A0-A6 for those particular pins. Problem solved.

For those of you who shared code.. THANK YOU! I do not mean to be a jerk or anything, but I just get a little testy when people say there is no problem when there clearly is. I apologize sincerely for getting everyone in an uproar. We can move on.. I have solutions now that I think will work. I still wonder if it shouldn't be put in library format so its just a one line addition to the code. Thanks again!