summaryrefslogtreecommitdiff
path: root/keyboards/redox_w/redox_w.c
diff options
context:
space:
mode:
author66f9e4eae <99080777+66f94eae@users.noreply.github.com>2022-02-22 01:09:19 +0800
committerGitHub <noreply@github.com>2022-02-21 09:09:19 -0800
commit249eb871028aaaaf508136088ef25fb67a83b28e (patch)
tree55cae2844f4672b9bb9ac6ff4c5840c795227f23 /keyboards/redox_w/redox_w.c
parentb1f86225136247177858203f08e7a3af09c4ad63 (diff)
[Keyboard] [redox_w] add dvorak layout and white led support (#16259)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'keyboards/redox_w/redox_w.c')
-rw-r--r--keyboards/redox_w/redox_w.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/keyboards/redox_w/redox_w.c b/keyboards/redox_w/redox_w.c
index 5b86344536..48ea7d3bed 100644
--- a/keyboards/redox_w/redox_w.c
+++ b/keyboards/redox_w/redox_w.c
@@ -1,10 +1,15 @@
#include "redox_w.h"
void led_init(void) {
- DDRD |= (1<<1);
- PORTD |= (1<<1);
- DDRF |= (1<<4) | (1<<5);
- PORTF |= (1<<4) | (1<<5);
+ setPinOutput(D0);
+ setPinOutput(D1);
+ setPinOutput(F4);
+ setPinOutput(F5);
+
+ writePinHigh(D0);
+ writePinHigh(D1);
+ writePinHigh(F4);
+ writePinHigh(F5);
}