Ok this is my first time using interrupts so go easy on me
I am going to be building a weather sation using the sparkfun weather meters, fine.
I need to use interrupts, fine.
Firstly, assume arduino Mega 2560
what I don't understand is the Arduino documentation..
External Interrupts: 2 (interrupt 0), 3 (interrupt 1), 18 (interrupt 5), 19 (interrupt 4), 20 (interrupt 3), and 21 (interrupt 2)
am i right in thinking that, the number outside the brackets is the physical pin number
and the interrupt number (the one in brackets) is the number i use in the attachInterrupt method
for example to set 2 interrupts
attachInterrupt(0, myFunc, FALLING) // sensor attached to pin 2
attachInterrupt(1, myOtherFunc, FALLING) // sensor attached to pin 3
if i am wrong, can someone please correct me