diff options
| author | Ryan <fauxpark@gmail.com> | 2024-05-03 15:21:29 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-03 15:21:29 +1000 |
| commit | d09a06a1b354760fd0e64a453abade972900e885 (patch) | |
| tree | 88d94640f4507ac8d7f570607423825bec3c6f89 /keyboards/splitkb | |
| parent | 5426a7a129acf2ff5c8b435014747f1238e17965 (diff) | |
Update GPIO API usage in keyboard code (#23361)
Diffstat (limited to 'keyboards/splitkb')
| -rw-r--r-- | keyboards/splitkb/aurora/helix/rev1/rev1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/keyboards/splitkb/aurora/helix/rev1/rev1.c b/keyboards/splitkb/aurora/helix/rev1/rev1.c index da24934eef..0a478a5c73 100644 --- a/keyboards/splitkb/aurora/helix/rev1/rev1.c +++ b/keyboards/splitkb/aurora/helix/rev1/rev1.c | |||
| @@ -24,8 +24,8 @@ static enum { UNKNOWN, LEFT, RIGHT } hand_side = UNKNOWN; | |||
| 24 | if (hand_side == UNKNOWN) { | 24 | if (hand_side == UNKNOWN) { |
| 25 | #if defined(SPLIT_HAND_PIN) | 25 | #if defined(SPLIT_HAND_PIN) |
| 26 | // Test pin SPLIT_HAND_PIN for High/Low, if low it's right hand | 26 | // Test pin SPLIT_HAND_PIN for High/Low, if low it's right hand |
| 27 | setPinInput(SPLIT_HAND_PIN); | 27 | gpio_set_pin_input(SPLIT_HAND_PIN); |
| 28 | hand_side = readPin(SPLIT_HAND_PIN) ? LEFT : RIGHT; | 28 | hand_side = gpio_read_pin(SPLIT_HAND_PIN) ? LEFT : RIGHT; |
| 29 | return (hand_side == LEFT); | 29 | return (hand_side == LEFT); |
| 30 | #endif | 30 | #endif |
| 31 | hand_side = is_keyboard_master() ? LEFT : RIGHT; | 31 | hand_side = is_keyboard_master() ? LEFT : RIGHT; |
