noInterrupts__ - jimaobian/DFRobotWikiCn GitHub Wiki

#define noInterrupts() cli()

关中断

例子:

void setup() {}

void loop()
{
  noInterrupts();
  // critical, time-sensitive code here
  interrupts();
  // other code here
}
⚠️ **GitHub.com Fallback** ⚠️