Allow overriding CLKPIN/DATAPIN

This commit is contained in:
Steve Pomeroy 2020-08-22 11:16:07 -04:00
parent a8c530a3a9
commit 0262f89bb0

View File

@ -40,8 +40,12 @@
//END CONFIGURATION //END CONFIGURATION
#if defined(USE_APA102) || defined(USE_WS2801) || defined(USE_LPD8806) || defined(USE_P9813) #if defined(USE_APA102) || defined(USE_WS2801) || defined(USE_LPD8806) || defined(USE_P9813)
#define CLKPIN 0 #ifndef CLKPIN
#define DATAPIN 2 #define CLKPIN 0
#endif
#ifndef DATAPIN
#define DATAPIN 2
#endif
#if BTNPIN == CLKPIN || BTNPIN == DATAPIN #if BTNPIN == CLKPIN || BTNPIN == DATAPIN
#undef BTNPIN // Deactivate button pin if it conflicts with one of the APA102 pins. #undef BTNPIN // Deactivate button pin if it conflicts with one of the APA102 pins.
#endif #endif