summaryrefslogtreecommitdiffstats
path: root/keyboards/qvex/lynepad/lynepad.c
diff options
context:
space:
mode:
authorlokher <lokher@gmail.com>2022-09-13 11:24:05 +0800
committerlokher <lokher@gmail.com>2022-09-13 11:24:05 +0800
commit9581289745736ce068a1040f44cec37a2ca8830d (patch)
tree24f644715a5fd6cc4d804d9604fb094307808b1b /keyboards/qvex/lynepad/lynepad.c
parentfe13cedf8c09fa34d5cec4e4c624738095176625 (diff)
Remove non-Keychron keyboards
Diffstat (limited to 'keyboards/qvex/lynepad/lynepad.c')
-rw-r--r--keyboards/qvex/lynepad/lynepad.c58
1 files changed, 0 insertions, 58 deletions
diff --git a/keyboards/qvex/lynepad/lynepad.c b/keyboards/qvex/lynepad/lynepad.c
deleted file mode 100644
index 33620d9da3..0000000000
--- a/keyboards/qvex/lynepad/lynepad.c
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
-Copyright 2020 KemoNine
-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 "lynepad.h"
-
-void keyboard_pre_init_kb(void) {
- // Encoder pins
- setPinInput(PIN_TW_SW);
- setPinInput(PIN_RJ_SW);
- setPinInput(PIN_RJ_DIR_A);
- setPinInput(PIN_RJ_DIR_C);
- setPinInput(PIN_RJ_DIR_B);
- setPinInput(PIN_RJ_DIR_D);
-
- keyboard_pre_init_user();
-}
-
-int16_t enc1Center = 1;
-int16_t enc1CenterPrev = 1;
-int16_t enc2Center = 1;
-int16_t enc2CenterPrev = 1;
-int16_t enc2Up = 1;
-int16_t enc2UpPrev = 1;
-int16_t enc2Down = 1;
-int16_t enc2DownPrev = 1;
-int16_t enc2Left = 1;
-int16_t enc2LeftPrev = 1;
-int16_t enc2Right = 1;
-int16_t enc2RightPrev = 1;
-
-void matrix_scan_kb(void) {
- enc1CenterPrev = enc1Center;
- enc1Center = readPin(PIN_TW_SW);
-
- enc2CenterPrev = enc2Center;
- enc2Center = readPin(PIN_RJ_SW);
- enc2UpPrev = enc2Up;
- enc2Up = readPin(PIN_RJ_DIR_A);
- enc2DownPrev = enc2Down;
- enc2Down = readPin(PIN_RJ_DIR_C);
- enc2LeftPrev = enc2Left;
- enc2Left = readPin(PIN_RJ_DIR_B);
- enc2RightPrev = enc2Right;
- enc2Right = readPin(PIN_RJ_DIR_D);
-
- // Ensure any user customizations are called (for some reason this wasn't happening by default)
- matrix_scan_user();
-}