Get external SPI SD reader working on M5StickC-Plus #350
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I wasn't able to get an SD card reader to work with the default SD_CS configuration for the M5StickC-Plus no matter how I wired it up to any of the front pins or Grove port on the back, so I fixed it up.
This change sets up a new single-purpose external SPI bus on the front-panel pins of the M5StickC-Plus. All requisite logic changes are gated in an ifdef specific to the MARAUDER_M5STICKC board target.
A new SPIClass named SPI_EXT is configured. SD_CS is set to -1 since it's unnecessary, as it's the only peripheral on this new SPI bus. Wiring notes in a comment. The wiki will be updated accordingly afrer merge.
Testing results: