-
-
Notifications
You must be signed in to change notification settings - Fork 40.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Keyboard] Fixed bugs Wuque Mammoth Keyboard Series (#15700)
- Loading branch information
Showing
3 changed files
with
16 additions
and
4 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,9 +49,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |
#define ENCODERS_PAD_B { B1 } | ||
|
||
#define ENCODERS 1 | ||
|
||
#ifdef ENCODER_RESOLUTION | ||
#undef ENCODER_RESOLUTION | ||
#endif | ||
#define ENCODER_RESOLUTION 2 | ||
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
// Note: array is { col, row ) | ||
#define ENCODERS_CW_KEY { { 5, 5 } } | ||
#define ENCODERS_CCW_KEY { { 3, 5 } } | ||
#define ENCODERS_CW_KEY { { 3, 5 } } | ||
This comment has been minimized.
Sorry, something went wrong.
dcinzona
|
||
#define ENCODERS_CCW_KEY { { 5, 5 } } | ||
|
||
#define LED_CAPS_LOCK_PIN B6 | ||
#define LED_PIN_ON_STATE 0 |
1 comment
on commit 19fe7dc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the current build I'm running on my two Mammoth75 boards:
Note the ENCODER_RESOLUTION
being set to 1 and the ENCODER_DIRECTION_FLIP
I think the definition for CW_KEY and CCW_KEY are backwards (should be 5,5 for CW and 3,5 for CCW [col,row])
#pragma once
#include "config_common.h"
/* key matrix size */
#define MATRIX_ROWS 6
#define MATRIX_COLS 16
#define MATRIX_ROW_PINS { B0, C7, D2, F7, D1, D0 }
#define MATRIX_COL_PINS { D3, D5, D4, D6, D7, B4, B5, E6, F0, F1, F4, F5, F6, C6, B7, B3 }
#define DIODE_DIRECTION COL2ROW
/* Set 0 if debouncing isn't needed */
#define DEBOUNCE 5
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE
/* Enable encoder */
#define ENCODERS_PAD_A { B2 }
#define ENCODERS_PAD_B { B1 }
#define ENCODERS 1
#ifdef ENCODER_RESOLUTION
#undef ENCODER_RESOLUTION
#endif
#define ENCODER_RESOLUTION 1
#define ENCODER_DEFAULT_POS 0x3
// Note: array is { col, row )
#define ENCODERS_CW_KEY { { 3, 5 } }
#define ENCODERS_CCW_KEY { { 5, 5 } }
#define ENCODER_DIRECTION_FLIP // Required due to flipping the keys on the VIA keymap.c file
#define LED_CAPS_LOCK_PIN B6
#define LED_PIN_ON_STATE 0
ENCODER_RESOLUTION 2 results in 5 or 10 ticks to register a "key press". If I set resolution to 1, then the encoder registers every other tick (as expected)