aboutsummaryrefslogtreecommitdiff
path: root/keyboards/handwired/datahand
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/handwired/datahand
parent7220715dd1619dfb073db78cfc23998a67994655 (diff)
downloadqmk_firmware-61c7c1f74cc5365501a3038181df551df11f719e.tar.gz
qmk_firmware-61c7c1f74cc5365501a3038181df551df11f719e.zip
Convert some AVR GPIO operations to macros (#23424)
Diffstat (limited to 'keyboards/handwired/datahand')
-rw-r--r--keyboards/handwired/datahand/matrix.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/keyboards/handwired/datahand/matrix.c b/keyboards/handwired/datahand/matrix.c
index afce07e10d..0e31c09a1b 100644
--- a/keyboards/handwired/datahand/matrix.c
+++ b/keyboards/handwired/datahand/matrix.c
@@ -99,27 +99,27 @@ static void select_row(uint8_t row) {
*/
if (row & (1<<0)) {
- PORTE |= (1<<6);
+ gpio_write_pin_high(E6);
} else {
- PORTE &= ~(1<<6);
+ gpio_write_pin_low(E6);
}
if (row & (1<<1)) {
- PORTB |= (1<<7);
+ gpio_write_pin_high(B7);
} else {
- PORTB &= ~(1<<7);
+ gpio_write_pin_low(B7);
}
if (row & (1<<2)) {
- PORTD |= (1<<0);
+ gpio_write_pin_high(D0);
} else {
- PORTD &= ~(1<<0);
+ gpio_write_pin_low(D0);
}
if (row & (1<<3)) {
- PORTD |= (1<<1);
+ gpio_write_pin_high(D1);
} else {
- PORTD &= ~(1<<1);
+ gpio_write_pin_low(D1);
}
}