From ebf7af462c37cae57171847c8e13859b251bdc75 Mon Sep 17 00:00:00 2001 From: Daniel Kucera Date: Thu, 20 Jul 2023 22:05:46 +0200 Subject: [PATCH] Allow overriding RASPBERRY_PI_PICO SPI pins --- variants/RASPBERRY_PI_PICO/pins_arduino.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/variants/RASPBERRY_PI_PICO/pins_arduino.h b/variants/RASPBERRY_PI_PICO/pins_arduino.h index 01c9ce9e4..663a5d15a 100644 --- a/variants/RASPBERRY_PI_PICO/pins_arduino.h +++ b/variants/RASPBERRY_PI_PICO/pins_arduino.h @@ -42,10 +42,21 @@ static const uint8_t A3 = PIN_A3; #define PIN_SERIAL_RX (1ul) // SPI +#ifndef PIN_SPI_MISO #define PIN_SPI_MISO (16u) +#endif + +#ifndef PIN_SPI_MOSI #define PIN_SPI_MOSI (19u) +#endif + +#ifndef PIN_SPI_SCK #define PIN_SPI_SCK (18u) +#endif + +#ifndef PIN_SPI_SS #define PIN_SPI_SS (17u) +#endif static const uint8_t SS = PIN_SPI_SS; // SPI Slave SS not used. Set here only for reference. static const uint8_t MOSI = PIN_SPI_MOSI; pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy