Issue #1129, edge detection should be set only on input pins.