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/projectkb | |
| parent | 5426a7a129acf2ff5c8b435014747f1238e17965 (diff) | |
Update GPIO API usage in keyboard code (#23361)
Diffstat (limited to 'keyboards/projectkb')
| -rw-r--r-- | keyboards/projectkb/alice/alice.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/keyboards/projectkb/alice/alice.c b/keyboards/projectkb/alice/alice.c index 5e5687f7e8..8ec5f16736 100644 --- a/keyboards/projectkb/alice/alice.c +++ b/keyboards/projectkb/alice/alice.c | |||
| @@ -1,9 +1,9 @@ | |||
| 1 | #include "quantum.h" | 1 | #include "quantum.h" |
| 2 | 2 | ||
| 3 | void keyboard_pre_init_kb(void) { | 3 | void keyboard_pre_init_kb(void) { |
| 4 | setPinOutput(INDICATOR_PIN_0); | 4 | gpio_set_pin_output(INDICATOR_PIN_0); |
| 5 | setPinOutput(INDICATOR_PIN_1); | 5 | gpio_set_pin_output(INDICATOR_PIN_1); |
| 6 | setPinOutput(INDICATOR_PIN_2); | 6 | gpio_set_pin_output(INDICATOR_PIN_2); |
| 7 | 7 | ||
| 8 | keyboard_pre_init_user(); | 8 | keyboard_pre_init_user(); |
| 9 | } | 9 | } |
| @@ -12,9 +12,9 @@ void keyboard_pre_init_kb(void) { | |||
| 12 | bool led_update_kb(led_t led_state) { | 12 | bool led_update_kb(led_t led_state) { |
| 13 | bool runDefault = led_update_user(led_state); | 13 | bool runDefault = led_update_user(led_state); |
| 14 | if (runDefault) { | 14 | if (runDefault) { |
| 15 | writePin(INDICATOR_PIN_0, !led_state.num_lock); | 15 | gpio_write_pin(INDICATOR_PIN_0, !led_state.num_lock); |
| 16 | writePin(INDICATOR_PIN_1, !led_state.caps_lock); | 16 | gpio_write_pin(INDICATOR_PIN_1, !led_state.caps_lock); |
| 17 | writePin(INDICATOR_PIN_2, !led_state.scroll_lock); | 17 | gpio_write_pin(INDICATOR_PIN_2, !led_state.scroll_lock); |
| 18 | } | 18 | } |
| 19 | return runDefault; | 19 | return runDefault; |
| 20 | } | 20 | } |
