From 0262f89bb04431a3842f3f82c19cd0fc7e6a51e7 Mon Sep 17 00:00:00 2001 From: Steve Pomeroy Date: Sat, 22 Aug 2020 11:16:07 -0400 Subject: [PATCH] Allow overriding CLKPIN/DATAPIN --- wled00/NpbWrapper.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/wled00/NpbWrapper.h b/wled00/NpbWrapper.h index b4bfe9b5..2fa6ab40 100644 --- a/wled00/NpbWrapper.h +++ b/wled00/NpbWrapper.h @@ -40,8 +40,12 @@ //END CONFIGURATION #if defined(USE_APA102) || defined(USE_WS2801) || defined(USE_LPD8806) || defined(USE_P9813) - #define CLKPIN 0 - #define DATAPIN 2 + #ifndef CLKPIN + #define CLKPIN 0 + #endif + #ifndef DATAPIN + #define DATAPIN 2 + #endif #if BTNPIN == CLKPIN || BTNPIN == DATAPIN #undef BTNPIN // Deactivate button pin if it conflicts with one of the APA102 pins. #endif