I asked the ChatGPT how can I handle the _RD_REQ interrupt of the I2C and it told me that:
It is true that MicroPython API currently doesn't directly support hardware interrupts ?
I want to configure the RP2040 in some way so that a callback function is executed when a I2C read request is rised (_RD_REQ) so I can send the requested data.
On the Raspberry Pi Pico with an RP2040 microcontroller, you can handle interrupts in MicroPython by setting up a pin interrupt, as the MicroPython API currently doesn't directly support hardware interrupts for the I2C peripheral.
It is true that MicroPython API currently doesn't directly support hardware interrupts ?
I want to configure the RP2040 in some way so that a callback function is executed when a I2C read request is rised (_RD_REQ) so I can send the requested data.
Statistics: Posted by Marus780 — Fri Nov 08, 2024 11:42 am — Replies 0 — Views 10