Did the pin-layout of the mega adk board change? I have an R3. According to the documentation, 43:INT0 --> DIGITAL pin 21 (SCL)
I ran a simple sketch;
void setup() {
attachInterrupt(0, goLow, LOW);
pinMode(8, OUTPUT);
}
void loop() {
digitalWrite(8, HIGH);
}
void goLow() {
digitalWrite(8, LOW);
}
the interrupt seemed to be on all the time. I read the reference on attachInterrupt(), it mentions that INT0 is digital pin 2. A quick try using this pin, the code works.
Now I'm confused. Are there other pins that have been changed? I'm going to use the ports to direct read/write... I'm rather concerned if the layout is not up to date.
anyone has this problem?
many thanks,