summaryrefslogtreecommitdiff
path: root/keyboards/keebio/sinc/keymaps/lickel
diff options
context:
space:
mode:
authorAdam Lickel <adam@lickel.com>2022-12-10 12:46:24 -0800
committerGitHub <noreply@github.com>2022-12-10 12:46:24 -0800
commit143b7a3c3dc3bb3474222119054a5f1979832862 (patch)
treeb1ee23fd5eee8fa9cea80e52bc6c68abda643252 /keyboards/keebio/sinc/keymaps/lickel
parent89fdafc27d2dc8652886950655352ce8628a5d57 (diff)
[Keymap] Keeb.io Sinc - Lickel keymap update (#19188)
Diffstat (limited to 'keyboards/keebio/sinc/keymaps/lickel')
-rw-r--r--keyboards/keebio/sinc/keymaps/lickel/keymap.c29
-rw-r--r--keyboards/keebio/sinc/keymaps/lickel/readme.md4
-rw-r--r--keyboards/keebio/sinc/keymaps/lickel/rules.mk1
3 files changed, 14 insertions, 20 deletions
diff --git a/keyboards/keebio/sinc/keymaps/lickel/keymap.c b/keyboards/keebio/sinc/keymaps/lickel/keymap.c
index e6d5291ae7..11656a755c 100644
--- a/keyboards/keebio/sinc/keymaps/lickel/keymap.c
+++ b/keyboards/keebio/sinc/keymaps/lickel/keymap.c
@@ -62,30 +62,19 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
- )
+ ),
};
// clang-format on
-bool encoder_update_user(uint8_t index, bool clockwise) {
- if (index == 0) {
- if (clockwise) {
- tap_code(KC_PGDN);
- } else {
- tap_code(KC_PGUP);
- }
- return false;
- } else if (index == 1) {
- if (clockwise) {
- tap_code(KC_VOLU);
- } else {
- tap_code(KC_VOLD);
- }
- return false;
- } else {
- return true;
- }
-}
+#ifdef ENCODER_MAP_ENABLE
+const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
+ [0] = { ENCODER_CCW_CW(KC_PGUP, KC_PGDN), ENCODER_CCW_CW(KC_VOLU, KC_VOLD) },
+ [1] = { ENCODER_CCW_CW(RGB_MOD, RGB_RMOD), ENCODER_CCW_CW(KC_MNXT, KC_MPRV) },
+ [2] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______) },
+ [3] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______) },
+};
+#endif
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
diff --git a/keyboards/keebio/sinc/keymaps/lickel/readme.md b/keyboards/keebio/sinc/keymaps/lickel/readme.md
index 7be7baae29..faf130dec5 100644
--- a/keyboards/keebio/sinc/keymaps/lickel/readme.md
+++ b/keyboards/keebio/sinc/keymaps/lickel/readme.md
@@ -13,6 +13,10 @@
## Changelog
+### 2022-12-09 - 1.2
+
+- Add ENCODER_MAP_ENABLE from default VIA definition
+
### 2022-03-04 - 1.1
- Correct function row to change LED backlights, not underglow
diff --git a/keyboards/keebio/sinc/keymaps/lickel/rules.mk b/keyboards/keebio/sinc/keymaps/lickel/rules.mk
index 36b7ba9cbc..1189f4ad19 100644
--- a/keyboards/keebio/sinc/keymaps/lickel/rules.mk
+++ b/keyboards/keebio/sinc/keymaps/lickel/rules.mk
@@ -1,2 +1,3 @@
VIA_ENABLE = yes
LTO_ENABLE = yes
+ENCODER_MAP_ENABLE = yes