Merge pull request #1109 from xxv/xxv-override-clkdata

Allow overriding CLKPIN/DATAPIN
pull/1125/head
Aircoookie 2020-08-25 10:30:24 +02:00 zatwierdzone przez GitHub
commit 5a98993df9
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -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