summaryrefslogtreecommitdiff
path: root/keyboards/keebio/quefrency/keymaps
diff options
context:
space:
mode:
authorDanny <nooges@users.noreply.github.com>2020-01-28 17:13:57 -0500
committerGitHub <noreply@github.com>2020-01-28 14:13:57 -0800
commit2abc0e17e7142f058b39998e16d0896286bd8e1f (patch)
tree74532e5b606f5e62defcc9d9732e804627c6759a /keyboards/keebio/quefrency/keymaps
parent197a401be6585b0b9aad3ca02ec1829e894e9a62 (diff)
[Keyboard] Add Quefrency Rev 2 (#8001)
* Add Quefrency Rev. 2 * Add encoder support * Add RGB LED mapping info * Add diode direction * Revert removal of default folder for CI purposes * Remove unneeded lines * Rename ISO layout macros
Diffstat (limited to 'keyboards/keebio/quefrency/keymaps')
-rw-r--r--keyboards/keebio/quefrency/keymaps/default65/keymap.c17
-rw-r--r--keyboards/keebio/quefrency/keymaps/default65macro/keymap.c17
2 files changed, 34 insertions, 0 deletions
diff --git a/keyboards/keebio/quefrency/keymaps/default65/keymap.c b/keyboards/keebio/quefrency/keymaps/default65/keymap.c
index 3e77731671..4ac622f8ed 100644
--- a/keyboards/keebio/quefrency/keymaps/default65/keymap.c
+++ b/keyboards/keebio/quefrency/keymaps/default65/keymap.c
@@ -30,3 +30,20 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_TILD, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
)
};
+
+void encoder_update_user(uint8_t index, bool clockwise) {
+ if (index == 0) {
+ if (clockwise) {
+ tap_code(KC_PGDN);
+ } else {
+ tap_code(KC_PGUP);
+ }
+ }
+ else if (index == 1) {
+ if (clockwise) {
+ tap_code(KC_VOLU);
+ } else {
+ tap_code(KC_VOLD);
+ }
+ }
+}
diff --git a/keyboards/keebio/quefrency/keymaps/default65macro/keymap.c b/keyboards/keebio/quefrency/keymaps/default65macro/keymap.c
index 4503291d28..478152006e 100644
--- a/keyboards/keebio/quefrency/keymaps/default65macro/keymap.c
+++ b/keyboards/keebio/quefrency/keymaps/default65macro/keymap.c
@@ -30,3 +30,20 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______, _______, KC_TILD, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
)
};
+
+void encoder_update_user(uint8_t index, bool clockwise) {
+ if (index == 0) {
+ if (clockwise) {
+ tap_code(KC_PGDN);
+ } else {
+ tap_code(KC_PGUP);
+ }
+ }
+ else if (index == 1) {
+ if (clockwise) {
+ tap_code(KC_VOLU);
+ } else {
+ tap_code(KC_VOLD);
+ }
+ }
+}