summaryrefslogtreecommitdiff
path: root/keyboards/dichotomy/dichotomy.c
diff options
context:
space:
mode:
authordr-BEat <dr-BEat@users.noreply.github.com>2020-03-06 09:47:52 +0100
committerGitHub <noreply@github.com>2020-03-06 00:47:52 -0800
commit3c0ef04390b3858a0b73707c88e56bb8f65983a9 (patch)
tree4235458ab24830e48bdbed24b60ce14298c0fa3d /keyboards/dichotomy/dichotomy.c
parentfd7b52cc64683683109cfb146670b76782a3c490 (diff)
[Keymap] Dichotomy keymap by beat (#8279)
* Added more led helpers * Working keymap * Added new mouse button an made lower layer toggleable * Small improvement to process_record_user * Removed extra layer buttons * Added Numpad to apply layer * Moved buttons and added toggle for raise button * Added Menu,PrintScreen and Windowslock buttons, and left handmouse * Fixed Scroll Buttons * Turned TAPPING TOGGLE to 2 * Switched Del and Ctrl on left hand * Added Home Button to Mouse layer * Fixed led initialization to avoid red led on boot * Updated formatting to follow guidelines * Used enums instead of defines and used layer_state_t type * Added license * Moved TAPPING settings to keymap config * Fixed small formatting issue in keymap.c * Use GPIO Control instead of lowlevel ports
Diffstat (limited to 'keyboards/dichotomy/dichotomy.c')
-rwxr-xr-xkeyboards/dichotomy/dichotomy.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/keyboards/dichotomy/dichotomy.c b/keyboards/dichotomy/dichotomy.c
index 41e12090cb..b94030a376 100755
--- a/keyboards/dichotomy/dichotomy.c
+++ b/keyboards/dichotomy/dichotomy.c
@@ -63,10 +63,13 @@ void pointing_device_task(void){
}
void led_init(void) {
- DDRD |= (1<<1);
- PORTD |= (1<<1);
- DDRF |= (1<<4) | (1<<5);
- PORTF |= (1<<4) | (1<<5);
+ setPinOutput(D1);
+ setPinOutput(F5);
+ setPinOutput(F6);
+
+ writePinHigh(D1);
+ writePinHigh(F5);
+ writePinHigh(F6);
}