Enable Touchpad IRQ
Feature request:
Hi, would it be possible to add irq support to the esp32 Touchpad class?
Add 'hard' Pin.irq() support for ESP32
Checks
-
I agree to follow the MicroPython Code of Conduct to ensure a safe and respectful space for everyone.
-
I've searched for existing issues regarding this feature, and didn't find any.
Description
Micropython on ESP32 board does not support option 'hard=True' in machine.Pin.irq().
This results in unpredictable effects in the case of faster interrupts, and even the number of call-back function being called far exceeds the number of interrupts that actually occur.
Code Size
Since STM32 platforms have implemented hard interrupts, so I don't think that adds much of a burden.
I once glanced at the source code and felt that it was enough to use mp_call_function_1() instead of mp_sched_schedule, and lock/unlock some resources like GC.
Implementation
- I intend to implement this feature and would submit a Pull Request if desirable.
- I hope the MicroPython maintainers or community will implement this feature.
- I would like to Sponsor development of this feature.