diff options
author | dr-BEat <[email protected]> | 2020-03-06 09:47:52 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-03-06 00:47:52 -0800 |
commit | 3c0ef04390b3858a0b73707c88e56bb8f65983a9 (patch) | |
tree | 4235458ab24830e48bdbed24b60ce14298c0fa3d /keyboards/dichotomy/dichotomy.c | |
parent | fd7b52cc64683683109cfb146670b76782a3c490 (diff) | |
download | qmk_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-x | keyboards/dichotomy/dichotomy.c | 11 |
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); } |