Pull-up resisters not working on Mega 2560

see reply #3. Also don't post snippets, post your complete, entire sketch.