Use NEOPIXEL as case light

Add an option to use the NEOPIXEL LED as case light.
This commit is contained in:
nhchiu 2018-01-16 12:53:18 +08:00 committed by Scott Lahteine
parent 428fbe8228
commit 4a40cf268d
5 changed files with 54 additions and 13 deletions

View file

@ -243,6 +243,10 @@
#define CASE_LIGHT_DEFAULT_ON true // Set default power-up state on
#define CASE_LIGHT_DEFAULT_BRIGHTNESS 105 // Set default power-up brightness (0-255, requires PWM pin)
//#define MENU_ITEM_CASE_LIGHT // Add a Case Light option to the LCD main menu
//#define CASE_LIGHT_USE_NEOPIXEL // Use Neopixel LED as case light, requires NEOPIXEL_LED.
#if ENABLED(CASE_LIGHT_USE_NEOPIXEL)
#define CASE_LIGHT_NEOPIXEL_COLOR { 255, 255, 255, 255 } // { Red, Green, Blue, White }
#endif
#endif
//===========================================================================