aboutsummaryrefslogtreecommitdiff
path: root/keyboards/handwired/sono1/sono1.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/handwired/sono1/sono1.c')
-rw-r--r--keyboards/handwired/sono1/sono1.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/keyboards/handwired/sono1/sono1.c b/keyboards/handwired/sono1/sono1.c
index d19f188a19..449289a1e9 100644
--- a/keyboards/handwired/sono1/sono1.c
+++ b/keyboards/handwired/sono1/sono1.c
@@ -18,17 +18,17 @@
void matrix_init_kb(void) {
/* LED pins setup */
- setPinOutput(LED_KANA_PIN);
- setPinOutput(LED_CAPS_LOCK_PIN);
- setPinOutput(LED_CTRL_XFER_PIN);
- setPinOutput(LED_NUM_LOCK_PIN);
- setPinOutput(LED_KB_LOCK_PIN);
+ gpio_set_pin_output(LED_KANA_PIN);
+ gpio_set_pin_output(LED_CAPS_LOCK_PIN);
+ gpio_set_pin_output(LED_CTRL_XFER_PIN);
+ gpio_set_pin_output(LED_NUM_LOCK_PIN);
+ gpio_set_pin_output(LED_KB_LOCK_PIN);
- writePinHigh(LED_KANA_PIN);
- writePinHigh(LED_CAPS_LOCK_PIN);
- writePinHigh(LED_CTRL_XFER_PIN);
- writePinHigh(LED_NUM_LOCK_PIN);
- writePinHigh(LED_KB_LOCK_PIN);
+ gpio_write_pin_high(LED_KANA_PIN);
+ gpio_write_pin_high(LED_CAPS_LOCK_PIN);
+ gpio_write_pin_high(LED_CTRL_XFER_PIN);
+ gpio_write_pin_high(LED_NUM_LOCK_PIN);
+ gpio_write_pin_high(LED_KB_LOCK_PIN);
matrix_init_user();
}
@@ -36,9 +36,9 @@ void matrix_init_kb(void) {
bool led_update_kb(led_t led_state) {
bool res = led_update_user(led_state);
if(res) {
- writePin(LED_NUM_LOCK_PIN, !led_state.num_lock);
- writePin(LED_CAPS_LOCK_PIN, !led_state.caps_lock);
- writePin(LED_CTRL_XFER_PIN, !led_state.scroll_lock);
+ gpio_write_pin(LED_NUM_LOCK_PIN, !led_state.num_lock);
+ gpio_write_pin(LED_CAPS_LOCK_PIN, !led_state.caps_lock);
+ gpio_write_pin(LED_CTRL_XFER_PIN, !led_state.scroll_lock);
}
return res;
}