Syntax
void interrupts();
ContentsIndex
PreviousUpNext
interrupts
Example
Syntax
void interrupts();
Description

Enables interrupt (after it is disabled by noInterrupts()). By default, interrupts make some essential tasks executed in background. Disabling interrupts will make some communication functions unable to work normally and external interaction ignored. Therefore, please pay particular attention when using this function and enable the interrupt again as soon as possible

Example
void setup() {}
 
void loop()
{
  noInterrupts();
  // critical, time-sensitive code here
  interrupts();
  // other code here
}
File

WInterrupts.h

Group