aboutsummaryrefslogtreecommitdiff
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)
downloadqmk_firmware-3c0ef04390b3858a0b73707c88e56bb8f65983a9.tar.gz
qmk_firmware-3c0ef04390b3858a0b73707c88e56bb8f65983a9.zip
[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 41e12090c..b94030a37 100755
--- a/keyboards/dichotomy/dichotomy.c
+++ b/keyboards/dichotomy/dichotomy.c
@@ -63,10 +63,13 @@ void pointing_device_task(void){
63} 63}
64 64
65void led_init(void) { 65void led_init(void) {
66 DDRD |= (1<<1); 66 setPinOutput(D1);
67 PORTD |= (1<<1); 67 setPinOutput(F5);
68 DDRF |= (1<<4) | (1<<5); 68 setPinOutput(F6);
69 PORTF |= (1<<4) | (1<<5); 69
70 writePinHigh(D1);
71 writePinHigh(F5);
72 writePinHigh(F6);
70} 73}
71 74
72 75