aboutsummaryrefslogtreecommitdiff
path: root/keyboards/keebio/quefrency
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/keebio/quefrency
parent5426a7a129acf2ff5c8b435014747f1238e17965 (diff)
downloadqmk_firmware-d09a06a1b354760fd0e64a453abade972900e885.tar.gz
qmk_firmware-d09a06a1b354760fd0e64a453abade972900e885.zip
Update GPIO API usage in keyboard code (#23361)
Diffstat (limited to 'keyboards/keebio/quefrency')
-rw-r--r--keyboards/keebio/quefrency/rev2/rev2.c4
-rw-r--r--keyboards/keebio/quefrency/rev3/rev3.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/keyboards/keebio/quefrency/rev2/rev2.c b/keyboards/keebio/quefrency/rev2/rev2.c
index a3bc2ca1ef..f0320597f7 100644
--- a/keyboards/keebio/quefrency/rev2/rev2.c
+++ b/keyboards/keebio/quefrency/rev2/rev2.c
@@ -2,14 +2,14 @@
#include "split_util.h"
void matrix_init_kb(void) {
- setPinOutput(CAPS_LOCK_LED_PIN);
+ gpio_set_pin_output(CAPS_LOCK_LED_PIN);
matrix_init_user();
}
bool led_update_kb(led_t led_state) {
// Only update if left half
if (isLeftHand && led_update_user(led_state)) {
- writePin(CAPS_LOCK_LED_PIN, !led_state.caps_lock);
+ gpio_write_pin(CAPS_LOCK_LED_PIN, !led_state.caps_lock);
}
return true;
}
diff --git a/keyboards/keebio/quefrency/rev3/rev3.c b/keyboards/keebio/quefrency/rev3/rev3.c
index d3ada3076f..74d68723f5 100644
--- a/keyboards/keebio/quefrency/rev3/rev3.c
+++ b/keyboards/keebio/quefrency/rev3/rev3.c
@@ -18,14 +18,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "split_util.h"
void matrix_init_kb(void) {
- setPinOutput(CAPS_LOCK_LED_PIN);
+ gpio_set_pin_output(CAPS_LOCK_LED_PIN);
matrix_init_user();
}
bool led_update_kb(led_t led_state) {
// Only update if left half
if (led_update_user(led_state) && isLeftHand) {
- writePin(CAPS_LOCK_LED_PIN, !led_state.caps_lock);
+ gpio_write_pin(CAPS_LOCK_LED_PIN, !led_state.caps_lock);
}
return true;
}