diff options
Diffstat (limited to 'keyboards/3w6')
-rw-r--r-- | keyboards/3w6/rev1/matrix.c | 4 | ||||
-rw-r--r-- | keyboards/3w6/rev1/rev1.c | 17 | ||||
-rw-r--r-- | keyboards/3w6/rev2/keymaps/default_pimoroni/pimoroni_trackball.c | 4 | ||||
-rw-r--r-- | keyboards/3w6/rev2/matrix.c | 4 |
4 files changed, 8 insertions, 21 deletions
diff --git a/keyboards/3w6/rev1/matrix.c b/keyboards/3w6/rev1/matrix.c index ae2f96bfa1..8bb6c77aaa 100644 --- a/keyboards/3w6/rev1/matrix.c +++ b/keyboards/3w6/rev1/matrix.c @@ -24,7 +24,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. * to repeating that information all over the place. */ -#include QMK_KEYBOARD_H +#include "matrix.h" +#include "debug.h" +#include "wait.h" #include "i2c_master.h" extern i2c_status_t tca9555_status; diff --git a/keyboards/3w6/rev1/rev1.c b/keyboards/3w6/rev1/rev1.c deleted file mode 100644 index 3944ec3b13..0000000000 --- a/keyboards/3w6/rev1/rev1.c +++ /dev/null @@ -1,17 +0,0 @@ -/* Copyright 2021 weteor - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -#include "rev1.h" diff --git a/keyboards/3w6/rev2/keymaps/default_pimoroni/pimoroni_trackball.c b/keyboards/3w6/rev2/keymaps/default_pimoroni/pimoroni_trackball.c index c4f4a0441a..a6661cdc07 100644 --- a/keyboards/3w6/rev2/keymaps/default_pimoroni/pimoroni_trackball.c +++ b/keyboards/3w6/rev2/keymaps/default_pimoroni/pimoroni_trackball.c @@ -115,7 +115,7 @@ void trackball_set_scrolling(bool scroll) { scrolling = scroll; } __attribute__((weak)) void pointing_device_init(void) { trackball_set_rgbw(0x80, 0x00, 0x00, 0x00); } -void pointing_device_task(void) { +bool pointing_device_task(void) { static bool debounce; static uint16_t debounce_timer; uint8_t state[5] = {}; @@ -173,5 +173,5 @@ void pointing_device_task(void) { update_member(&mouse.v, &h_offset); #endif pointing_device_set_report(mouse); - pointing_device_send(); + return pointing_device_send(); } diff --git a/keyboards/3w6/rev2/matrix.c b/keyboards/3w6/rev2/matrix.c index c47c24e1dc..49cb09a9f8 100644 --- a/keyboards/3w6/rev2/matrix.c +++ b/keyboards/3w6/rev2/matrix.c @@ -24,7 +24,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. * to repeating that information all over the place. */ -#include QMK_KEYBOARD_H +#include "matrix.h" +#include "debug.h" +#include "wait.h" #include "i2c_master.h" extern i2c_status_t tca9555_status; |