Open Vendelator opened 1 year ago
Also, if its actually possible, would be good to have an example of how to import a .pio
file (with C-SDK) into MicroPython.
how to import a .pio file (with C-SDK) into MicroPython.
That's (briefly) covered in section 3.9.6. of https://datasheets.raspberrypi.com/pico/raspberry-pi-pico-python-sdk.pdf
how to import a .pio file (with C-SDK) into MicroPython.
That's (briefly) covered in section 3.9.6. of https://datasheets.raspberrypi.com/pico/raspberry-pi-pico-python-sdk.pdf
Ah, got it thank you! Good thing for google keywords, that I asked :D
I have been searching quite a lot on how to communicate back and forth between PIO and Micropython on the Pi Pico with synchronized activation between state machines and PIO blocks signaling back with interrupts etc. I came up with nothing.
I started this project: https://github.com/Vendelator/RP2040_PIO_Steppermotors Which uses the technique i was searching for. The best source i could find was: https://dernulleffekt.de/doku.php?id=raspberrypipico:pico_pio
My suggestion is to add an example code doing this, as i have seen a lot of people are looking for this.
I provide this example program to be added as an example in: https://github.com/raspberrypi/pico-micropython-examples
This example is working as intended, but all comments have been put there quite hasty.