aboutsummaryrefslogtreecommitdiff
path: root/keyboards/noxary
diff options
context:
space:
mode:
authorRyan <[email protected]>2024-05-02 19:48:49 +1000
committerGitHub <[email protected]>2024-05-02 10:48:49 +0100
commit61c7c1f74cc5365501a3038181df551df11f719e (patch)
tree67b134bfd3ba45660765f5c2c46b8d3f535b5b69 /keyboards/noxary
parent7220715dd1619dfb073db78cfc23998a67994655 (diff)
downloadqmk_firmware-61c7c1f74cc5365501a3038181df551df11f719e.tar.gz
qmk_firmware-61c7c1f74cc5365501a3038181df551df11f719e.zip
Convert some AVR GPIO operations to macros (#23424)
Diffstat (limited to 'keyboards/noxary')
-rw-r--r--keyboards/noxary/268/keymaps/sixtyeight/keymap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/keyboards/noxary/268/keymaps/sixtyeight/keymap.c b/keyboards/noxary/268/keymaps/sixtyeight/keymap.c
index 3527cf7ccc..ab67958264 100644
--- a/keyboards/noxary/268/keymaps/sixtyeight/keymap.c
+++ b/keyboards/noxary/268/keymaps/sixtyeight/keymap.c
@@ -72,10 +72,11 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
bool led_update_user(led_t led_state) {
if (led_state.caps_lock) {
- DDRB |= (1 << 6); PORTB |= (1 << 6);
+ gpio_set_pin_output(B6);
+ gpio_write_pin_high(B6);
}
else {
- DDRB &= ~(1 << 6); PORTB &= ~(1 << 6);
+ gpio_set_pin_input(B6);
}
return false;
}