From 784a5edc4bc7d9d7c9b4119c8d5e4c52962cf1c4 Mon Sep 17 00:00:00 2001 From: Neradoc Date: Mon, 17 Jan 2022 06:52:08 +0100 Subject: [PATCH] Define default SPI pins on kb2040 Fixes #5875 --- ports/raspberrypi/boards/adafruit_kb2040/mpconfigboard.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ports/raspberrypi/boards/adafruit_kb2040/mpconfigboard.h b/ports/raspberrypi/boards/adafruit_kb2040/mpconfigboard.h index c01f713e48..e1bfbb01e7 100644 --- a/ports/raspberrypi/boards/adafruit_kb2040/mpconfigboard.h +++ b/ports/raspberrypi/boards/adafruit_kb2040/mpconfigboard.h @@ -8,3 +8,7 @@ #define DEFAULT_UART_BUS_TX (&pin_GPIO0) #define DEFAULT_UART_BUS_RX (&pin_GPIO1) + +#define DEFAULT_SPI_BUS_SCK (&pin_GPIO18) +#define DEFAULT_SPI_BUS_MOSI (&pin_GPIO19) +#define DEFAULT_SPI_BUS_MISO (&pin_GPIO20)