diff options
author | QMK Bot <hello@qmk.fm> | 2022-08-13 19:45:00 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2022-08-13 19:45:00 +0000 |
commit | 97b610e16692fee7c3cc391f4d50264e775f396a (patch) | |
tree | a26e63880fcb35b0a73df4fef58de8c341a47cde /keyboards/bandominedoni/keymaps/via | |
parent | f417ffff5a38539c24da960bbe7e48a742360d1d (diff) | |
parent | e145c7ad3fde668a0d89d0e402f49c0fb6a1b5ed (diff) |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/bandominedoni/keymaps/via')
-rw-r--r-- | keyboards/bandominedoni/keymaps/via/keymap.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/keyboards/bandominedoni/keymaps/via/keymap.c b/keyboards/bandominedoni/keymaps/via/keymap.c index 342ed1d40c..7264853b55 100644 --- a/keyboards/bandominedoni/keymaps/via/keymap.c +++ b/keyboards/bandominedoni/keymaps/via/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" // Defines names for use in layer keycodes and the keymap enum layer_names { @@ -28,6 +29,10 @@ enum layer_names { _FN }; +enum custom_keycodes { + VERSION = USER00 +}; + const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { [_OPEN] = LAYOUT( MI_Gs_1, MI_As_1, MI_Cs_2, MI_F_2, MI_Gs_3, @@ -83,7 +88,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 @@ -115,6 +120,17 @@ void keyboard_post_init_user(void) { my_init(); }; +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. |