aboutsummaryrefslogtreecommitdiff
path: root/keyboards/qvex/lynepad
diff options
context:
space:
mode:
authorRyan <[email protected]>2024-05-03 15:21:29 +1000
committerGitHub <[email protected]>2024-05-03 15:21:29 +1000
commitd09a06a1b354760fd0e64a453abade972900e885 (patch)
tree88d94640f4507ac8d7f570607423825bec3c6f89 /keyboards/qvex/lynepad
parent5426a7a129acf2ff5c8b435014747f1238e17965 (diff)
downloadqmk_firmware-d09a06a1b354760fd0e64a453abade972900e885.tar.gz
qmk_firmware-d09a06a1b354760fd0e64a453abade972900e885.zip
Update GPIO API usage in keyboard code (#23361)
Diffstat (limited to 'keyboards/qvex/lynepad')
-rw-r--r--keyboards/qvex/lynepad/lynepad.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/keyboards/qvex/lynepad/lynepad.c b/keyboards/qvex/lynepad/lynepad.c
index cc69e12240..0e715e68bc 100644
--- a/keyboards/qvex/lynepad/lynepad.c
+++ b/keyboards/qvex/lynepad/lynepad.c
@@ -15,12 +15,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
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);
+ gpio_set_pin_input(PIN_TW_SW);
+ gpio_set_pin_input(PIN_RJ_SW);
+ gpio_set_pin_input(PIN_RJ_DIR_A);
+ gpio_set_pin_input(PIN_RJ_DIR_C);
+ gpio_set_pin_input(PIN_RJ_DIR_B);
+ gpio_set_pin_input(PIN_RJ_DIR_D);
keyboard_pre_init_user();
}
@@ -40,18 +40,18 @@ int16_t enc2RightPrev = 1;
void matrix_scan_kb(void) {
enc1CenterPrev = enc1Center;
- enc1Center = readPin(PIN_TW_SW);
+ enc1Center = gpio_read_pin(PIN_TW_SW);
enc2CenterPrev = enc2Center;
- enc2Center = readPin(PIN_RJ_SW);
+ enc2Center = gpio_read_pin(PIN_RJ_SW);
enc2UpPrev = enc2Up;
- enc2Up = readPin(PIN_RJ_DIR_A);
+ enc2Up = gpio_read_pin(PIN_RJ_DIR_A);
enc2DownPrev = enc2Down;
- enc2Down = readPin(PIN_RJ_DIR_C);
+ enc2Down = gpio_read_pin(PIN_RJ_DIR_C);
enc2LeftPrev = enc2Left;
- enc2Left = readPin(PIN_RJ_DIR_B);
+ enc2Left = gpio_read_pin(PIN_RJ_DIR_B);
enc2RightPrev = enc2Right;
- enc2Right = readPin(PIN_RJ_DIR_D);
+ enc2Right = gpio_read_pin(PIN_RJ_DIR_D);
// Ensure any user customizations are called (for some reason this wasn't happening by default)
matrix_scan_user();