From b1c870a8a39ed25c7cf638a9eb67bb5029f552de Mon Sep 17 00:00:00 2001 From: Sadek Baroudi Date: Mon, 9 Jan 2023 23:01:07 -0800 Subject: [PATCH] added rgblight twinkle mode, and added new color, peach orange --- keyboards/fingerpunch/README.md | 1 + keyboards/fingerpunch/fp_color.h | 1 + users/sadekbaroudi/config.h | 17 +++++++++++++---- users/sadekbaroudi/rules.mk | 5 +++++ 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/keyboards/fingerpunch/README.md b/keyboards/fingerpunch/README.md index 064b2baa31..b57e687799 100644 --- a/keyboards/fingerpunch/README.md +++ b/keyboards/fingerpunch/README.md @@ -182,6 +182,7 @@ Please note that the `FP_LAYER_LIGHTING_AUTO_MOUSE_ENABLE` will be automatically | `FP_HSV_LIME` | `63, 225, 255` | https://encycolorpedia.com/9efd38 | | `FP_HSV_MELON` | `0, 180, 255` | https://encycolorpedia.com/febaad | | `FP_HSV_MINT` | `84, 185, 255` | https://encycolorpedia.com/98ff98 | +| `FP_HSV_PEACH_ORANGE` | `21, 220, 255` | https://encycolorpedia.com/ffcc99 | ### Vial only diff --git a/keyboards/fingerpunch/fp_color.h b/keyboards/fingerpunch/fp_color.h index cfa524e282..eb5ebf56ef 100644 --- a/keyboards/fingerpunch/fp_color.h +++ b/keyboards/fingerpunch/fp_color.h @@ -19,3 +19,4 @@ #define FP_HSV_LIME 63, 225, 255 #define FP_HSV_MELON 0, 180, 255 #define FP_HSV_MINT 84, 185, 255 +#define FP_HSV_PEACH_ORANGE 21, 220, 255 diff --git a/users/sadekbaroudi/config.h b/users/sadekbaroudi/config.h index aea323c47f..2d43f9dd41 100755 --- a/users/sadekbaroudi/config.h +++ b/users/sadekbaroudi/config.h @@ -33,15 +33,15 @@ // #define FP_LAYER_LIGHTING_AUTO_MOUSE_ENABLE +#define FP_POINTING_SNIPING_LAYER_ENABLE +#define FP_POINTING_SCROLLING_LAYER_ENABLE +#define FP_POINTING_ZOOMING_LAYER_ENABLE + #define FP_LAYER_LIGHTING_HUE_2 FP_HSV_MINT #define FP_LAYER_LIGHTING_HUE_3 FP_HSV_LAVENDER #define FP_LAYER_LIGHTING_HUE_4 FP_HSV_LEMON #define FP_LAYER_LIGHTING_HUE_5 FP_HSV_MELON -#define FP_POINTING_SNIPING_LAYER_ENABLE -#define FP_POINTING_SCROLLING_LAYER_ENABLE -#define FP_POINTING_ZOOMING_LAYER_ENABLE - #ifdef FP_POINTING_SCROLLING_LAYER #undef FP_POINTING_SCROLLING_LAYER #endif @@ -71,6 +71,15 @@ #define FP_LAYER_LIGHTING_MODE_5 RGBLIGHT_MODE_SNAKE+1 #endif +// To enable this, just pass RGBLIGHT_TWINKLE_LAYERS=yes at the command line when building +// Also, you must make sure that RGBLIGHT_MODE_TWINKLE is enabled +#if defined(RGBLIGHT_ENABLE) && defined(RGBLIGHT_TWINKLE_LAYERS) +#define FP_LAYER_LIGHTING_MODE_2 RGBLIGHT_MODE_TWINKLE+1 +#define FP_LAYER_LIGHTING_MODE_3 RGBLIGHT_MODE_TWINKLE+1 +#define FP_LAYER_LIGHTING_MODE_4 RGBLIGHT_MODE_TWINKLE+1 +#define FP_LAYER_LIGHTING_MODE_5 RGBLIGHT_MODE_TWINKLE+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 diff --git a/users/sadekbaroudi/rules.mk b/users/sadekbaroudi/rules.mk index 02aebce629..79f7de94b6 100755 --- a/users/sadekbaroudi/rules.mk +++ b/users/sadekbaroudi/rules.mk @@ -29,6 +29,11 @@ ifeq ($(strip $(RGBLIGHT_SNAKE_LAYERS)), yes) OPT_DEFS += -DRGBLIGHT_SNAKE_LAYERS endif +RGBLIGHT_TWINKLE_LAYERS := no +ifeq ($(strip $(RGBLIGHT_TWINKLE_LAYERS)), yes) + OPT_DEFS += -DRGBLIGHT_TWINKLE_LAYERS +endif + RGB_LED_RING := no ifeq ($(strip $(RGB_LED_RING)), yes) OPT_DEFS += -DRGB_LED_RING