Reading this thread inspired me to work on an update to the docs (for which I will put in a pull request soon). However, while researching some details, I have a question regarding the default SS pins.
Looking through the firmware source (I checked both the ‘latest’ and ‘develop’ branches), I can see that there is an alias for
SS defined in the pinmap, mapping to physical pin 12, AKA
A2. That’s fine for the standard
But, for the
SPI1 firmware object, which maps to
SPI3 hardware interface (yeah, that’s slightly confusing), the pinout image above would lead one to believe that it would default to pin
D5 for its slave-select. But it doesn’t – it still uses the default
SS symbol (pin
A2). And there are also no other defines in the pinmap for the
I’m thinking that we need to add some additional entries to
hal/inc/pinmap_hal.h for the second SPI interface. And also, make
SPI1.begin() default to pin
D5. I’m pretty sure there must be a way to do that, but my C++ fu isn’t that strong. My best guess is that the solution would involve
attn: @mdma, @Dave, @BDub?