diff options
author | QMK Bot <hello@qmk.fm> | 2022-09-30 23:33:56 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2022-09-30 23:33:56 +0000 |
commit | 165d2e867dd208bc8673672aad35a4a935bedea1 (patch) | |
tree | 388f81be32d0eb99619e1596032ae8cf4a623e8c /keyboards/tweetydabird/lbs4/keymaps/default | |
parent | 82a996ad2d2c8cb945429c9301fdedc99816d70e (diff) | |
parent | 2b33d2c098e3bda50fde67fb49f856e2bb3ab1b5 (diff) |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/tweetydabird/lbs4/keymaps/default')
-rw-r--r-- | keyboards/tweetydabird/lbs4/keymaps/default/keymap.c | 35 | ||||
-rw-r--r-- | keyboards/tweetydabird/lbs4/keymaps/default/readme.md | 5 |
2 files changed, 40 insertions, 0 deletions
diff --git a/keyboards/tweetydabird/lbs4/keymaps/default/keymap.c b/keyboards/tweetydabird/lbs4/keymaps/default/keymap.c new file mode 100644 index 0000000000..3817b0f884 --- /dev/null +++ b/keyboards/tweetydabird/lbs4/keymaps/default/keymap.c @@ -0,0 +1,35 @@ +// Copyright 2022 Markus Knutsson (@TweetyDaBird) +// SPDX-License-Identifier: GPL-2.0-or-later + +#include QMK_KEYBOARD_H + +// Defines names for use in layer keycodes and the keymap +enum layer_names { + _BASE, + _RGB +}; + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + /* Base */ + [_BASE] = LAYOUT( + KC_MPLY, + TO(_RGB), KC_MSEL, + KC_MPRV, KC_MNXT + ), + [_RGB] = LAYOUT( + KC_MPLY, + TO(_BASE), RGB_VAI, + RGB_TOG, RGB_VAD + ) +}; + +bool encoder_update_user(uint8_t index, bool clockwise) { + if (index == 0) { + if (clockwise) { + tap_code(KC_VOLU); + } else { + tap_code(KC_VOLD); + } + } + return true; +}; diff --git a/keyboards/tweetydabird/lbs4/keymaps/default/readme.md b/keyboards/tweetydabird/lbs4/keymaps/default/readme.md new file mode 100644 index 0000000000..09501d9231 --- /dev/null +++ b/keyboards/tweetydabird/lbs4/keymaps/default/readme.md @@ -0,0 +1,5 @@ +# The default keymap for lbs4 + +This is a very basic layout using LSB4 as media playback buttons. + +![lsb4](https://imgur.com/hCDdQIc)
\ No newline at end of file |