1
0
Fork 0

[Keyboard] owl8 bugfix (#14020)

This commit is contained in:
yfuku 2021-09-11 13:59:28 +09:00 committed by GitHub
parent d0b1d9f548
commit 46f15cd1a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 18 deletions

View file

@ -27,8 +27,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define PRODUCT owl8
/* key matrix size */
#define MATRIX_ROWS 4
#define MATRIX_COLS 4
#define MATRIX_ROWS 1
#define MATRIX_COLS 16
/*
* Keyboard Matrix Assignments
@ -41,10 +41,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#define DIRECT_PINS { \
{ F4, F7, B3, B6 }, \
{ F5, F6, B1, B2 }, \
{ D4, C6, D7, E6 }, \
{ NO_PIN, NO_PIN, NO_PIN, NO_PIN } \
{ F4, F7, B3, B6, F5, F6, B1, B2, D4, C6, D7, E6, NO_PIN, NO_PIN, NO_PIN, NO_PIN } \
}
#define UNUSED_PINS

View file

@ -51,22 +51,22 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
};
keyevent_t encoder1_ccw = {
.key = (keypos_t){.row = 3, .col = 1},
.key = (keypos_t){.row = 0, .col = 12},
.pressed = false
};
keyevent_t encoder1_cw = {
.key = (keypos_t){.row = 3, .col = 0},
.key = (keypos_t){.row = 0, .col = 13},
.pressed = false
};
keyevent_t encoder2_ccw = {
.key = (keypos_t){.row = 3, .col = 3},
.key = (keypos_t){.row = 0, .col = 14},
.pressed = false
};
keyevent_t encoder2_cw = {
.key = (keypos_t){.row = 3, .col = 2},
.key = (keypos_t){.row = 0, .col = 15},
.pressed = false
};

View file

@ -28,14 +28,11 @@
*/
#define LAYOUT( \
k30, k31, k32, k33, \
k20, k21, k22, k23, \
k00, k01, k02, k03, \
k10, k11, k12, k13 \
k012, k013, k014, k015, \
k008, k009, k010, k011, \
k000, k001, k002, k003, \
k004, k005, k006, k007 \
) \
{ \
{k00, k01, k02, k03 }, \
{k10, k11, k12, k13 }, \
{k20, k21, k22, k23 }, \
{k30, k31, k32, k33 } \
{k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, k010, k011, k012, k013, k014, k015 } \
}