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.
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.
I saw an example, where a method call was blocked until a request (Master > Slave) were made.I don't understand at what read and write blocking operations are you referring...
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