Closed
Description
I noticed that the header files for the sparkfun boards are missing some #define
s for the default SPI pins. However, these boards have specifically broken out SPI pins to the boards' pins (labeled as SPI pins on the board).
Here's a list of default SPI pins that my research has turned up (with links to schematics):
Sparkfun Thing Plus
#ifndef PICO_DEFAULT_SPI
#define PICO_DEFAULT_SPI 0
#endif
#ifndef PICO_DEFAULT_SPI_SCK_PIN
#define PICO_DEFAULT_SPI_SCK_PIN 2
#endif
#ifndef PICO_DEFAULT_SPI_SCK_PIN
#define PICO_DEFAULT_SPI_TX_PIN 3
#endif
#ifndef PICO_DEFAULT_SPI_SCK_PIN
#define PICO_DEFAULT_SPI_RX_PIN 4
#endif
Sparkfun Pro Micro & Sparkfun MicroMod
#ifndef PICO_DEFAULT_SPI
#define PICO_DEFAULT_SPI 0
#endif
#ifndef PICO_DEFAULT_SPI_SCK_PIN
#define PICO_DEFAULT_SPI_SCK_PIN 22
#endif
#ifndef PICO_DEFAULT_SPI_SCK_PIN
#define PICO_DEFAULT_SPI_TX_PIN 23
#endif
#ifndef PICO_DEFAULT_SPI_SCK_PIN
#define PICO_DEFAULT_SPI_RX_PIN 20
#endif
I also looked into the pimoroni boards, but there's discrepencies:
- pimoroni_picosystem store page is missing links to schematics/pinout
(though it does boast that SPI is exposed) - pimoroni_tiny2040 boards' pins are not specifically labeled for SPI usage (though multiple options exist to use
spi0
). So, the pimoroni_tiny2040.h could benefit from#ifndef PICO_DEFAULT_SPI #define PICO_DEFAULT_SPI 0 #endif
- pimoroni_keybow2040 doesn't seem to provide accessible GPIO pins (or more importantly no SPI bus exposed)
Metadata
Metadata
Assignees
Labels
No labels