mks-viva
4 년 전
No account linked to committer's email address
|
@@ -227,9 +227,25 @@
|
227
|
227
|
// Misc. Functions
|
228
|
228
|
//
|
229
|
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
|
* _____ _____
|