aboutsummaryrefslogtreecommitdiff
path: root/keyboards
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2021-09-01 21:08:58 -0700
committerGitHub <noreply@github.com>2021-09-01 21:08:58 -0700
commit37aef4ebe17b04de07a17748e2452c2f1ebe77bd (patch)
tree70eb1e03ff21f1c1e9fbe2b788fe1438b50fe520 /keyboards
parentc1e5c920a9929a0434edca537e6c58aed294668c (diff)
downloadqmk_firmware-37aef4ebe17b04de07a17748e2452c2f1ebe77bd.tar.gz
qmk_firmware-37aef4ebe17b04de07a17748e2452c2f1ebe77bd.zip
[Keymap] Fix Drashna Keymap issues missed before Develop merge (#14271)
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/handwired/tractyl_manuform/5x6_right/f411/config.h6
-rw-r--r--keyboards/handwired/tractyl_manuform/5x6_right/f411/f411.c1
-rw-r--r--keyboards/handwired/tractyl_manuform/5x6_right/keymaps/drashna/keymap.c4
-rw-r--r--keyboards/handwired/tractyl_manuform/tractyl_manuform.c8
-rw-r--r--keyboards/handwired/tractyl_manuform/tractyl_manuform.h2
-rw-r--r--keyboards/splitkb/kyria/keymaps/drashna/rules.mk7
6 files changed, 19 insertions, 9 deletions
diff --git a/keyboards/handwired/tractyl_manuform/5x6_right/f411/config.h b/keyboards/handwired/tractyl_manuform/5x6_right/f411/config.h
index cc4efedb8..93ca12159 100644
--- a/keyboards/handwired/tractyl_manuform/5x6_right/f411/config.h
+++ b/keyboards/handwired/tractyl_manuform/5x6_right/f411/config.h
@@ -87,10 +87,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
87#define SPI_MISO_PAL_MODE 5 87#define SPI_MISO_PAL_MODE 5
88 88
89#define EXTERNAL_EEPROM_SPI_SLAVE_SELECT_PIN A4 89#define EXTERNAL_EEPROM_SPI_SLAVE_SELECT_PIN A4
90// #define EXTERNAL_EEPROM_SPI_CLOCK_DIVISOR 64 90#define EXTERNAL_EEPROM_SPI_CLOCK_DIVISOR 8
91// #define EXTERNAL_EEPROM_BYTE_COUNT 8196 91// #define EXTERNAL_EEPROM_BYTE_COUNT 8196
92// #define EXTERNAL_EEPROM_PAGE_SIZE 32 92// #define EXTERNAL_EEPROM_PAGE_SIZE 32
93// #define EXTERNAL_EEPROM_ADDRESS_SIZE 2 93// #define EXTERNAL_EEPROM_ADDRESS_SIZE 2
94// #define DEBUG_EEPROM_OUTPUT 94// #define DEBUG_EEPROM_OUTPUT
95 95
96#define PMW3360_CS_PIN B0 96#define PMW3360_CS_PIN B0
97#define PMW3360_SPI_MODE 3
98#define PMW3360_SPI_DIVISOR 4
diff --git a/keyboards/handwired/tractyl_manuform/5x6_right/f411/f411.c b/keyboards/handwired/tractyl_manuform/5x6_right/f411/f411.c
index 1f6028c72..240219f1d 100644
--- a/keyboards/handwired/tractyl_manuform/5x6_right/f411/f411.c
+++ b/keyboards/handwired/tractyl_manuform/5x6_right/f411/f411.c
@@ -22,5 +22,4 @@ void matrix_scan_sub_kb(void) {
22 if (!readPin(A0)) { 22 if (!readPin(A0)) {
23 reset_keyboard(); 23 reset_keyboard();
24 } 24 }
25 matrix_scan_user();
26} 25}
diff --git a/keyboards/handwired/tractyl_manuform/5x6_right/keymaps/drashna/keymap.c b/keyboards/handwired/tractyl_manuform/5x6_right/keymaps/drashna/keymap.c
index aa93de75d..ac4999161 100644
--- a/keyboards/handwired/tractyl_manuform/5x6_right/keymaps/drashna/keymap.c
+++ b/keyboards/handwired/tractyl_manuform/5x6_right/keymaps/drashna/keymap.c
@@ -71,7 +71,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
71 _______, _______, _______, _______, _______, _______, KC_BTN7, KC_BTN4, KC_BTN5, KC_BTN8, _______, _______, 71 _______, _______, _______, _______, _______, _______, KC_BTN7, KC_BTN4, KC_BTN5, KC_BTN8, _______, _______,
72 _______, _______, _______, _______, 72 _______, _______, _______, _______,
73 _______, _______, KC_BTN3, 73 _______, _______, KC_BTN3,
74 KC_ACCEL, _______, _______, 74 _______, KC_ACCEL, _______,
75 _______, _______, _______, _______ 75 _______, _______, _______, _______
76 ), 76 ),
77 [_GAMEPAD] = LAYOUT_5x6_right( 77 [_GAMEPAD] = LAYOUT_5x6_right(
@@ -259,7 +259,7 @@ layer_state_t layer_state_set_keymap(layer_state_t state) {
259} 259}
260#endif 260#endif
261 261
262#ifdef OLED_DRIVER_ENABLE 262#ifdef OLED_ENABLE
263// WPM-responsive animation stuff here 263// WPM-responsive animation stuff here
264# define SLEEP_FRAMES 2 264# define SLEEP_FRAMES 2
265# define SLEEP_SPEED 10 // below this wpm value your animation will idle 265# define SLEEP_SPEED 10 // below this wpm value your animation will idle
diff --git a/keyboards/handwired/tractyl_manuform/tractyl_manuform.c b/keyboards/handwired/tractyl_manuform/tractyl_manuform.c
index 61a6740a2..aafa34305 100644
--- a/keyboards/handwired/tractyl_manuform/tractyl_manuform.c
+++ b/keyboards/handwired/tractyl_manuform/tractyl_manuform.c
@@ -46,15 +46,15 @@ __attribute__((weak)) kb_pointer_data_t process_mouse(void) {
46 kb_pointer_data_t temp_data = {.mouse_x = 0, .mouse_y = 0}; 46 kb_pointer_data_t temp_data = {.mouse_x = 0, .mouse_y = 0};
47 47
48 report_pmw_t data = pmw_read_burst(); 48 report_pmw_t data = pmw_read_burst();
49 if (data.isOnSurface && data.isMotion) {
50 // Reset timer if stopped moving 49 // Reset timer if stopped moving
51 if (!data.isMotion) { 50 if (!data.isMotion) {
52 if (MotionStart != 0) MotionStart = 0; 51 if (MotionStart != 0) MotionStart = 0;
53 return temp_data; 52 return temp_data;
54 } 53 }
55 54
55 if (data.isOnSurface) {
56 // Set timer if new motion 56 // Set timer if new motion
57 if ((MotionStart == 0) && data.isMotion) { 57 if (MotionStart == 0) {
58 if (debug_mouse) dprintf("Starting motion.\n"); 58 if (debug_mouse) dprintf("Starting motion.\n");
59 MotionStart = timer_read(); 59 MotionStart = timer_read();
60 } 60 }
@@ -197,3 +197,7 @@ void matrix_scan_kb(void) {
197 matrix_scan_sub_kb(); 197 matrix_scan_sub_kb();
198 matrix_scan_user(); 198 matrix_scan_user();
199} 199}
200
201#ifdef POINTING_DEVICE_ENABLE
202void matrix_power_up(void) { pointing_device_task(); }
203#endif
diff --git a/keyboards/handwired/tractyl_manuform/tractyl_manuform.h b/keyboards/handwired/tractyl_manuform/tractyl_manuform.h
index f49569310..99f1481ad 100644
--- a/keyboards/handwired/tractyl_manuform/tractyl_manuform.h
+++ b/keyboards/handwired/tractyl_manuform/tractyl_manuform.h
@@ -43,7 +43,7 @@ typedef struct {
43 uint16_t device_cpi; 43 uint16_t device_cpi;
44} kb_config_data_t; 44} kb_config_data_t;
45 45
46typedef struct { 46__attribute__((aligned(16))) typedef struct {
47 int8_t mouse_x; 47 int8_t mouse_x;
48 int8_t mouse_y; 48 int8_t mouse_y;
49} kb_pointer_data_t; 49} kb_pointer_data_t;
diff --git a/keyboards/splitkb/kyria/keymaps/drashna/rules.mk b/keyboards/splitkb/kyria/keymaps/drashna/rules.mk
index ba273d7d3..b51cc1b62 100644
--- a/keyboards/splitkb/kyria/keymaps/drashna/rules.mk
+++ b/keyboards/splitkb/kyria/keymaps/drashna/rules.mk
@@ -14,5 +14,10 @@ UNICODE_ENABLE = no # Unicode
14KEY_LOCK_ENABLE = no 14KEY_LOCK_ENABLE = no
15 15
16 16
17BOOTLOADER = atmel-dfu 17BOOTLOADER = hid
18BOOTLOADER_SIZE = 512
19PROGRAM_CMD = $(HID_BOOTLOADER_CLI) -mmcu=$(MCU) -w -v $(BUILD_DIR)/$(TARGET).hex
18# TAP_DANCE_ENABLE = yes 20# TAP_DANCE_ENABLE = yes
21
22WPM_ENABLE = yes
23SWAP_HANDS_ENABLE = yes