aboutsummaryrefslogtreecommitdiff
path: root/keyboards/clueboard/66/rev4/rev4.c
diff options
context:
space:
mode:
authorRyan <[email protected]>2024-05-03 15:21:29 +1000
committerGitHub <[email protected]>2024-05-03 15:21:29 +1000
commitd09a06a1b354760fd0e64a453abade972900e885 (patch)
tree88d94640f4507ac8d7f570607423825bec3c6f89 /keyboards/clueboard/66/rev4/rev4.c
parent5426a7a129acf2ff5c8b435014747f1238e17965 (diff)
downloadqmk_firmware-d09a06a1b354760fd0e64a453abade972900e885.tar.gz
qmk_firmware-d09a06a1b354760fd0e64a453abade972900e885.zip
Update GPIO API usage in keyboard code (#23361)
Diffstat (limited to 'keyboards/clueboard/66/rev4/rev4.c')
-rw-r--r--keyboards/clueboard/66/rev4/rev4.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/keyboards/clueboard/66/rev4/rev4.c b/keyboards/clueboard/66/rev4/rev4.c
index 75befc5230..25fe606aea 100644
--- a/keyboards/clueboard/66/rev4/rev4.c
+++ b/keyboards/clueboard/66/rev4/rev4.c
@@ -2,23 +2,23 @@
void led_init_ports(void) {
// Set our LED pins as output
- setPinOutput(B13); // LED1
- writePinLow(B13);
- setPinOutput(B14); // LED2
- writePinLow(B14);
- setPinOutput(A8); // LED3
- writePinLow(A8);
- setPinOutput(A0); // Capslock LED
- writePinLow(A0);
+ gpio_set_pin_output(B13); // LED1
+ gpio_write_pin_low(B13);
+ gpio_set_pin_output(B14); // LED2
+ gpio_write_pin_low(B14);
+ gpio_set_pin_output(A8); // LED3
+ gpio_write_pin_low(A8);
+ gpio_set_pin_output(A0); // Capslock LED
+ gpio_write_pin_low(A0);
}
bool led_update_kb(led_t led_state) {
bool res = led_update_user(led_state);
if(res) {
- writePin(B13, led_state.num_lock);
- writePin(A0, led_state.caps_lock);
- writePin(B14, led_state.caps_lock);
- writePin(A8, led_state.scroll_lock);
+ gpio_write_pin(B13, led_state.num_lock);
+ gpio_write_pin(A0, led_state.caps_lock);
+ gpio_write_pin(B14, led_state.caps_lock);
+ gpio_write_pin(A8, led_state.scroll_lock);
}
return res;
}