Quantcast
Viewing all articles
Browse latest Browse all 4933

Python • Re: RPi Pico and hardware interrupts

The code manipulates memory to accomplish the task. Then you should take a look into the PICO-SDK, if there is an interrupt vector for this state change. Micropython simply does not support it. This is why the memory is manipulated. There is no support for I2C-Slaves, but the hardware seems to support it. CircuitPython has an implementation.
I don't understand at what read and write blocking operations are you referring...
I saw an example, where a method call was blocked until a request (Master > Slave) were made.

It was not the CircuitPython example, but if you look the example code, then you will see, that they also do not use interrupts.
https://docs.circuitpython.org/en/lates ... i2ctarget/

The code asks for a new request and if the request was empty, the loop continues.
If you want something different, code it in C.

Statistics: Posted by DeaD_EyE — Fri Nov 08, 2024 3:23 pm



Viewing all articles
Browse latest Browse all 4933

Trending Articles