Skip to content

Commit

Permalink
Update MKS SGen-L V2 RGB LED pins (MarlinFirmware#19762)
Browse files Browse the repository at this point in the history
  • Loading branch information
mks-viva authored and tharts committed Jan 6, 2021
1 parent de9aae4 commit 60bbb4b
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions Marlin/src/pins/lpc1769/pins_MKS_SGEN_L_V2.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,25 @@
// Misc. Functions
//
#define LED_PIN P1_18 // Used as a status indicator
#define LED2_PIN P1_19
#define LED3_PIN P1_20
#define LED4_PIN P1_21

//
// RGB LED
//
#if ENABLED(RGB_LED)
#ifndef RGB_LED_R_PIN
#define RGB_LED_R_PIN P1_19
#endif
#ifndef RGB_LED_G_PIN
#define RGB_LED_G_PIN P1_20
#endif
#ifndef RGB_LED_B_PIN
#define RGB_LED_B_PIN P1_21
#endif
#else
#define LED2_PIN P1_19 // Initialized by HAL/LPC1768/main.cpp
#define LED3_PIN P1_20
#define LED4_PIN P1_21
#endif

/**
* _____ _____
Expand Down

0 comments on commit 60bbb4b

Please sign in to comment.