From e8afc10a93b0e6298c904898005142339a690ea7 Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Sun, 4 Nov 2018 12:25:50 +0100 Subject: [PATCH] lopy4.h sanitized --- src/hal/lopy4.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/hal/lopy4.h b/src/hal/lopy4.h index 6b93baad..e98408b1 100644 --- a/src/hal/lopy4.h +++ b/src/hal/lopy4.h @@ -6,12 +6,13 @@ // Hardware related definitions for Pycom LoPy4 Board #define HAS_LORA 1 // comment out if device shall not send data via LoRa + #define HAS_SPI 1 // comment out if device shall not send data via SPI -// pin definitions for SPI slave interface -#define SPI_MOSI GPIO_NUM_22 -#define SPI_MISO GPIO_NUM_33 -#define SPI_SCLK GPIO_NUM_26 -#define SPI_CS GPIO_NUM_36 +// pin definitions for local wired SPI slave interface +#define SPI_MOSI (22) +#define SPI_MISO (33) +#define SPI_SCLK (26) +#define SPI_CS (36) #define CFG_sx1276_radio 1 //#define HAS_LED NOT_A_PIN // LoPy4 has no on board mono LED, we use on board RGB LED