summaryrefslogtreecommitdiffstats
path: root/users/wanleg/wanleg.c
diff options
context:
space:
mode:
Diffstat (limited to 'users/wanleg/wanleg.c')
-rw-r--r--users/wanleg/wanleg.c75
1 files changed, 28 insertions, 47 deletions
diff --git a/users/wanleg/wanleg.c b/users/wanleg/wanleg.c
index 0175ae2010..274c74f728 100644
--- a/users/wanleg/wanleg.c
+++ b/users/wanleg/wanleg.c
@@ -29,15 +29,15 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
}
return false;
break;
- case QWERTY75:
+ case NUMPAD:
if (record->event.pressed) {
- set_single_persistent_default_layer(QW75);
+ set_single_persistent_default_layer(PAD);
}
return false;
break;
- case GHERKIN75:
+ case GHERKIN50:
if (record->event.pressed) {
- set_single_persistent_default_layer(GK75);
+ set_single_persistent_default_layer(GK50);
}
return false;
break;
@@ -105,54 +105,35 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
}
return false;
break;
- case SUBTER75:
+ case FUNCTION:
if (record->event.pressed) {
- layer_on(SUB75);
+ layer_on(_FN);
} else {
- layer_off(SUB75);
- }
- return false;
- break;
- case SUPRA75:
- if (record->event.pressed) {
- layer_on(SUP75);
- } else {
- layer_off(SUP75);
- }
- return false;
- break;
- case NUMBER75:
- if (record->event.pressed) {
- layer_on(NUM75);
- } else {
- layer_off(NUM75);
- }
- return false;
- break;
- case DIRECTION75:
- if (record->event.pressed) {
- layer_on(DIR75);
- } else {
- layer_off(DIR75);
- }
- return false;
- break;
- case ETCETERA75:
- if (record->event.pressed) {
- layer_on(ETC75);
- } else {
- layer_off(ETC75);
- }
- return false;
- break;
- case FUNCTION75:
- if (record->event.pressed) {
- layer_on(FN75);
- } else {
- layer_off(FN75);
+ layer_off(_FN);
}
return false;
break;
}
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