aboutsummaryrefslogtreecommitdiff
path: root/keyboards/acheron/elongate/delta/delta.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/acheron/elongate/delta/delta.c')
-rwxr-xr-xkeyboards/acheron/elongate/delta/delta.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/keyboards/acheron/elongate/delta/delta.c b/keyboards/acheron/elongate/delta/delta.c
index e621b4495b..98b60bae61 100755
--- a/keyboards/acheron/elongate/delta/delta.c
+++ b/keyboards/acheron/elongate/delta/delta.c
@@ -30,18 +30,18 @@ void led_init_ports(void) {
bool led_update_kb(led_t led_state) {
bool res = led_update_user(led_state);
if(res) {
- writePin(LED1_PIN, !led_state.num_lock);
- writePin(LED2_PIN, !led_state.caps_lock);
- writePin(LED3_PIN, !led_state.scroll_lock);
+ gpio_write_pin(LED1_PIN, !led_state.num_lock);
+ gpio_write_pin(LED2_PIN, !led_state.caps_lock);
+ gpio_write_pin(LED3_PIN, !led_state.scroll_lock);
}
return res;
}
// Turns off all bottom LEDs
void turn_off_bottom_leds(void){
- writePin(LED4_PIN, 1);
- writePin(LED5_PIN, 1);
- writePin(LED6_PIN, 1);
+ gpio_write_pin(LED4_PIN, 1);
+ gpio_write_pin(LED5_PIN, 1);
+ gpio_write_pin(LED6_PIN, 1);
}
/*
@@ -53,19 +53,19 @@ layer_state_t layer_state_set_kb(layer_state_t state) {
switch (get_highest_layer(state)) {
// The base layer, or layer zero, will be handled by the default case.
case 1:
- writePin(LED4_PIN, 1);
- writePin(LED5_PIN, 0);
- writePin(LED6_PIN, 1);
+ gpio_write_pin(LED4_PIN, 1);
+ gpio_write_pin(LED5_PIN, 0);
+ gpio_write_pin(LED6_PIN, 1);
break;
case 2:
- writePin(LED4_PIN, 1);
- writePin(LED5_PIN, 1);
- writePin(LED6_PIN, 0);
+ gpio_write_pin(LED4_PIN, 1);
+ gpio_write_pin(LED5_PIN, 1);
+ gpio_write_pin(LED6_PIN, 0);
break;
default:
- writePin(LED4_PIN, 0);
- writePin(LED5_PIN, 1);
- writePin(LED6_PIN, 1);
+ gpio_write_pin(LED4_PIN, 0);
+ gpio_write_pin(LED5_PIN, 1);
+ gpio_write_pin(LED6_PIN, 1);
break;
}
return state;
@@ -73,5 +73,5 @@ layer_state_t layer_state_set_kb(layer_state_t state) {
// Since the keyboard starts at layer 0, the init function starts LED4 as lit up.
void keyboard_post_init_kb(void){
- writePin(LED4_PIN, 0);
+ gpio_write_pin(LED4_PIN, 0);
}