Moin, wie kann es sein, dass der erste Interrupt funktioniert, der zweite jedoch nicht?
volatile byte B5=0,B4=0; // ohne volatile selbes Ergebnis ... pinMode(PB5, INPUT_PULLDOWN); // DATUM attachInterrupt(digitalPinToInterrupt(PB5),B5Pressed,RISING); pinMode(PA15, INPUT_PULLDOWN); // ALARM1 attachInterrupt(digitalPinToInterrupt(PA15),B4Pressed,RISING); ... if(B5==1)dispdatesun(); if(B4==1){Serial.print("AL1:");...} ... void B5Pressed(){ B5=1; }
void B4Pressed(){ B4=1; } Ich habe auch schon die Pins B3 und B4 ausprobiert, selbes Ergebnis.
Edith hat gerade herausgefunden: an PA6 funktioniert es, aber warum?