'Zufällig' kann ich dir nur das einzigste Interrupt aus den Beispielen zeigen:
http://www.arduino.cc/en/Reference/AttachInterruptint pin = 13;
volatile int state = LOW;
void setup()
{
pinMode(pin, OUTPUT);
attachInterrupt(0, blink, CHANGE);
}
void loop()
{
digitalWrite(pin, state);
}
void blink()
{
state = !state;
}
Parameters
interrupt: the number of the interrupt (int)
function: the function to call when the interrupt occurs; this function must take no parameters and return nothing. This function is sometimes referred to as an interrupt service routine.
mode defines when the interrupt should be triggered. Four contstants are predefined as valid values:
LOW to trigger the interrupt whenever the pin is low,
CHANGE to trigger the interrupt whenever the pin changes value
RISING to trigger when the pin goes from low to high,
FALLING for when the pin goes from high to low.
Aber die die Referenz ist ja jedem zugänglich.
Mit dem Finden tue ich mich allerdings auch öfters schwer !
http://arduino.cc/en/Reference/DetachInterruptentfernt den Interruptus.
MfG