Home \ Help \ Search \ Login RSS

Welcome, Guest. Please Login

This forum is now READ-ONLY! Please visit http://forum.wiring.co/ for the new forum.

Wiring ForumProgramming Questions & HelpPrograms › attachInterrupt()

Page Index Toggle Pages: 1
attachInterrupt() (Read 2959 times)
11/19/08 at 00:58:55

jdwang   Offline
YaBB Newbies
I Love YaBB 2!

Posts: 2
*
 
Hi,

As the interrupt pins are 0~3 and 36~39, my program sould work if I had attachInterrupt(36,xx_fun,HIGH); right?

if not, whatelse should be actived ?

Thanks,
JD
 
IP Logged
 
Reply #1 - 11/19/08 at 19:38:56

barragan   Offline
YaBB Administrator

Posts: 939
*****
 
interrupts are numbered from 0 to 7 (on pins 0-3 and 36-39). The interrupt number is what is needed in the attachInterrrupt() method, so if you want to use the interrupt 4 (pin 36) it should be

attachInterrupt(4, xx_fun, HIGH);

h.
 
IP Logged
 
Page Index Toggle Pages: 1