summaryrefslogtreecommitdiff
path: root/keyboards/bandominedoni/keymaps/default/keymap.c
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2022-08-13 19:45:00 +0000
committerQMK Bot <hello@qmk.fm>2022-08-13 19:45:00 +0000
commit97b610e16692fee7c3cc391f4d50264e775f396a (patch)
treea26e63880fcb35b0a73df4fef58de8c341a47cde /keyboards/bandominedoni/keymaps/default/keymap.c
parentf417ffff5a38539c24da960bbe7e48a742360d1d (diff)
parente145c7ad3fde668a0d89d0e402f49c0fb6a1b5ed (diff)
downloadqmk_firmware-97b610e16692fee7c3cc391f4d50264e775f396a.tar.gz
qmk_firmware-97b610e16692fee7c3cc391f4d50264e775f396a.zip
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/bandominedoni/keymaps/default/keymap.c')
-rw-r--r--keyboards/bandominedoni/keymaps/default/keymap.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/keyboards/bandominedoni/keymaps/default/keymap.c b/keyboards/bandominedoni/keymaps/default/keymap.c
index bfa49dfe17..e01253c216 100644
--- a/keyboards/bandominedoni/keymaps/default/keymap.c
+++ b/keyboards/bandominedoni/keymaps/default/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 {
@@ -27,6 +28,9 @@ enum layer_names {
_FN
};
+enum custom_keycodes {
+ VERSION = SAFE_RANGE
+};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_OPEN] = LAYOUT(
@@ -68,7 +72,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______, MI_OCTD, MI_OCTU, MI_VELD, MI_VELU, _______,
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
- XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
+ XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, VERSION,
_______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
@@ -82,3 +86,14 @@ void keyboard_post_init_user(void) {
// avoid using 127 since it is used as a special number in some sound sources.
midi_config.velocity = MIDI_INITIAL_VELOCITY;
};
+
+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;
+}