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
3.0.1
// toggles LED when interrupt pin changes state
int led = 2;//闆載led燈
volatile int state = LOW;
const byte interruptPin_0 = 25; //設定中斷的目标對應的那個引腳
const