I am trying playing with external interrupts as i am new to this.
The sketch i wrote is atached.
I choosed to call the “react” function with atachinterrupt at a falling edge, so when i press the button and pin 2 goes from 5 volt to 0 volt
and println “tttttttttttttttttttttttt”.
But when i depress the button the function “react” is called again, now when pin 2 goes from 0 volt to 5 volt.
interrupt_experience.ino (641 Bytes)