Ringing when GPIO pin changes direction without pullup resistor