aboutsummaryrefslogtreecommitdiff
path: root/keyboards/primekb
diff options
context:
space:
mode:
authorRyan <[email protected]>2024-05-25 04:38:57 +1000
committerGitHub <[email protected]>2024-05-24 19:38:57 +0100
commitb8f29c38652fb56fd122e61018778fd5355a8739 (patch)
treef7bc313204854bc8c5a31435ada3bfed2d741b35 /keyboards/primekb
parent8ff8e9eae5b20b1a0a6cafe7689bfc34188f7aa8 (diff)
downloadqmk_firmware-b8f29c38652fb56fd122e61018778fd5355a8739.tar.gz
qmk_firmware-b8f29c38652fb56fd122e61018778fd5355a8739.zip
Update GPIO macros in keymaps (#23792)
Diffstat (limited to 'keyboards/primekb')
-rw-r--r--keyboards/primekb/prime_e/keymaps/default/keymap.c24
-rw-r--r--keyboards/primekb/prime_e/keymaps/via/keymap.c24
2 files changed, 24 insertions, 24 deletions
diff --git a/keyboards/primekb/prime_e/keymaps/default/keymap.c b/keyboards/primekb/prime_e/keymaps/default/keymap.c
index e5e47cffc2..0178efba2e 100644
--- a/keyboards/primekb/prime_e/keymaps/default/keymap.c
+++ b/keyboards/primekb/prime_e/keymaps/default/keymap.c
@@ -47,26 +47,26 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
void matrix_init_user(void) {
// set CapsLock LED to output and low
- setPinOutput(B1);
- writePinLow(B1);
+ gpio_set_pin_output(B1);
+ gpio_write_pin_low(B1);
// set NumLock LED to output and low
- setPinOutput(B2);
- writePinLow(B2);
+ gpio_set_pin_output(B2);
+ gpio_write_pin_low(B2);
// set ScrollLock LED to output and low
- setPinOutput(B3);
- writePinLow(B3);
+ gpio_set_pin_output(B3);
+ gpio_write_pin_low(B3);
}
bool led_update_user(led_t led_state) {
if (led_state.num_lock) {
- writePinHigh(B2);
+ gpio_write_pin_high(B2);
} else {
- writePinLow(B2);
+ gpio_write_pin_low(B2);
}
if (led_state.caps_lock) {
- writePinHigh(B1);
+ gpio_write_pin_high(B1);
} else {
- writePinLow(B1);
+ gpio_write_pin_low(B1);
}
return false;
}
@@ -75,9 +75,9 @@ bool led_update_user(led_t led_state) {
layer_state_t layer_state_set_user(layer_state_t state)
{
if (get_highest_layer(state) == 1) {
- writePinHigh(B3);
+ gpio_write_pin_high(B3);
} else {
- writePinLow(B3);
+ gpio_write_pin_low(B3);
}
return state;
}
diff --git a/keyboards/primekb/prime_e/keymaps/via/keymap.c b/keyboards/primekb/prime_e/keymaps/via/keymap.c
index 09a42b0d16..b8d2c24797 100644
--- a/keyboards/primekb/prime_e/keymaps/via/keymap.c
+++ b/keyboards/primekb/prime_e/keymaps/via/keymap.c
@@ -75,26 +75,26 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
void matrix_init_user(void) {
// set CapsLock LED to output and low
- setPinOutput(B1);
- writePinLow(B1);
+ gpio_set_pin_output(B1);
+ gpio_write_pin_low(B1);
// set NumLock LED to output and low
- setPinOutput(B2);
- writePinLow(B2);
+ gpio_set_pin_output(B2);
+ gpio_write_pin_low(B2);
// set ScrollLock LED to output and low
- setPinOutput(B3);
- writePinLow(B3);
+ gpio_set_pin_output(B3);
+ gpio_write_pin_low(B3);
}
bool led_update_user(led_t led_state) {
if (led_state.num_lock) {
- writePinHigh(B2);
+ gpio_write_pin_high(B2);
} else {
- writePinLow(B2);
+ gpio_write_pin_low(B2);
}
if (led_state.caps_lock) {
- writePinHigh(B1);
+ gpio_write_pin_high(B1);
} else {
- writePinLow(B1);
+ gpio_write_pin_low(B1);
}
return false;
}
@@ -103,9 +103,9 @@ bool led_update_user(led_t led_state) {
layer_state_t layer_state_set_user(layer_state_t state)
{
if (get_highest_layer(state) == 1) {
- writePinHigh(B3);
+ gpio_write_pin_high(B3);
} else {
- writePinLow(B3);
+ gpio_write_pin_low(B3);
}
return state;
}