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

False GP1 trigger upon initialization

Open cameronprince opened this issue 5 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