1
0
Fork 0

[Keyboard] [redox_w] add dvorak layout and white led support (#16259)

Co-authored-by: Drashna Jaelre <drashna@live.com>
This commit is contained in:
66f9e4eae 2022-02-22 01:09:19 +08:00 committed by GitHub
parent b1f8622513
commit 249eb87102
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 188 additions and 18 deletions

View file

@ -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);
}