From da5854d0fc35c5bbfd65a114b19543ee6a451b41 Mon Sep 17 00:00:00 2001 From: KLASSENTS Date: Wed, 29 Jan 2025 17:07:17 +0700 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB?= =?UTF-8?q?=D0=B0=20=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=D1=8B=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20=D0=B2=D1=82=D0=BE=D1=80=D0=BE=D0=B3=D0=BE=20spi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- variants/elbear_nano/pins_arduino.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/variants/elbear_nano/pins_arduino.h b/variants/elbear_nano/pins_arduino.h index b68c5df..8af0da7 100644 --- a/variants/elbear_nano/pins_arduino.h +++ b/variants/elbear_nano/pins_arduino.h @@ -93,6 +93,7 @@ HAL_TIMER32_CHANNEL_IndexTypeDef pwmPinToTimerChannel(uint32_t digPinNumber); // SPI #define SPI_COMMON_QTY 2 + #define PIN_SPI_SS 10 #define PIN_SPI_MOSI 11 #define PIN_SPI_MISO 12 @@ -101,6 +102,17 @@ static const uint8_t SS = PIN_SPI_SS; static const uint8_t MOSI = PIN_SPI_MOSI; static const uint8_t MISO = PIN_SPI_MISO; static const uint8_t SCK = PIN_SPI_SCK; + + +#define PIN_SPI1_SS 9 +#define PIN_SPI1_MOSI 5 +#define PIN_SPI1_MISO 3 +#define PIN_SPI1_SCK 6 +static const uint8_t SS1 = PIN_SPI1_SS; +static const uint8_t MOSI1 = PIN_SPI1_MOSI; +static const uint8_t MISO1 = PIN_SPI1_MISO; +static const uint8_t SCK1 = PIN_SPI1_SCK; + // config SEL_NSS1 to replace D10 to different controller pin, // because NSS which is D9/D10 by default is needed to spi void spi_onBegin(uint8_t spiNum);