I tried to run a sketch that tests my AVR's interrupts, I have an UNoriginal Arduino Uno, and I've checked pins 2 and 3 like the following:
- at void setup()
attachInterrupt(2, inter, CHANGE);
- at void inter()
Serial.println("Interrupt pin 2");
I did the same on pin 3, I checked them by attaching the pins to a button with a Pull-Up, When I click the button it goes from HIGH to LOW. But yet, the arduino doesn't run the 'inter'. Is it possible that because my Arduino is not original it won't work? And this type of interrupts are software not hardware right?