I read that the arduino mega has four interrupt pins. I wanted to use pins 20-21, but these pins are also used for I2C. I tried writing a simple code to test the interrupt using these pins but no luck. When I used pin 19 it worked fine. I'm wondering if the reason that these pins are not working is because I need to declare these pins to be for interrupt. Thanks.