Arduino ESP32使用外部中断 ESP32支持库版本:3.0.1 esp32型号:esp32 Dev Module 实例程序 // toggles LED when interrupt pin changes state int led = 2;//板载led灯 volatile int state = LOW; const byte interruptPin_0 = 25; //设置中断的目标对应的那个引脚 const<