summaryrefslogtreecommitdiffstats
path: root/users/wanleg/wanleg.c
diff options
context:
space:
mode:
authorwanleg <32079073+wanleg@users.noreply.github.com>2018-08-30 18:34:14 +0200
committerDrashna Jaelre <drashna@live.com>2018-08-30 18:34:14 +0200
commit2fcfd5cff7089338385c40a630315939a7a9ebbc (patch)
tree11e549f05d6141bc40ede234b319ec6edb54be4b /users/wanleg/wanleg.c
parent2b707f3470afd10f2db9db17d096dda836535444 (diff)
downloadqmk_firmware-2fcfd5cff7089338385c40a630315939a7a9ebbc.tar.gz
qmk_firmware-2fcfd5cff7089338385c40a630315939a7a9ebbc.tar.xz
Keymap: Wanleg updates (#3794)
* various edits and minor additions * updates * updates * updates * lets_split LEDs off instructions * lets_split LEDs off instructions * turn off lets_split LEDs in userspace * one-hand setup for right side
Diffstat (limited to 'users/wanleg/wanleg.c')
-rw-r--r--users/wanleg/wanleg.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/users/wanleg/wanleg.c b/users/wanleg/wanleg.c
index 0175ae201..931546c15 100644
--- a/users/wanleg/wanleg.c
+++ b/users/wanleg/wanleg.c
@@ -156,3 +156,24 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
}
return true;
}
+
+/// Turn off LEDs on ProMicros of Let's Split ///
+// LEDs only on by default on Let's Split
+// Add reconfigurable functions here, for keymap customization
+// This allows for a global, userspace functions, and continued
+// customization of the keymap. Use _keymap instead of _user
+// functions in the keymaps
+__attribute__ ((weak))
+void matrix_init_keymap(void) {}
+
+// Call user matrix init, then call the keymap's init function
+void matrix_init_user(void) {
+#if defined(KEYBOARD_lets_split_rev2)
+ DDRD &= ~(1<<5);
+ PORTD &= ~(1<<5);
+
+ DDRB &= ~(1<<0);
+ PORTB &= ~(1<<0);
+#endif
+ matrix_init_keymap();
+} \ No newline at end of file