added support for snake layer lighting

This commit is contained in:
Sadek Baroudi 2022-12-13 15:49:41 -08:00
parent 29e9018fe5
commit 91c69ebd98
3 changed files with 16 additions and 1 deletions

View File

@ -17,7 +17,7 @@ Help()
echo " -c add CONVERT_TO parameter for a controller (eg -c stemcell)"
echo " -i (interactive mode, take feature selection user input to generate build command)"
echo " -r (run the build command(s), defaults to outputting the build string)"
echo " -e (add environment variables, only used in interactive mode, e.g. RGB_MATRIX_REACTIVE_LAYERS=yes)"
echo " -e (add environment variables, only used in interactive mode, e.g. RGB_MATRIX_REACTIVE_LAYERS=yes or -e \"RGB_LED_RING=yes RGBLIGHT_SNAKE_LAYERS=yes\")"
echo " -h (show this dialog)"
echo ""
echo "Examples: "

View File

@ -62,8 +62,18 @@
#define FP_LAYER_LIGHTING_MODE_5 RGB_MATRIX_SOLID_REACTIVE_SIMPLE
#endif
// To enable this, just pass RGBLIGHT_SNAKE_LAYERS=yes at the command line when building
// Also, you must make sure that RGBLIGHT_MODE_SNAKE is enabled
#if defined(RGBLIGHT_ENABLE) && defined(RGBLIGHT_SNAKE_LAYERS)
#define FP_LAYER_LIGHTING_MODE_2 RGBLIGHT_MODE_SNAKE+1
#define FP_LAYER_LIGHTING_MODE_3 RGBLIGHT_MODE_SNAKE+1
#define FP_LAYER_LIGHTING_MODE_4 RGBLIGHT_MODE_SNAKE+1
#define FP_LAYER_LIGHTING_MODE_5 RGBLIGHT_MODE_SNAKE+1
#endif
// To enable this, just pass RGB_LED_RING=yes at the command line when building
#if defined(RGBLIGHT_ENABLE) && defined(RGB_LED_RING)
#undef RGBLED_NUM
#define RGBLED_NUM 12
#endif

View File

@ -24,6 +24,11 @@ ifeq ($(strip $(RGB_MATRIX_REACTIVE_LAYERS)), yes)
OPT_DEFS += -DRGB_MATRIX_REACTIVE_LAYERS
endif
RGBLIGHT_SNAKE_LAYERS := no
ifeq ($(strip $(RGBLIGHT_SNAKE_LAYERS)), yes)
OPT_DEFS += -DRGBLIGHT_SNAKE_LAYERS
endif
RGB_LED_RING := no
ifeq ($(strip $(RGB_LED_RING)), yes)
OPT_DEFS += -DRGB_LED_RING