small changes
This commit is contained in:
parent
5a5e7e6b8c
commit
ba9acba868
3 changed files with 7 additions and 3 deletions
2
config.h
2
config.h
|
@ -47,5 +47,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
//#define HOLD_ON_OTHER_KEY_PRESS
|
//#define HOLD_ON_OTHER_KEY_PRESS
|
||||||
|
|
||||||
#define DYNAMIC_KEYMAP_LAYER_COUNT 5
|
#define DYNAMIC_KEYMAP_LAYER_COUNT 5
|
||||||
#define TRI_LAYER_ADJUST_LAYER 4
|
#define TRI_LAYER_ADJUST_LAYER 5
|
||||||
#define OLED_FONT_H "keyboards/crkbd/lib/glcdfont.c"
|
#define OLED_FONT_H "keyboards/crkbd/lib/glcdfont.c"
|
||||||
|
|
7
keymap.c
7
keymap.c
|
@ -38,10 +38,10 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) {
|
||||||
}
|
}
|
||||||
|
|
||||||
#define L_BASE 0
|
#define L_BASE 0
|
||||||
|
#define L_ALT 2
|
||||||
#define L_SYM 4
|
#define L_SYM 4
|
||||||
#define L_NUM 8
|
#define L_NUM 8
|
||||||
#define L_FN 16
|
#define L_FN 16
|
||||||
#define L_ALT 2
|
|
||||||
|
|
||||||
void oled_render_layer_state(void) {
|
void oled_render_layer_state(void) {
|
||||||
oled_write_P(PSTR("Layer: "), false);
|
oled_write_P(PSTR("Layer: "), false);
|
||||||
|
@ -58,9 +58,12 @@ void oled_render_layer_state(void) {
|
||||||
case L_FN:
|
case L_FN:
|
||||||
oled_write_ln_P(PSTR("Fn"), false);
|
oled_write_ln_P(PSTR("Fn"), false);
|
||||||
break;
|
break;
|
||||||
default:
|
case L_ALT:
|
||||||
oled_write_ln_P(PSTR("Gaming"), false);
|
oled_write_ln_P(PSTR("Gaming"), false);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
oled_write_ln_P(PSTR("Other"), false);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
1
rules.mk
1
rules.mk
|
@ -5,3 +5,4 @@ OLED_ENABLE = yes
|
||||||
OLED_DRIVER = SSD1306
|
OLED_DRIVER = SSD1306
|
||||||
LTO_ENABLE = yes
|
LTO_ENABLE = yes
|
||||||
DYNAMIC_MACRO_ENABLE = yes
|
DYNAMIC_MACRO_ENABLE = yes
|
||||||
|
TRI_LAYER_ENABLE = yes
|
||||||
|
|
Loading…
Reference in a new issue