Skip to content

Commit c13982e

Browse files
committed
Merge remote-tracking branch 'origin/master' into develop
2 parents a662d36 + a4b36f0 commit c13982e

File tree

4 files changed

+11
-44
lines changed

4 files changed

+11
-44
lines changed

keyboards/sofle/keymaps/via/config.h

+2-3
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@
1717

1818
#pragma once
1919

20-
/* The way how "handedness" is decided (which half is which),
20+
/* By default left side is selected as master,
2121
see https://docs.qmk.fm/#/feature_split_keyboard?id=setting-handedness
22-
for more options.
23-
*/
22+
for more options. */
2423

2524
#if defined(KEYBOARD_sofle_rev1)
2625
// Add RGB underglow and top facing lighting

keyboards/sofle/keymaps/via/encoder.c

-39
This file was deleted.

keyboards/sofle/keymaps/via/keymap.c

+8-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,15 @@
1717

1818
#include QMK_KEYBOARD_H
1919
#include "oled.c"
20-
#include "encoder.c"
2120

22-
//Default keymap. This can be changed in Via. Use oled.c and encoder.c to change beavior that Via cannot change.
21+
#ifdef ENCODER_MAP_ENABLE
22+
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
23+
[0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_PGDN, KC_PGUP) },
24+
[1] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______) },
25+
[2] = { ENCODER_CCW_CW(RGB_HUD, RGB_HUI), ENCODER_CCW_CW(RGB_SAD, RGB_SAI) },
26+
[3] = { ENCODER_CCW_CW(RGB_VAD, RGB_VAI), ENCODER_CCW_CW(RGB_RMOD, RGB_MOD)}
27+
};
28+
#endif
2329

2430
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
2531
/*

keyboards/sofle/keymaps/via/rules.mk

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ EXTRAKEY_ENABLE = yes
66
VIA_ENABLE = yes
77
LTO_ENABLE = yes
88
RGBLIGHT_ENABLE = yes
9+
ENCODER_MAP_ENABLE = yes

0 commit comments

Comments
 (0)