We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d965d4 commit bbd5c35Copy full SHA for bbd5c35
3 files changed
keyboards/handwired/onekey/keymaps/default/keymap.c
@@ -3,5 +3,14 @@
3
#include QMK_KEYBOARD_H
4
5
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
6
- LAYOUT_ortho_1x1(KC_A)
+ LAYOUT_ortho_1x1(KC_BTN3)
7
};
8
+
9
+bool encoder_update_user(uint8_t index, bool clockwise) {
10
+ if (clockwise) {
11
+ tap_code(KC_WH_D);
12
+ } else {
13
+ tap_code(KC_WH_U);
14
+ }
15
+ return true;
16
+}
keyboards/handwired/onekey/rp2040/config.h
@@ -21,3 +21,7 @@
21
#define AUDIO_PWM_CHANNEL RP2040_PWM_CHANNEL_A
22
23
#define ADC_PIN GP26
24
25
+#define ENCODERS_PAD_A { GP7 }
26
+#define ENCODERS_PAD_B { GP8 }
27
+#define ENCODER_RESOLUTION 3
keyboards/handwired/onekey/rp2040/rules.mk
@@ -0,0 +1,2 @@
1
+ENCODER_ENABLE = yes
2
+MOUSEKEY_ENABLE = yes
0 commit comments