diff options
author | Ryan <[email protected]> | 2024-05-03 15:21:29 +1000 |
---|---|---|
committer | GitHub <[email protected]> | 2024-05-03 15:21:29 +1000 |
commit | d09a06a1b354760fd0e64a453abade972900e885 (patch) | |
tree | 88d94640f4507ac8d7f570607423825bec3c6f89 /keyboards/geonworks | |
parent | 5426a7a129acf2ff5c8b435014747f1238e17965 (diff) | |
download | qmk_firmware-d09a06a1b354760fd0e64a453abade972900e885.tar.gz qmk_firmware-d09a06a1b354760fd0e64a453abade972900e885.zip |
Update GPIO API usage in keyboard code (#23361)
Diffstat (limited to 'keyboards/geonworks')
-rw-r--r-- | keyboards/geonworks/ee_at/ee_at.c | 12 | ||||
-rw-r--r-- | keyboards/geonworks/w1_at/w1_at.c | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/keyboards/geonworks/ee_at/ee_at.c b/keyboards/geonworks/ee_at/ee_at.c index b2e6320851..099fbf315d 100644 --- a/keyboards/geonworks/ee_at/ee_at.c +++ b/keyboards/geonworks/ee_at/ee_at.c @@ -17,14 +17,14 @@ void led_init_ports(void) { // Set our LED pins as open drain outputs - setPinOutputOpenDrain(LED_CAPS_LOCK_PIN); - setPinOutputOpenDrain(LED_NUM_LOCK_PIN); - setPinOutputOpenDrain(LED_SCROLL_LOCK_PIN); - setPinOutputOpenDrain(LED_KANA_PIN); - setPinOutputOpenDrain(A14); + gpio_set_pin_output_open_drain(LED_CAPS_LOCK_PIN); + gpio_set_pin_output_open_drain(LED_NUM_LOCK_PIN); + gpio_set_pin_output_open_drain(LED_SCROLL_LOCK_PIN); + gpio_set_pin_output_open_drain(LED_KANA_PIN); + gpio_set_pin_output_open_drain(A14); } layer_state_t layer_state_set_kb(layer_state_t state) { - writePin(A14, !layer_state_cmp(state, 1)); + gpio_write_pin(A14, !layer_state_cmp(state, 1)); return layer_state_set_user(state); } diff --git a/keyboards/geonworks/w1_at/w1_at.c b/keyboards/geonworks/w1_at/w1_at.c index 9858561bc5..114574455b 100644 --- a/keyboards/geonworks/w1_at/w1_at.c +++ b/keyboards/geonworks/w1_at/w1_at.c @@ -17,14 +17,14 @@ void led_init_ports(void) { // Set our LED pins as open drain outputs - setPinOutputOpenDrain(LED_CAPS_LOCK_PIN); - setPinOutputOpenDrain(LED_NUM_LOCK_PIN); - setPinOutputOpenDrain(LED_SCROLL_LOCK_PIN); - setPinOutputOpenDrain(LED_KANA_PIN); - setPinOutputOpenDrain(A14); + gpio_set_pin_output_open_drain(LED_CAPS_LOCK_PIN); + gpio_set_pin_output_open_drain(LED_NUM_LOCK_PIN); + gpio_set_pin_output_open_drain(LED_SCROLL_LOCK_PIN); + gpio_set_pin_output_open_drain(LED_KANA_PIN); + gpio_set_pin_output_open_drain(A14); } layer_state_t layer_state_set_kb(layer_state_t state) { - writePin(A14, !layer_state_cmp(state, 1)); + gpio_write_pin(A14, !layer_state_cmp(state, 1)); return layer_state_set_user(state); } |