Quantcast
Channel: Intel Communities: Message List
Viewing all articles
Browse latest Browse all 18548

galileo gen 2 external interrupts

$
0
0

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;
}

--------------------------------------------------------------------


Viewing all articles
Browse latest Browse all 18548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>