Okay, that was what I was needing clarified. The board specific definitions just define a "default" pin, but I still have to use that defenition or the explicit GPIO number to configure whatever pins I want to use.However, the SDK does provide/encourage the use of board definition files as we've seen - the board definition file for Pico contains PICO_DEFAULT_SPI_SCK_PIN, but this isn't used anywhere in the SDK itself, it's for the benefit of library/example code.
Am I correct that even though I have to assign and configure the pins, they still have to be used as shown by the pinout. That is I have to use Pins 2, 6 or 18 for SPI0 clock or 10 or 14 for SPI1 clock. I can't just choose some random pin for my SPI clock. Do I have that right?
Bob
Statistics: Posted by parrst — Fri Aug 23, 2024 10:14 pm