mirror of
https://github.com/qmk/qmk_userspace.git
synced 2025-05-05 15:14:17 -04:00
Big cleanup
- standardize the documentation in my config files - Removed all the unused/unneeded feature .c/.h files (including RGBmatrix) - now that I think I have my featureset set, I consolidated my rules.mk to lessen the 'include if' commands
This commit is contained in:
parent
d6c6d5d731
commit
c5cb76fab5
15 changed files with 53 additions and 326 deletions
|
@ -1,4 +0,0 @@
|
|||
#include "encoder.h"
|
||||
|
||||
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
#pragma once
|
||||
#include "t4corun.h"
|
|
@ -1 +0,0 @@
|
|||
#include "mouse.h"
|
|
@ -1,2 +0,0 @@
|
|||
#pragma once
|
||||
#include "t4corun.h"
|
|
@ -1,101 +0,0 @@
|
|||
#include "rgbmatrix.h"
|
||||
|
||||
/*
|
||||
Achieves the following
|
||||
- layer tap key indicator when we are in layer
|
||||
- Caps lock and scroll lock indicators when activated
|
||||
- mouse button backlight when in mouse layer
|
||||
- modifier indicators when activated
|
||||
- default layer indicator
|
||||
|
||||
Really only for the charybdis nano, and even then I don't really look down at the
|
||||
RGB
|
||||
*/
|
||||
|
||||
bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max){
|
||||
|
||||
/*
|
||||
uint8_t current_layer = get_highest_layer(layer_state);
|
||||
uint8_t current_default_layer = get_highest_layer(default_layer_state);
|
||||
uint8_t current_mod = get_mods();
|
||||
uint8_t current_osm = get_oneshot_mods();
|
||||
|
||||
switch(current_layer) {
|
||||
|
||||
case _NAVIGATION:
|
||||
RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(LED_NAVIGATION, KEY_LAYER_COLOR);
|
||||
break;
|
||||
|
||||
case _NUMBER:
|
||||
RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(LED_NUMBER, KEY_LAYER_COLOR);
|
||||
break;
|
||||
|
||||
case _SYMBOL:
|
||||
RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(LED_SYMBOL_L, KEY_TRILAYER_COLOR);
|
||||
RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(LED_SYMBOL_R, KEY_TRILAYER_COLOR);
|
||||
break;
|
||||
|
||||
case _FUNCTION:
|
||||
RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(LED_FUNCTION, KEY_TRILAYER_COLOR);
|
||||
|
||||
RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(LED_DMACRO_R1, KEY_MACROREC_COLOR);
|
||||
RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(LED_DMACRO_P1, KEY_MACROPLY_COLOR);
|
||||
RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(LED_DMACRO_R2, KEY_MACROREC_COLOR);
|
||||
RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(LED_DMACRO_P2, KEY_MACROPLY_COLOR);
|
||||
break;
|
||||
|
||||
case _MOUSE:
|
||||
RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(LED_MOUSE, KEY_LAYER_COLOR);
|
||||
break;
|
||||
|
||||
case _CONFIG:
|
||||
RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(LED_CONFIG, KEY_LAYER_COLOR);
|
||||
RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(LED_RESET, KEY_RESET_COLOR);
|
||||
|
||||
switch (current_default_layer) {
|
||||
|
||||
case _DEFAULT_LAYER_1:
|
||||
RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(LED_QWERTY, KEY_DEFAULTLAYER_COLOR);
|
||||
break;
|
||||
|
||||
case _DEFAULT_LAYER_2:
|
||||
RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(LED_COLEMAKDH, KEY_DEFAULTLAYER_COLOR);
|
||||
break;
|
||||
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
if ( (current_mod | current_osm) & MOD_MASK_SHIFT ) {
|
||||
RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(LED_SHIFT_T, MOD_SHIFT_COLOR);
|
||||
RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(LED_SHIFT_L, MOD_SHIFT_COLOR);
|
||||
RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(LED_SHIFT_R, MOD_SHIFT_COLOR);
|
||||
}
|
||||
|
||||
if ( (current_mod | current_osm) & MOD_MASK_CTRL ) {
|
||||
RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(LED_CTRL_L, MOD_CTRL_COLOR);
|
||||
RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(LED_CTRL_R, MOD_CTRL_COLOR);
|
||||
}
|
||||
|
||||
if ( (current_mod | current_osm) & MOD_MASK_ALT ) {
|
||||
RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(LED_ALT_L, MOD_ALT_COLOR);
|
||||
RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(LED_ALT_R, MOD_ALT_COLOR);
|
||||
}
|
||||
|
||||
if ( (current_mod | current_osm) & MOD_MASK_GUI ) {
|
||||
RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(LED_GUI_L, MOD_GUI_COLOR);
|
||||
RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(LED_GUI_R, MOD_GUI_COLOR);
|
||||
}
|
||||
|
||||
if ( host_keyboard_led_state().caps_lock || is_caps_word_on() ) {
|
||||
RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(LED_CAPSLOCK, CAPSLOCK_COLOR);
|
||||
}
|
||||
|
||||
if ( host_keyboard_led_state().scroll_lock) {
|
||||
RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(LED_SCRLOCK, SCROLLOCK_COLOR);
|
||||
}
|
||||
|
||||
*/
|
||||
return false;
|
||||
|
||||
}
|
|
@ -1,111 +0,0 @@
|
|||
#pragma once
|
||||
#include "t4corun.h"
|
||||
|
||||
/*
|
||||
Color preview
|
||||
|
||||
( 0, RGB_AZURE);
|
||||
( 1, RGB_BLACK);
|
||||
( 2, RGB_BLUE);
|
||||
( 3, RGB_CHARTREUSE);
|
||||
( 4, RGB_CORAL);
|
||||
( 5, RGB_CYAN);
|
||||
( 6, RGB_GOLD);
|
||||
( 7, RGB_GOLDENROD);
|
||||
( 8, RGB_GREEN);
|
||||
( 9, RGB_MAGENTA);
|
||||
( 10, RGB_ORANGE);
|
||||
( 11, RGB_PINK);
|
||||
( 14, RGB_PURPLE);
|
||||
( 13, RGB_RED);
|
||||
( 12, RGB_SPRINGGREEN);
|
||||
( 32, RGB_TEAL);
|
||||
( 29, RGB_TURQUOISE);
|
||||
( 24, RGB_WHITE);
|
||||
( 23, RGB_YELLOW);
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#define LAYER_NAVIGATION_COLOR RGB_AZURE
|
||||
#define LAYER_SYMBOL_COLOR RGB_CYAN
|
||||
#define LAYER_NUMBER_COLOR RGB_PURPLE
|
||||
#define LAYER_MOUSE_COLOR RGB_CORAL
|
||||
#define LAYER_CONFIG_COLOR RGB_GOLDENROD
|
||||
|
||||
#define KEY_LAYER_COLOR RGB_AZURE
|
||||
#define KEY_TRILAYER_COLOR RGB_PURPLE
|
||||
#define KEY_DEFAULTLAYER_COLOR RGB_PURPLE
|
||||
#define KEY_RESET_COLOR RGB_MAGENTA
|
||||
#define KEY_MACROREC_COLOR RGB_PINK
|
||||
#define KEY_MACROPLY_COLOR RGB_TURQUOISE
|
||||
|
||||
|
||||
#define MOD_SHIFT_COLOR RGB_WHITE
|
||||
#define MOD_CTRL_COLOR RGB_CORAL
|
||||
#define MOD_ALT_COLOR RGB_PINK
|
||||
#define MOD_GUI_COLOR RGB_GOLDENROD
|
||||
|
||||
#define CAPSLOCK_COLOR RGB_WHITE
|
||||
#define SCROLLOCK_COLOR RGB_WHITE
|
||||
|
||||
//so we can send the predefined RGB colors without requiring separate RGB values
|
||||
#define RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(...) RGB_MATRIX_INDICATOR_SET_COLOR(__VA_ARGS__)
|
||||
|
||||
/* qmk_firmware\keyboards\bastardkb\charybdis\3x5\3x5.c
|
||||
* ╭────────────────────╮ ╭────────────────────╮
|
||||
* 2 3 8 9 12 30 27 26 21 20
|
||||
* ├────────────────────┤ ├────────────────────┤
|
||||
* 1 4 7 10 13 31 28 25 22 19
|
||||
* ├────────────────────┤ ├────────────────────┤
|
||||
* 0 5 6 11 14 32 29 24 23 18
|
||||
* ╰────────────────────╯ ╰────────────────────╯
|
||||
* 15 16 17 33 34 XX
|
||||
* ╰────────────╯ ╰────────────╯
|
||||
*/
|
||||
|
||||
#if defined(KEYBOARD_bastardkb_charybdis_3x5)
|
||||
//layers
|
||||
# define LED_NUMBER 16
|
||||
# define LED_NAVIGATION 34
|
||||
# define LED_MOUSE 6
|
||||
# define LED_SYMBOL_L 16
|
||||
# define LED_SYMBOL_R 34
|
||||
# define LED_CONFIG 20
|
||||
# define LED_FUNCTION 9
|
||||
|
||||
//base layers
|
||||
# define LED_QWERTY 17
|
||||
# define LED_COLEMAKDH 16
|
||||
|
||||
//indicators
|
||||
# define LED_CAPSLOCK 31
|
||||
# define LED_SCRLOCK 13
|
||||
|
||||
//dynamic macros
|
||||
# define LED_DMACRO_R1 34
|
||||
# define LED_DMACRO_P1 33
|
||||
# define LED_DMACRO_R2 3
|
||||
# define LED_DMACRO_P2 2
|
||||
|
||||
//shift keys
|
||||
# define LED_SHIFT_T 17
|
||||
# define LED_SHIFT_L 10
|
||||
# define LED_SHIFT_R 28
|
||||
|
||||
//control keys
|
||||
# define LED_CTRL_L 7
|
||||
# define LED_CTRL_R 25
|
||||
|
||||
//alt keys
|
||||
# define LED_ALT_L 4
|
||||
# define LED_ALT_R 22
|
||||
|
||||
//GUI keys
|
||||
# define LED_GUI_L 1
|
||||
# define LED_GUI_R 19
|
||||
|
||||
//Reset LED
|
||||
# define LED_RESET 26
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue