und den pullup-widerstand solltest du noch aktivieren. nach dem config... noch porta.1 = 1