As far as I remember, there is a constant defined as LED_PIN which "adapts" automatically, depending on the CPU selected in the IDE menu. Using that one instead of a fixed pin number should fix the...