aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/45_ats
diff options
context:
space:
mode:
authorRyan2024-05-24 20:38:57 +0200
committerGitHub2024-05-24 20:38:57 +0200
commitb8f29c38652fb56fd122e61018778fd5355a8739 (patch)
treef7bc313204854bc8c5a31435ada3bfed2d741b35 /keyboards/45_ats
parent8ff8e9eae5b20b1a0a6cafe7689bfc34188f7aa8 (diff)
Update GPIO macros in keymaps (#23792)
Diffstat (limited to 'keyboards/45_ats')
-rw-r--r--keyboards/45_ats/keymaps/default/keymap.c6
-rw-r--r--keyboards/45_ats/keymaps/via/keymap.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/keyboards/45_ats/keymaps/default/keymap.c b/keyboards/45_ats/keymaps/default/keymap.c
index 3208614b32..3d4b74ab40 100644
--- a/keyboards/45_ats/keymaps/default/keymap.c
+++ b/keyboards/45_ats/keymaps/default/keymap.c
@@ -90,9 +90,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
//function for layer indicator LED
layer_state_t layer_state_set_user(layer_state_t state) {
- writePin(D0, layer_state_cmp(state, 0));
- writePin(D1, layer_state_cmp(state, 1));
- writePin(D2, layer_state_cmp(state, 2));
+ gpio_write_pin(D0, layer_state_cmp(state, 0));
+ gpio_write_pin(D1, layer_state_cmp(state, 1));
+ gpio_write_pin(D2, layer_state_cmp(state, 2));
return state;
}
diff --git a/keyboards/45_ats/keymaps/via/keymap.c b/keyboards/45_ats/keymaps/via/keymap.c
index 3208614b32..3d4b74ab40 100644
--- a/keyboards/45_ats/keymaps/via/keymap.c
+++ b/keyboards/45_ats/keymaps/via/keymap.c
@@ -90,9 +90,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
//function for layer indicator LED
layer_state_t layer_state_set_user(layer_state_t state) {
- writePin(D0, layer_state_cmp(state, 0));
- writePin(D1, layer_state_cmp(state, 1));
- writePin(D2, layer_state_cmp(state, 2));
+ gpio_write_pin(D0, layer_state_cmp(state, 0));
+ gpio_write_pin(D1, layer_state_cmp(state, 1));
+ gpio_write_pin(D2, layer_state_cmp(state, 2));
return state;
}