Interrupt Example

The sketch is a working example to show the use of interrupts.
Each time the level from GPIO0 changes from HIGH to LOW the main loop (that prints the value of a variable) in interrupted and the value of the variable inverted.
The picture below shows the output from the sketch.
Each time the level from GPIO0 changes from HIGH to LOW the main loop (that prints the value of a variable) in interrupted and the value of the variable inverted.
The picture below shows the output from the sketch.