I2CEncoderV2.1 icon indicating copy to clipboard operation
I2CEncoderV2.1 copied to clipboard

False GP1 trigger upon initialization

Open cameronprince opened this issue 7 months ago • 1 comments

Hello,

I've started using the GP switch inputs on one I2CEncoder in my project and have noticed a false GP1_IN trigger happening consistently upon power up. I've worked around the problem as follows:

    if i2status & GP1_IN:
        # Ignore input for the first 10 seconds after start.
        if time.ticks_diff(time.ticks_ms(), self.init.start_time) < 10000:
            break

Is there a way to prevent this false trigger?

Thanks, Cameron

cameronprince avatar Jul 15 '25 19:07 cameronprince

Hello, Uh that looks interesting.

Can you explain a little bit what is your configuration?

After the power up, you configure the encoder, and as soon as you configure the GP pin you receive the interrupt?

Are you sure regarding the polarity of the trigger?

Thank you, Simone

DuPPadotnet avatar Jul 15 '25 19:07 DuPPadotnet