Skip to content

Commit

Permalink
config: enable case light for Mega P on servo port 2
Browse files Browse the repository at this point in the history
  • Loading branch information
stklcode committed Jan 11, 2024
1 parent 659df46 commit 47c8019
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Marlin/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -731,12 +731,16 @@
/**
* M355 Case Light on-off / brightness
*/
#if ENABLED(KNUTWURST_4MAXP2)
#if EITHER(KNUTWURST_MEGA_P, KNUTWURST_4MAXP2)
#define CASE_LIGHT_ENABLE
#endif

#if ENABLED(CASE_LIGHT_ENABLE)
#define CASE_LIGHT_PIN 45 // Override the default pin if needed
#if ENABLED(KNUTWURST_4MAXP2)
#define CASE_LIGHT_PIN 45 // Override the default pin if needed
#else
#define CASE_LIGHT_PIN 6
#endif
#define INVERT_CASE_LIGHT false // Set true if Case Light is ON when pin is LOW
#define CASE_LIGHT_DEFAULT_ON true // Set default power-up state on
#define CASE_LIGHT_DEFAULT_BRIGHTNESS 255 // Set default power-up brightness (0-255, requires PWM pin)
Expand Down

0 comments on commit 47c8019

Please sign in to comment.