Skip to content

Commit 0920055

Browse files
committed
Add attchInterrupt test (just to check if it compiles)
1 parent 74d95c1 commit 0920055

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

examples/BlinkOnMbed/BlinkOnMbed.ino

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,17 @@
2222
http://www.arduino.cc/en/Tutorial/Blink
2323
*/
2424

25+
void cb(int c) {
26+
// do nothing
27+
}
28+
29+
int param = 6;
30+
2531
// the setup function runs once when you press reset or power the board
2632
void setup() {
2733
// initialize digital pin LED_BUILTIN as an output.
2834
pinMode(LED1, OUTPUT);
35+
attachInterrupt(12, cb, FALLING, param);
2936
}
3037

3138
// the loop function runs over and over again forever

0 commit comments

Comments
 (0)