summaryrefslogtreecommitdiff
path: root/keyboards/lazydesigners
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2024-05-02 19:48:49 +1000
committerGitHub <noreply@github.com>2024-05-02 10:48:49 +0100
commit61c7c1f74cc5365501a3038181df551df11f719e (patch)
tree67b134bfd3ba45660765f5c2c46b8d3f535b5b69 /keyboards/lazydesigners
parent7220715dd1619dfb073db78cfc23998a67994655 (diff)
Convert some AVR GPIO operations to macros (#23424)
Diffstat (limited to 'keyboards/lazydesigners')
-rw-r--r--keyboards/lazydesigners/the50/the50.c7
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);
}