forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Asymmetric encoders, encoder tests. (qmk#16068)
- Loading branch information
Showing
27 changed files
with
921 additions
and
138 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ endif | |
|
||
.DEFAULT_GOAL := all | ||
|
||
OPT = g | ||
|
||
include paths.mk | ||
include $(BUILDDEFS_PATH)/message.mk | ||
|
||
|
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
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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright 2022 Nick Brassel (@tzarc) | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
#pragma once | ||
|
||
#define MATRIX_ROWS 1 | ||
#define MATRIX_COLS 1 | ||
|
||
/* Here, "pins" from 0 to 31 are allowed. */ | ||
#define ENCODERS_PAD_A \ | ||
{ 0 } | ||
#define ENCODERS_PAD_B \ | ||
{ 1 } | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#include "mock.h" | ||
|
||
#ifdef __cplusplus | ||
}; | ||
#endif |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright 2022 Nick Brassel (@tzarc) | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
#pragma once | ||
|
||
#define MATRIX_ROWS 1 | ||
#define MATRIX_COLS 1 | ||
|
||
/* Here, "pins" from 0 to 31 are allowed. */ | ||
#define ENCODERS_PAD_A \ | ||
{ 0, 2 } | ||
#define ENCODERS_PAD_B \ | ||
{ 1, 3 } | ||
#define ENCODERS_PAD_A_RIGHT \ | ||
{ 4, 6 } | ||
#define ENCODERS_PAD_B_RIGHT \ | ||
{ 5, 7 } | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#include "mock_split.h" | ||
|
||
#ifdef __cplusplus | ||
}; | ||
#endif |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright 2022 Nick Brassel (@tzarc) | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
#pragma once | ||
|
||
#define MATRIX_ROWS 1 | ||
#define MATRIX_COLS 1 | ||
|
||
/* Here, "pins" from 0 to 31 are allowed. */ | ||
#define ENCODERS_PAD_A \ | ||
{ 0, 2, 4 } | ||
#define ENCODERS_PAD_B \ | ||
{ 1, 3, 5 } | ||
#define ENCODERS_PAD_A_RIGHT \ | ||
{ 6, 8 } | ||
#define ENCODERS_PAD_B_RIGHT \ | ||
{ 7, 9 } | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#include "mock_split.h" | ||
|
||
#ifdef __cplusplus | ||
}; | ||
#endif |
Oops, something went wrong.