vulpes majora - added compile time configs for all the rgb combinations
This commit is contained in:
parent
a413f97478
commit
24b96b7aad
|
|
@ -29,6 +29,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#ifdef RGBLIGHT_ENABLE
|
||||
// Use twinkle as the default rgb mode for the layers
|
||||
#define DEFAULT_RGB_LAYER_MODE RGBLIGHT_MODE_TWINKLE+2
|
||||
|
||||
// 6 column rgb config
|
||||
#define RGBLED_NUM 45
|
||||
#define RGBLIGHT_HUE_STEP 4
|
||||
|
|
@ -36,13 +37,26 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#define RGBLIGHT_VAL_STEP 16
|
||||
#define RGBLIGHT_LIMIT_VAL 150 /* The maximum brightness level for RGBLIGHT_ENABLE */
|
||||
|
||||
// 6 column rgb config with center leds
|
||||
#ifdef FP_VM_RGB_6COL_WITH_CENTER
|
||||
#undef RGBLED_NUM
|
||||
#define RGBLED_NUM 49
|
||||
#endif
|
||||
|
||||
// 5 column rgb config
|
||||
#ifdef FP_VM_5COL
|
||||
#ifdef FP_VM_RGB_5COL
|
||||
#undef RGBLED_NUM
|
||||
#define RGBLED_NUM 39
|
||||
#endif
|
||||
|
||||
// 5 column rgb config with center leds
|
||||
#ifdef FP_VM_RGB_5COL_WITH_CENTER
|
||||
#undef RGBLED_NUM
|
||||
#define RGBLED_NUM 43
|
||||
#endif
|
||||
|
||||
// VIK only rgb config
|
||||
#ifdef FP_VM_RGB_VIK_ONLY
|
||||
#ifdef FP_VM_RGB_CENTER_ONLY
|
||||
#undef RGBLED_NUM
|
||||
#define RGBLED_NUM 4
|
||||
#undef RGBLIGHT_LIMIT_VAL
|
||||
|
|
@ -67,13 +81,26 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#define RGB_MATRIX_CENTER {112, 32}
|
||||
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 /* The maximum brightness level for RGB_MATRIX */
|
||||
|
||||
// 6 column rgb config with center leds
|
||||
#ifdef FP_VM_RGB_6COL_WITH_CENTER
|
||||
#undef RGB_MATRIX_LED_COUNT
|
||||
#define RGB_MATRIX_LED_COUNT 49
|
||||
#endif
|
||||
|
||||
// 5 column rgb config
|
||||
#ifdef FP_VM_5COL
|
||||
#ifdef FP_VM_RGB_5COL
|
||||
#undef RGB_MATRIX_LED_COUNT
|
||||
#define RGB_MATRIX_LED_COUNT 39
|
||||
#endif
|
||||
|
||||
// 5 column rgb config with center leds
|
||||
#ifdef FP_VM_RGB_5COL_WITH_CENTER
|
||||
#undef RGB_MATRIX_LED_COUNT
|
||||
#define RGB_MATRIX_LED_COUNT 43
|
||||
#endif
|
||||
|
||||
// VIK only rgb config
|
||||
#ifdef FP_VM_RGB_VIK_ONLY
|
||||
#ifdef FP_VM_RGB_CENTER_ONLY
|
||||
#undef RGB_MATRIX_LED_COUNT
|
||||
#define RGB_MATRIX_LED_COUNT 4
|
||||
#undef RGB_MATRIX_MAXIMUM_BRIGHTNESS
|
||||
|
|
|
|||
|
|
@ -59,15 +59,27 @@ SRC += keyboards/fingerpunch/src/fp_matrix_74hc595_spi.c
|
|||
QUANTUM_LIB_SRC += spi_master.c
|
||||
CUSTOM_MATRIX = lite
|
||||
|
||||
ifeq ($(strip $(FP_VM_RGB_VIK_ONLY)), yes)
|
||||
OPT_DEFS += -DFP_VM_RGB_VIK_ONLY
|
||||
# default is 6 column, specify if building a 6 col with center rgb on vik
|
||||
ifeq ($(strip $(FP_VM_RGB_6COL_WITH_CENTER)), yes)
|
||||
OPT_DEFS += -DFP_VM_RGB_6COL_WITH_CENTER
|
||||
endif
|
||||
|
||||
# default is 6 column, specify if building a 5 col
|
||||
ifeq ($(strip $(FP_VM_5COL)), yes)
|
||||
OPT_DEFS += -DFP_VM_5COL
|
||||
ifeq ($(strip $(FP_VM_RGB_5COL)), yes)
|
||||
OPT_DEFS += -DFP_VM_RGB_5COL
|
||||
endif
|
||||
|
||||
# default is 6 column, specify if building a 5 col with center rgb on vik
|
||||
ifeq ($(strip $(FP_VM_RGB_5COL_WITH_CENTER)), yes)
|
||||
OPT_DEFS += -DFP_VM_RGB_5COL_WITH_CENTER
|
||||
endif
|
||||
|
||||
# default is 6 column, specify if building with center vik leds only
|
||||
ifeq ($(strip $(FP_VM_RGB_CENTER_ONLY)), yes)
|
||||
OPT_DEFS += -DFP_VM_RGB_CENTER_ONLY
|
||||
endif
|
||||
|
||||
|
||||
ifeq ($(strip $(RGB_MATRIX_ENABLE)), yes)
|
||||
RGB_MATRIX_CUSTOM_KB = yes
|
||||
OPT_DEFS += -DRGB_MATRIX_CUSTOM_KB
|
||||
|
|
|
|||
|
|
@ -20,8 +20,26 @@ RGB_MATRIX_ENABLE=yes
|
|||
ENCODER_ENABLE=yes
|
||||
AUDIO_ENABLE=yes
|
||||
HAPTIC_ENABLE=yes
|
||||
FP_VM_RGB_6COL_WITH_CENTER=yes
|
||||
FP_VM_RGB_5COL=yes
|
||||
FP_VM_RGB_5COL_WITH_CENTER=yes
|
||||
FP_VM_RGB_CENTER_ONLY=yes
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
* CIRQUE_ENABLE - enable if you have a cirque trackpad installed
|
||||
* FP_TRACKBALL_ENABLE - enable if you have a trackball installed
|
||||
* RGBLIGHT_ENABLE - enable if you are using leds and want to use qmk rgblight, required if you are using the trackball leds in the center, do not use rgb matrix if using this
|
||||
* RGB_MATRIX_ENABLE - enable if you are using leds and want to use qmk rgb matrix, don't use if you have the trackball leds in the center, as they won't light up
|
||||
* ENCODER_ENABLE - enable if you are using the vik center scroll ring (PER56)
|
||||
* AUDIO_ENABLE - installed on the pcb by default. If you don't like the audio feature, don't enable this
|
||||
* HAPTIC_ENABLE - enable if you installed the pimoroni haptic feedback module
|
||||
* FP_VM_RGB_6COL_WITH_CENTER - enable if you have a 6 col build with rgb and the 4 leds in the center
|
||||
* FP_VM_RGB_5COL - enable if you have a 5 col build with no leds in the center
|
||||
* FP_VM_RGB_5COL_WITH_CENTER - enable if you have a 5 col build with leds in the center
|
||||
* FP_VM_RGB_CENTER_ONLY - enable if you have no per key leds, but installed the 4 in the center
|
||||
|
||||
## Build Guide
|
||||
|
||||
See:
|
||||
|
|
|
|||
Loading…
Reference in New Issue