Hi,
I'm working on galileo gen2 board.
attachInterrupt() does not work.
please help me!
Here is my code. i am using sketch.
--------------------------------------------------------------------
int led = 13;
int inputPin = 2;
boolean value = LOW;
void setup() {
pinMode(inputPin, INPUT_PULLUP);
pinMode(led, OUTPUT);
attachInterrupt(0, intHandler, CHANGE);
}
void loop() {
}
void intHandler() {
digitalWrite(led, value);
value = !value;
}
--------------------------------------------------------------------