Yes, either will work, depending on the version of IDE you have. INPUT_PULLUP only on later versions.
see the Arduino Release notes.
1.0.1 added the pinMode(pinX, INPUT_PULLUP); option.
Yes, either will work, depending on the version of IDE you have. INPUT_PULLUP only on later versions.
see the Arduino Release notes.
1.0.1 added the pinMode(pinX, INPUT_PULLUP); option.