Interrupts
- Attach interrupt:
This bloc is used for creating external interrupt. It will execute the blocs whenever an event happen on the selected pin according to a mode.
The mode could be:
– LOW to trigger the interrupt whenever the pin is low,
– CHANGE to trigger the interrupt whenever the pin changes value
– RISING to trigger when the pin goes from low to high,
– FALLING for when the pin goes from high to low.
– HIGH to trigger the interrupt whenever the pin is high.
- Detach interrupt:
Turns off the given interrupt.
- Interrupt:
Re-enables interrupts (after they’ve been disabled by the bloc no interrupt. Interrupts allow certain important tasks to happen in the background and are enabled by default. Some functions will not work while interrupts are disabled, and incoming communication may be ignored. Interrupts can slightly disrupt the timing of code, however, and may be disabled for particularly critical sections of code.
- No Interrupt:
Disables interrupts (you can re-enable them withinterrupts()
). Interrupts allow certain important tasks to happen in the background and are enabled by default. Some functions will not work while interrupts are disabled, and incoming communication may be ignored. Interrupts can slightly disrupt the timing of code, however, and may be disabled for particularly critical sections of code.