Oops, assign switch pin as output.