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/strech | |
| parent | 5426a7a129acf2ff5c8b435014747f1238e17965 (diff) | |
Update GPIO API usage in keyboard code (#23361)
Diffstat (limited to 'keyboards/strech')
| -rw-r--r-- | keyboards/strech/soulstone/soulstone.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/keyboards/strech/soulstone/soulstone.c b/keyboards/strech/soulstone/soulstone.c index 4a951aff9d..e6457a5271 100644 --- a/keyboards/strech/soulstone/soulstone.c +++ b/keyboards/strech/soulstone/soulstone.c | |||
| @@ -18,13 +18,13 @@ | |||
| 18 | 18 | ||
| 19 | // Prepare layer indicator LED | 19 | // Prepare layer indicator LED |
| 20 | void keyboard_post_init_kb(void) { | 20 | void keyboard_post_init_kb(void) { |
| 21 | setPinOutput(LAYER_INDICATOR_LED_PIN); | 21 | gpio_set_pin_output(LAYER_INDICATOR_LED_PIN); |
| 22 | writePinLow(LAYER_INDICATOR_LED_PIN); | 22 | gpio_write_pin_low(LAYER_INDICATOR_LED_PIN); |
| 23 | keyboard_post_init_user(); | 23 | keyboard_post_init_user(); |
| 24 | } | 24 | } |
| 25 | 25 | ||
| 26 | // Function for layer indicator LED | 26 | // Function for layer indicator LED |
| 27 | layer_state_t layer_state_set_kb(layer_state_t state) { | 27 | layer_state_t layer_state_set_kb(layer_state_t state) { |
| 28 | writePin(LAYER_INDICATOR_LED_PIN, !layer_state_cmp(state, 0)); | 28 | gpio_write_pin(LAYER_INDICATOR_LED_PIN, !layer_state_cmp(state, 0)); |
| 29 | return layer_state_set_user(state); | 29 | return layer_state_set_user(state); |
| 30 | } | 30 | } |
