I2CEncoderV2.1
I2CEncoderV2.1 copied to clipboard
False GP1 trigger upon initialization
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