| Index

| Reference for Wiring 1.0 (ALPHA) 0019+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.

Name |  | ### noInterrupts()
Examples |  |
    void setup() {

    }

    void loop() {
      noInterrupts(); // disable all possible interruptions

      // critical code section

      interrupts();   // enable interruptions

      // other code
    }
Description |  | The noInterrupts() and interrupts() methods disable and enable interrupts, respectively, in the Wiring I/O board. By default interruptions on the Wiring I/O board are enabled to allow the environment, libraries and time to work. Note that all the Wiring functionality will stop by disabling interrupts. These methods are useful to mark critical sections of code where timing is so important that it can not be interrupted by other tasks (like Serial, Wire, other libraries or timing activities). The methods are provided for advanced users who know exactly what they are doing. After disabling interrupts it is necessary to re-enable them or all other I/O activities in the Wiring I/O board will not work again in the current program.
Syntax |  |
    noInterrupts()
Returns |  | None
Usage |  | Application
Related |  | interrupts()