For a study project, we have to build a multi sensor platform. For this, we’ll need a Serial port, one SPI as well as both I2C ports.
We’re using a Pi Pico with PIO on VSCode with the Arduino Framework.
Unfortunately, I can’t find where to define the pins the ports use. I was able to find the pins_arduino.h but in there I find a
#define SERIAL_HOWMANY (1)
which in itself is a bit strange since Pico should have two Serial Ports.
For I2C I can’t even find a corresponding define.
How can we change the used pins for all the different ports?
I found this page Pin Assignments — Arduino-Pico 1.0.0 documentation but the described functions (setRX(), setTX()) don’t seem to exist.
Thanks for your help!