From e8fee49dc838a0ebe860b520c4700a19b04886d6 Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Wed, 21 Jun 2023 19:59:35 +0200 Subject: [PATCH] Allow the non-existence of the HOYMILES_PIN_ defines --- src/PinMapping.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/PinMapping.cpp b/src/PinMapping.cpp index 9cbcd87..b9532d6 100644 --- a/src/PinMapping.cpp +++ b/src/PinMapping.cpp @@ -38,6 +38,30 @@ #define LED1 -1 #endif +#ifndef HOYMILES_PIN_SCLK +#define HOYMILES_PIN_SCLK -1 +#endif + +#ifndef HOYMILES_PIN_CS +#define HOYMILES_PIN_CS -1 +#endif + +#ifndef HOYMILES_PIN_CE +#define HOYMILES_PIN_CE -1 +#endif + +#ifndef HOYMILES_PIN_IRQ +#define HOYMILES_PIN_IRQ -1 +#endif + +#ifndef HOYMILES_PIN_MISO +#define HOYMILES_PIN_MISO -1 +#endif + +#ifndef HOYMILES_PIN_MOSI +#define HOYMILES_PIN_MOSI -1 +#endif + #ifndef CMT_CLK #define CMT_CLK -1 #endif