Go Down

Topic: Arduino 101 interrupt pins capable of seeing CHANGE. (Read 2377 times) previous topic - next topic

daisukeura

Hi there.
About Arduino 101's interrupt pins.

The reference page is written, "5 pin is capable of seeing CHANGE".
here
But I think 5 pin is not capable it, and 4 pin can.

Is it typo or my 101 has an error?

Thanks,

Code: [Select]

#include <Arduino.h>

int a = 0;

void warikomi() {
  Serial.println(a);
  a++;
}

void setup() {
  Serial.begin(9600);
  while (!Serial)
    ;

  attachInterrupt(5, warikomi, CHANGE);
}

void loop() {
}


My test code below.

I am learning English now.
I'm sorry to my unskillful sentence.

Go Up