Browse Source

NEOPIXEL overridable on BTT SKR (#20797)

Alexander D. Kanevskiy 4 years ago
parent
commit
0fef29b6e3
No account linked to committer's email address

+ 3
- 1
Marlin/src/pins/lpc1769/pins_BTT_SKR_E3_TURBO.h View File

70
 #endif
70
 #endif
71
 
71
 
72
 // LED driving pin
72
 // LED driving pin
73
-#define NEOPIXEL_PIN                       P1_24
73
+#ifndef NEOPIXEL_PIN
74
+  #define NEOPIXEL_PIN                     P1_24
75
+#endif
74
 
76
 
75
 //
77
 //
76
 // Power Loss Detection
78
 // Power Loss Detection

+ 4
- 1
Marlin/src/pins/stm32f1/pins_BTT_SKR_CR6.h View File

177
 // Misc. Functions
177
 // Misc. Functions
178
 //
178
 //
179
 #define LED_CONTROL_PIN                     PA13
179
 #define LED_CONTROL_PIN                     PA13
180
-#define NEOPIXEL_PIN                        PA8
180
+
181
+#ifndef NEOPIXEL_PIN
182
+  #define NEOPIXEL_PIN                      PA8
183
+#endif

+ 3
- 1
Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_E3_V1_2.h View File

25
 
25
 
26
 #define BOARD_INFO_NAME "BTT SKR Mini E3 V1.2"
26
 #define BOARD_INFO_NAME "BTT SKR Mini E3 V1.2"
27
 
27
 
28
-#define NEOPIXEL_PIN                        PC7   // LED driving pin
28
+#ifndef NEOPIXEL_PIN
29
+  #define NEOPIXEL_PIN                      PC7   // LED driving pin
30
+#endif
29
 
31
 
30
 /**
32
 /**
31
  * TMC2208/TMC2209 stepper drivers
33
  * TMC2208/TMC2209 stepper drivers

+ 6
- 2
Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_E3_V2_0.h View File

39
 // Release PA13/PA14 (led, usb control) from SWD pins
39
 // Release PA13/PA14 (led, usb control) from SWD pins
40
 #define DISABLE_DEBUG
40
 #define DISABLE_DEBUG
41
 
41
 
42
-#define NEOPIXEL_PIN                       PA8   // LED driving pin
42
+#ifndef NEOPIXEL_PIN
43
+  #define NEOPIXEL_PIN                     PA8   // LED driving pin
44
+#endif
43
 
45
 
44
-#define PS_ON_PIN                          PC13  // Power Supply Control
46
+#ifndef PS_ON_PIN
47
+  #define PS_ON_PIN                        PC13  // Power Supply Control
48
+#endif
45
 
49
 
46
 #define FAN1_PIN                           PC7
50
 #define FAN1_PIN                           PC7
47
 
51
 

Loading…
Cancel
Save