diff options
author | Ryan <fauxpark@gmail.com> | 2024-05-02 19:48:49 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-02 10:48:49 +0100 |
commit | 61c7c1f74cc5365501a3038181df551df11f719e (patch) | |
tree | 67b134bfd3ba45660765f5c2c46b8d3f535b5b69 /keyboards/lazydesigners/the50/the50.c | |
parent | 7220715dd1619dfb073db78cfc23998a67994655 (diff) | |
download | qmk_firmware-61c7c1f74cc5365501a3038181df551df11f719e.tar.gz qmk_firmware-61c7c1f74cc5365501a3038181df551df11f719e.zip |
Convert some AVR GPIO operations to macros (#23424)
Diffstat (limited to 'keyboards/lazydesigners/the50/the50.c')
-rw-r--r-- | keyboards/lazydesigners/the50/the50.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/keyboards/lazydesigners/the50/the50.c b/keyboards/lazydesigners/the50/the50.c index 35c678fd5e..bf0391bfb4 100644 --- a/keyboards/lazydesigners/the50/the50.c +++ b/keyboards/lazydesigners/the50/the50.c @@ -1,9 +1,12 @@ #include "the50.h" +#define THE50_LED_PIN B7 + void the50_led_on(void) { - DDRB |= (1 << 7); PORTB &= ~(1 << 7); + gpio_set_pin_output(THE50_LED_PIN); + gpio_write_pin_low(THE50_LED_PIN); } void the50_led_off(void) { - DDRB &= ~(1 << 7); PORTB &= ~(1 << 7); + gpio_set_pin_input(THE50_LED_PIN); } |