I am brand new to Arduino AND C programming. I use the IDE from arduino.org, rev 1.8.1
I want to attach interrupts to all my INPUT Pins. They are connected to buttons.
It does not want to compile, and seems to say that this is not available on a UNO. Is that correct?
It would be great if someone could look into the abstract below:
Abstract of my code:
#include <SoftwareSerial.h>
#include <PinChangeInt.h>
#include <stdio.h>
void setup() {
attachInterrupt(9, IntLevel1Down, FALLING); //compiler says not declared in this scope…
attachInterrupt(9, IntLevel1Up, RISING);
attachInterrupt(10, IntLevel2Up, RISING);
attachInterrupt(11, IntLevel3Up, RISING);
attachInterrupt(12, IntLevel4Up, RISING);
attachInterrupt(13, IntLevel5Up, RISING);
attachInterrupt(13, IntLevel5Down, FALLING);
}
void loop(){ whatever it’s supposed to do in te loop}
void IntLevel1Up(){ whatever it’s supposed to do }
void IntLevel2Up(){whatever it’s supposed to do }
void IntLevel3Up(){whatever it’s supposed to do }
void IntLevel4Up(){whatever it’s supposed to do }
void IntLevel5Up(){whatever it’s supposed to do }
void IntLevel1Down(){ whatever it’s supposed to do }
void IntLevel5Down(){whatever it’s supposed to do }
Cheers! Pascal