diff options
author | 3araht <69518343+3araht@users.noreply.github.com> | 2022-08-14 04:44:29 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-13 20:44:29 +0100 |
commit | e145c7ad3fde668a0d89d0e402f49c0fb6a1b5ed (patch) | |
tree | 4a486bd98f4aec57e7d8f99e667905dbd1438a20 /keyboards/bandominedoni/keymaps/led | |
parent | 95782691d43fbca7bc65109e20cdb9a64b265387 (diff) | |
download | qmk_firmware-e145c7ad3fde668a0d89d0e402f49c0fb6a1b5ed.tar.gz qmk_firmware-e145c7ad3fde668a0d89d0e402f49c0fb6a1b5ed.zip |
Bandominedoni version output feature and a new keymap added (#17947)
* SPLIT_USB_DETECT added.
* lednotg keymap added.
* lednotg missing modification fixed.
* VERSION is available.
* USER00 is used instead of SAFE_RANGE in via/keymap.c
Diffstat (limited to 'keyboards/bandominedoni/keymaps/led')
-rw-r--r-- | keyboards/bandominedoni/keymaps/led/keymap.c | 18 | ||||
-rw-r--r-- | keyboards/bandominedoni/keymaps/led/readme.md | 2 |
2 files changed, 18 insertions, 2 deletions
diff --git a/keyboards/bandominedoni/keymaps/led/keymap.c b/keyboards/bandominedoni/keymaps/led/keymap.c index 305756b5b1..6fe2f4b6f1 100644 --- a/keyboards/bandominedoni/keymaps/led/keymap.c +++ b/keyboards/bandominedoni/keymaps/led/keymap.c @@ -14,6 +14,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include QMK_KEYBOARD_H +#include "version.h" #define DF_COLE DF(_COLEMAK) @@ -54,6 +55,10 @@ enum layer_names { _FN }; +enum custom_keycodes { + VERSION = SAFE_RANGE +}; + // Alias layout macros that expand groups of keys. #define LAYOUT_wrapper(...) LAYOUT(__VA_ARGS__) @@ -142,7 +147,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { _______, MI_OCTD, MI_OCTU, MI_VELD, MI_VELU, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RGB_RMOD, RGB_MOD, - XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, + XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, VERSION, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RGB_SAD, RGB_SAI, RGB_HUD, RGB_HUI, RGB_SPD, RGB_SPI, RGB_VAD, RGB_VAI, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RGB_RMOD, RGB_MOD, EEP_RST, RGB_TOG @@ -177,6 +182,17 @@ void keyboard_post_init_user(void) { rgb_matrix_mode(RGB_MATRIX_RAINBOW_MOVING_CHEVRON); }; +bool process_record_user(uint16_t keycode, keyrecord_t *record) { + switch (keycode) { + case VERSION: // Output firmware info. + if (record->event.pressed) { + SEND_STRING(QMK_KEYBOARD ":" QMK_KEYMAP " @ " QMK_VERSION " | " QMK_BUILDDATE); + } + break; + } + return true; +} + #ifdef RGB_MATRIX_ENABLE void rgb_matrix_indicators_user(void) { if (rgb_matrix_is_enabled()) { // turn the lights on when it is enabled. diff --git a/keyboards/bandominedoni/keymaps/led/readme.md b/keyboards/bandominedoni/keymaps/led/readme.md index e6ec2ad10d..77e709c70b 100644 --- a/keyboards/bandominedoni/keymaps/led/readme.md +++ b/keyboards/bandominedoni/keymaps/led/readme.md @@ -1 +1 @@ -# The default keymap for bandominedoni +# The keymap with led for bandominedoni |