Last active
November 9, 2022 08:11
-
-
Save idank/c750437e0fda755f6b2bec24d3ad7420 to your computer and use it in GitHub Desktop.
changes in QMK to support pimoroni trackball
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/keyboards/crkbd/keymaps/via/config.h b/keyboards/crkbd/keymaps/via/config.h | |
index fc8e7c4781..81e587d662 100644 | |
--- a/keyboards/crkbd/keymaps/via/config.h | |
+++ b/keyboards/crkbd/keymaps/via/config.h | |
@@ -20,8 +20,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |
/* Select hand configuration */ | |
-#define MASTER_LEFT | |
-// #define MASTER_RIGHT | |
+//#define MASTER_LEFT | |
+#define MASTER_RIGHT | |
// #define EE_HANDS | |
#ifdef RGBLIGHT_ENABLE | |
@@ -37,4 +37,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |
# define RGBLIGHT_VAL_STEP 17 | |
#endif | |
+#define POINTING_DEVICE_ROTATION_90 | |
+#define PIMORONI | |
+#ifdef TRACKBALL_RIGHT | |
+ #define POINTING_DEVICE_INVERT_X | |
+ #define POINTING_DEVICE_INVERT_Y | |
+#endif | |
+ | |
#define OLED_FONT_H "keyboards/crkbd/lib/glcdfont.c" | |
diff --git a/keyboards/crkbd/keymaps/via/rules.mk b/keyboards/crkbd/keymaps/via/rules.mk | |
index 69841c2358..e5b0942ab8 100644 | |
--- a/keyboards/crkbd/keymaps/via/rules.mk | |
+++ b/keyboards/crkbd/keymaps/via/rules.mk | |
@@ -1,6 +1,8 @@ | |
-MOUSEKEY_ENABLE = no # Mouse keys | |
-RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. | |
+MOUSEKEY_ENABLE = yes # Mouse keys | |
+RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. | |
VIA_ENABLE = yes # Enable VIA | |
OLED_ENABLE = yes | |
OLED_DRIVER = SSD1306 | |
LTO_ENABLE = yes | |
+POINTING_DEVICE_ENABLE = yes | |
+POINTING_DEVICE_DRIVER = pimoroni_trackball |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment