Skip to content

Commit

Permalink
[Keyboard] owl8 bugfix (qmk#14020)
Browse files Browse the repository at this point in the history
  • Loading branch information
yfuku authored Sep 11, 2021
1 parent d0b1d9f commit 46f15cd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 18 deletions.
9 changes: 3 additions & 6 deletions keyboards/owl8/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
8 changes: 4 additions & 4 deletions keyboards/owl8/keymaps/via/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
};

Expand Down
13 changes: 5 additions & 8 deletions keyboards/owl8/owl8.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 } \
}

0 comments on commit 46f15cd

Please sign in to comment.