Describe the bug
Hi!
I'm trying to use the SYS_INT pin (G14) as an interrupt source to detect input changes from the AW9523 on the M5StampPLC.
However, when I toggle any of the physical inputs (IN1–IN8), G14 never changes state, always stays LOW, and the interrupt is never triggered.
To reproduce
This is a simple example:
#include <M5StamPLC.h>
volatile bool interrupt = false;
void IRAM_ATTR handleAwInterrupt() {
interrupt = true;
}
void setup() {
Serial.begin(115200);
M5StamPLC.begin();
pinMode(14, INPUT_PULLUP);
attachInterrupt(digitalPinToInterrupt(14), handleAwInterrupt, FALLING);
}
void loop() {
if (interrupt) {
interrupt = false;
Serial.println("Val changed");
}
}
Expected behavior
“When I get an input, the serial monitor will say ‘Val changed’.”
Screenshots
No response
Environment
- OS:Windows 10 Home 22H2
- IDE &IDE Version: Arduino IDE 2.3.6
- Repository Version:
Additional context
No response
Issue checklist
Describe the bug
Hi!
I'm trying to use the SYS_INT pin (G14) as an interrupt source to detect input changes from the AW9523 on the M5StampPLC.
However, when I toggle any of the physical inputs (IN1–IN8), G14 never changes state, always stays LOW, and the interrupt is never triggered.
To reproduce
This is a simple example:
#include <M5StamPLC.h>
volatile bool interrupt = false;
void IRAM_ATTR handleAwInterrupt() {
interrupt = true;
}
void setup() {
Serial.begin(115200);
M5StamPLC.begin();
pinMode(14, INPUT_PULLUP);
attachInterrupt(digitalPinToInterrupt(14), handleAwInterrupt, FALLING);
}
void loop() {
if (interrupt) {
interrupt = false;
Serial.println("Val changed");
}
}
Expected behavior
“When I get an input, the serial monitor will say ‘Val changed’.”
Screenshots
No response
Environment
Additional context
No response
Issue checklist