aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/keychron/q11
diff options
context:
space:
mode:
authorRyan2024-05-03 07:21:29 +0200
committerGitHub2024-05-03 07:21:29 +0200
commitd09a06a1b354760fd0e64a453abade972900e885 (patch)
tree88d94640f4507ac8d7f570607423825bec3c6f89 /keyboards/keychron/q11
parent5426a7a129acf2ff5c8b435014747f1238e17965 (diff)
Update GPIO API usage in keyboard code (#23361)
Diffstat (limited to 'keyboards/keychron/q11')
-rwxr-xr-xkeyboards/keychron/q11/q11.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/keyboards/keychron/q11/q11.c b/keyboards/keychron/q11/q11.c
index f643113ea3..8d018e2a63 100755
--- a/keyboards/keychron/q11/q11.c
+++ b/keyboards/keychron/q11/q11.c
@@ -130,12 +130,12 @@ void keyboard_post_init_kb(void) {
// and disable USB connectivity when the ADC value exceeds 1000,
// to avoid affecting the serial usart communication between the left hand and the right hand.
if (is_keyboard_left()) {
- setPinOutput(A0);
- writePinHigh(A0);
+ gpio_set_pin_output(A0);
+ gpio_write_pin_high(A0);
} else {
if ((analogReadPin_my(B0) > 1000) || (analogReadPin_my(B1) > 1000)) {
- setPinInput(A11);
- setPinInput(A12);
+ gpio_set_pin_input(A11);
+ gpio_set_pin_input(A12);
}
}