Closed stodge closed 3 years ago
currently ESP-Camera and attachInterrupt
do not work together. They will work in a near future
Phew, I thought I was going crazy. Is there an alternative, or should I check the sensor in a loop instead of using interrupts? Thanks again.
you can use IDF's API to set pin interrupt
void IRAM_ATTR ISR_HANDLER(void* arg) {
is_triggered = true;
}
gpio_set_intr_type(INPUT_PIN, GPIO_INTR_POSEDGE);
gpio_isr_handler_add(INPUT_PIN, ISR_HANDLER, NULL);
Of course, thanks so much!
currently ESP-Camera and attachInterrupt do not work together. They will work in a near future
@me-no-dev Any news about that ?
Thx
I'm getting an exception in the esp_camera_init function. I'm using an interrupt from a pin connected to an RCWL-0516 to signal when motion is detected. However, this happens before I setup the interrupt. If I comment out the two marked lines that set the pin for input and install the interrupt handler, then the camera will initialise. I'm sure there's a gap in my knowledge here somewhere?
I'm using the Arduino IDE so who knows what additional code is included.
The exception is probably a null pointer, but I don't know why:
Thanks