Arduino IDE compatibility with ATmega2561

Also the more current method:

pinMode (pinX, INPUT_PULLUP); // enable internal pull-up for pinX

pinMode (pinX, INPUT); // disable internal pull-up if prior was enabled, default from reset or power up is disabled.