Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4416

Python • RPi Pico and hardware interrupts

$
0
0
I asked the ChatGPT how can I handle the _RD_REQ interrupt of the I2C and it told me that:
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



Viewing all articles
Browse latest Browse all 4416

Trending Articles