Browse Source

Update MKS SGen-L V2 RGB LED pins (#19762)

mks-viva 4 years ago
parent
commit
a4b89e67c6
No account linked to committer's email address
1 changed files with 19 additions and 3 deletions
  1. 19
    3
      Marlin/src/pins/lpc1769/pins_MKS_SGEN_L_V2.h

+ 19
- 3
Marlin/src/pins/lpc1769/pins_MKS_SGEN_L_V2.h View File

227
 // Misc. Functions
227
 // Misc. Functions
228
 //
228
 //
229
 #define LED_PIN                            P1_18  // Used as a status indicator
229
 #define LED_PIN                            P1_18  // Used as a status indicator
230
-#define LED2_PIN                           P1_19
231
-#define LED3_PIN                           P1_20
232
-#define LED4_PIN                           P1_21
230
+
231
+//
232
+// RGB LED
233
+//
234
+#if ENABLED(RGB_LED)
235
+  #ifndef RGB_LED_R_PIN
236
+    #define RGB_LED_R_PIN                  P1_19
237
+  #endif
238
+  #ifndef RGB_LED_G_PIN
239
+    #define RGB_LED_G_PIN                  P1_20
240
+  #endif
241
+  #ifndef RGB_LED_B_PIN
242
+    #define RGB_LED_B_PIN                  P1_21
243
+  #endif
244
+#else
245
+  #define LED2_PIN                         P1_19  // Initialized by HAL/LPC1768/main.cpp
246
+  #define LED3_PIN                         P1_20
247
+  #define LED4_PIN                         P1_21
248
+#endif
233
 
249
 
234
 /**
250
 /**
235
  *                _____                                            _____
251
  *                _____                                            _____

Loading…
Cancel
Save