From 7ef4aba52c40e8e4638f9b948e271ec41baa321a Mon Sep 17 00:00:00 2001 From: stanrc85 <47038504+stanrc85@users.noreply.github.com> Date: Wed, 10 Feb 2021 09:21:46 -0500 Subject: Userspace updates (#11841) * enable LTO for smaller firmware size * delete since this was added to userspace rules.mk * readme updates and new images * Add -j to compile and flash commands in userpsace * Enable NKRO * Enable NKRO, VIA, LTO by default * Stanrc85-ansi readme update * Stanrc85-alice readme * quick RGB layer indicator fix in keymap --- users/stanrc85/config.h | 1 + users/stanrc85/readme.md | 27 ++++++++++++++++----------- users/stanrc85/rules.mk | 10 +++------- users/stanrc85/stanrc85.c | 4 ++-- 4 files changed, 22 insertions(+), 20 deletions(-) (limited to 'users') diff --git a/users/stanrc85/config.h b/users/stanrc85/config.h index a45f9c861d..60592c3c6b 100644 --- a/users/stanrc85/config.h +++ b/users/stanrc85/config.h @@ -2,6 +2,7 @@ #define TAPPING_TERM 250 #define RETRO_TAPPING +#define FORCE_NKRO #ifdef RGBLIGHT_ENABLE #define RGBLIGHT_LAYERS diff --git a/users/stanrc85/readme.md b/users/stanrc85/readme.md index 9009a71d5f..8dff9c8e30 100644 --- a/users/stanrc85/readme.md +++ b/users/stanrc85/readme.md @@ -1,4 +1,4 @@ - -# Stanrc85's Standard ANSI 60% Layout +# Stanrc85's Standard Layout -Shared keymap between two 60% PCB: +Shared keymap between 60%, 65%, Alice layouts: - 1upkeyboards60HSE -- DZ60 (hotswap) +- Mark65 +- Sneakbox Alice ## Keymap Notes - Layer 0 is default QWERTY layout with additional custom features: @@ -26,12 +27,12 @@ Shared keymap between two 60% PCB: - Tap Dance on `Fn1` for `CTRL+ALT+DEL` and `WIN+L` - Tap Dance on `ESC` for `ESC` and ` ` ` -![Base QWERTY Layer](https://imgur.com/lGcyLJx.png) +![Base QWERTY Layer](https://imgur.com/gvCkVUW.png) - Layer 1 is default QWERTY with no custom features used mostly for gaming - - Enabled by `Fn2+CAPS` from base layer + - Enabled by `Fn2+RCTL` from base layer -![Default ANSI Layer](https://imgur.com/M7T9PNT.png) +![Default ANSI Layer](https://imgur.com/2SAel0K.png) - Layer 2 is Function layer: - F keys @@ -41,12 +42,16 @@ Shared keymap between two 60% PCB: - AHK Mic is used to mute/unmute microphone - AHK Speaker switches audio output between headphones and speakers -![Function Layer](https://imgur.com/YPl0JrU.png) +![Function Layer](https://imgur.com/FUjG0pL.png) - Layer 3 is RGB Underglow control and RESET - - `Fn2+CAPS` used to toggle Default QWERTY layer on and off + - `Fn2+RCTL` used to toggle Default QWERTY layer on and off + - `qmk compile` command on `Fn2+Enter` + - `qmk flash` command on `Fn2+Shift+enter` + +![RGB and RESET Layer](https://imgur.com/UPdhR12.png) + -![RGB and RESET Layer](https://imgur.com/PyB8z7k.png) ### Build -To build the firmware file associated with this keymap, simply run `make your_keyboard:stanrc85-ansi`. +To build the firmware file associated with this keymap, simply run `make your_keyboard:stanrc85-ansi` or `make your_keyboard:stanrc85-alice`. diff --git a/users/stanrc85/rules.mk b/users/stanrc85/rules.mk index 1406c68380..e88d605f5f 100644 --- a/users/stanrc85/rules.mk +++ b/users/stanrc85/rules.mk @@ -6,7 +6,9 @@ BOOTMAGIC_ENABLE = no MOUSEKEY_ENABLE = no AUDIO_ENABLE = no CONSOLE_ENABLE = no -NKRO_ENABLE = no +NKRO_ENABLE = yes +LTO_ENABLE = yes +VIA_ENABLE = yes SRC += stanrc85.c @@ -14,8 +16,6 @@ ifeq ($(strip $(KEYBOARD)), projectkb/alice/rev2) SRC += rgblight_layers.c SRC += startup_fanfare.c OPT_DEFS += -DHAS_INDICATORS - VIA_ENABLE = yes - LTO_ENABLE = no VELOCIKEY_ENABLE=yes endif ifeq ($(strip $(KEYBOARD)), sneakbox/aliceclone) @@ -23,13 +23,9 @@ ifeq ($(strip $(KEYBOARD)), sneakbox/aliceclone) SRC += startup_fanfare.c OPT_DEFS += -DHAS_INDICATORS OPT_DEFS += -DHAS_ROTARY - VIA_ENABLE = yes - LTO_ENABLE = no endif ifeq ($(strip $(KEYBOARD)), tkc/osav2) SRC += rgblight_layers_osa.c - VIA_ENABLE = yes - LTO_ENABLE = no VELOCIKEY_ENABLE=yes endif ifeq ($(strip $(KEYBOARD)), boardsource/the_mark) diff --git a/users/stanrc85/stanrc85.c b/users/stanrc85/stanrc85.c index 8bc52b0ffd..d5e56571d1 100644 --- a/users/stanrc85/stanrc85.c +++ b/users/stanrc85/stanrc85.c @@ -109,11 +109,11 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { uint8_t mods = get_mods(); clear_mods(); if (mods & MOD_MASK_SHIFT) { - send_string_with_delay_P(PSTR("qmk flash -kb " QMK_KEYBOARD " -km " QMK_KEYMAP "\n"), 10); //New way + send_string_with_delay_P(PSTR("qmk flash -j 6 -kb " QMK_KEYBOARD " -km " QMK_KEYMAP "\n"), 10); //New way reset_keyboard(); } else - send_string_with_delay_P(PSTR("qmk compile -kb " QMK_KEYBOARD " -km " QMK_KEYMAP "\n"), 10); //New way + send_string_with_delay_P(PSTR("qmk compile -j 6 -kb " QMK_KEYBOARD " -km " QMK_KEYMAP "\n"), 10); //New way set_mods(mods); } break; -- cgit v1.2.1