Hi
Cannot get pin interrupt to work on pin 2 on a Leonardo. Using latest version of IDE. My research indicates this is a known issue but i have been unable to find a solution anywhere. Does anyone know how I can get a pin interrupt to work on pin 2 (I require pin 3 for something else), or failing that pin 1 or 0?
It's definitely so that IDE 1.0.1 defines pin 3 as interrupt 0 and pin 2 as interrupt 1 but I cannot find any error in the code that would implicate that this shouldn't work.
Please keep in mind that you cannot use the I2C interface (Wire library) while using the pins 2 and 3 (these pins are multiplexed to SDA and SCL). On pins 0 and 1 is the Serial1 on the Leonardo, so you cannot use that object if you use the pins for interrupts.
dc509:
Hi
Cannot get pin interrupt to work on pin 2 on a Leonardo. Using latest version of IDE. My research indicates this is a known issue but i have been unable to find a solution anywhere. Does anyone know how I can get a pin interrupt to work on pin 2 (I require pin 3 for something else), or failing that pin 1 or 0?