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
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