Post content partially lost due to vandalism by author
I have 2 push buttons. 1 is connected to pin 2 ( INT0 ) and pulled down, pressing it connects it to 5v via resistor.
The other push button to pin 3 ( INT1 ) and pulled up, pressing it connects it to ground via resistor.
Ardunaut:
I have 2 push buttons. 1 is connected to pin 2 ( INT0 ) and pulled down, pressing it connects it to 5v via resistor.
The other push button to pin 3 ( INT1 ) and pulled up, pressing it connects it to ground via resistor.
Your circuit description sounds suspicious. The via resistor part. The pin should go to a junction of the resistor and switch. The other side of the switch goes to 5v or ground, depending on pull up or down. Is that how you have it?
Glad it worked. The reference page for AttachInterrupt does mention my page. So whilst it might not directly be on the page you at least have a chance of finding it.
Ardunaut:
I attached a picture of my wiring. But like u stated, it seems wrong what i did.
I now removed the other resistors and only left the pull up/down ones, this should be right ?