Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added more SPI pin defines #126

Merged
merged 1 commit into from
Sep 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Arduino_package/hardware/variants/awcu488_thingplus/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ extern void wait_for_debug(void);
#define SPI1_SCLK AMB_D16 // AMB_D16 / AMB_D29
#define SPI1_SS AMB_D17 // AMB_D17 / AMB_D28

// temporary patch to support older Arduino libraries (including the SparkFun Micro OLED)
#define SS SPI_SS
#define MOSI SPI_MOSI
#define MISO SPI_MISO
#define SCK SPI_SCLK

/* TwoWire/I2C pin mapping */
#define I2C_SDA AMB_D5 // AMB_D5 qwiic / AMB_D16
#define I2C_SCL AMB_D6 // AMB_D6 qwiic / AMB_D15
Expand Down