aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/edda
diff options
context:
space:
mode:
authorRyan2024-05-03 07:21:29 +0200
committerGitHub2024-05-03 07:21:29 +0200
commitd09a06a1b354760fd0e64a453abade972900e885 (patch)
tree88d94640f4507ac8d7f570607423825bec3c6f89 /keyboards/edda
parent5426a7a129acf2ff5c8b435014747f1238e17965 (diff)
Update GPIO API usage in keyboard code (#23361)
Diffstat (limited to 'keyboards/edda')
-rw-r--r--keyboards/edda/edda.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/keyboards/edda/edda.c b/keyboards/edda/edda.c
index 38d1d5ddab..b5f169abe6 100644
--- a/keyboards/edda/edda.c
+++ b/keyboards/edda/edda.c
@@ -18,32 +18,32 @@ void keyboard_pre_init_kb(void) {
keyboard_pre_init_user();
// Set our LED pins as output
- setPinOutput(B2);
- setPinOutput(B1);
- setPinOutput(B0);
+ gpio_set_pin_output(B2);
+ gpio_set_pin_output(B1);
+ gpio_set_pin_output(B0);
}
__attribute__((weak)) layer_state_t layer_state_set_user(layer_state_t state) {
switch (get_highest_layer(state)) {
case 1:
- writePin(B2, 1);
- writePin(B1, 0);
- writePin(B0, 0);
+ gpio_write_pin(B2, 1);
+ gpio_write_pin(B1, 0);
+ gpio_write_pin(B0, 0);
break;
case 2:
- writePin(B2, 1);
- writePin(B1, 1);
- writePin(B0, 0);
+ gpio_write_pin(B2, 1);
+ gpio_write_pin(B1, 1);
+ gpio_write_pin(B0, 0);
break;
case 3:
- writePin(B2, 1);
- writePin(B1, 1);
- writePin(B0, 1);
+ gpio_write_pin(B2, 1);
+ gpio_write_pin(B1, 1);
+ gpio_write_pin(B0, 1);
break;
default: // for any other layers, or the default layer
- writePin(B2, 0);
- writePin(B1, 0);
- writePin(B0, 0);
+ gpio_write_pin(B2, 0);
+ gpio_write_pin(B1, 0);
+ gpio_write_pin(B0, 0);
break;
}
return state;