If buttons 2, 4 and 5 where pressed, you wouldn't be able to tell if button 1 were pressed since it was "boxed" in.
BTW, Beau's code only works with very short leads. Longer leads may require 0.1uF capacitors on either the columns or the rows (I don't remember which).
Comments
If buttons 2, 4 and 5 where pressed, you wouldn't be able to tell if button 1 were pressed since it was "boxed" in.
BTW, Beau's code only works with very short leads. Longer leads may require 0.1uF capacitors on either the columns or the rows (I don't remember which).