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/wilba_tech | |
| parent | 7220715dd1619dfb073db78cfc23998a67994655 (diff) | |
Convert some AVR GPIO operations to macros (#23424)
Diffstat (limited to 'keyboards/wilba_tech')
| -rw-r--r-- | keyboards/wilba_tech/wt_rgb_backlight.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/keyboards/wilba_tech/wt_rgb_backlight.c b/keyboards/wilba_tech/wt_rgb_backlight.c index 02bcdd610b..936286c2ee 100644 --- a/keyboards/wilba_tech/wt_rgb_backlight.c +++ b/keyboards/wilba_tech/wt_rgb_backlight.c | |||
| @@ -2629,15 +2629,12 @@ void backlight_debug_led( bool state ) | |||
| 2629 | { | 2629 | { |
| 2630 | if (state) | 2630 | if (state) |
| 2631 | { | 2631 | { |
| 2632 | // Output high. | 2632 | gpio_set_pin_output(E6); |
| 2633 | DDRE |= (1<<6); | 2633 | gpio_write_pin_high(E6); |
| 2634 | PORTE |= (1<<6); | ||
| 2635 | } | 2634 | } |
| 2636 | else | 2635 | else |
| 2637 | { | 2636 | { |
| 2638 | // Output low. | 2637 | gpio_set_pin_input(E6); |
| 2639 | DDRE &= ~(1<<6); | ||
| 2640 | PORTE &= ~(1<<6); | ||
| 2641 | } | 2638 | } |
| 2642 | } | 2639 | } |
| 2643 | #endif // defined(RGB_DEBUGGING_ONLY) | 2640 | #endif // defined(RGB_DEBUGGING_ONLY) |
