Skip to content

Commit

Permalink
Convert not_so_minidox to SPLIT_KEYBOARD
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr committed Dec 1, 2021
1 parent 3716e02 commit b49d119
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 929 deletions.
5 changes: 5 additions & 0 deletions keyboards/handwired/not_so_minidox/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#define USE_SERIAL

/*
* Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
*/
#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6

//#define EE_HANDS

#define MASTER_LEFT
Expand Down
162 changes: 0 additions & 162 deletions keyboards/handwired/not_so_minidox/i2c.c

This file was deleted.

46 changes: 0 additions & 46 deletions keyboards/handwired/not_so_minidox/i2c.h

This file was deleted.

56 changes: 5 additions & 51 deletions keyboards/handwired/not_so_minidox/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,10 @@
#define _QWERTY 0
#define _LOWER 1
#define _RAISE 2
#define _ADJUST 16
#define _ADJUST 3

enum custom_keycodes {
QWERTY = SAFE_RANGE,
LOWER,
RAISE,
ADJUST,
};

#define KC_LOWR LOWER
#define KC_RASE RAISE
#define KC_LOWR MO(_LOWER)
#define KC_RASE MO(_RAISE)
#define KC_RST RESET
#define KC_CAD LCTL(LALT(KC_DEL))

Expand Down Expand Up @@ -72,45 +65,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
)
};


bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case QWERTY:
if (record->event.pressed) {
set_single_persistent_default_layer(_QWERTY);
}
return false;
break;
case LOWER:
if (record->event.pressed) {
layer_on(_LOWER);
update_tri_layer(_LOWER, _RAISE, _ADJUST);
} else {
layer_off(_LOWER);
update_tri_layer(_LOWER, _RAISE, _ADJUST);
}
return false;
break;
case RAISE:
if (record->event.pressed) {
layer_on(_RAISE);
update_tri_layer(_LOWER, _RAISE, _ADJUST);
} else {
layer_off(_RAISE);
update_tri_layer(_LOWER, _RAISE, _ADJUST);
}
return false;
break;
case ADJUST:
if (record->event.pressed) {
layer_on(_ADJUST);
update_tri_layer(_LOWER, _RAISE, _ADJUST);
} else {
layer_off(_ADJUST);
update_tri_layer(_LOWER, _RAISE, _ADJUST);
}
return false;
break;
}
return true;
layer_state_t layer_state_set_user(layer_state_t state) {
return update_tri_layer_state(state, _RAISE, _LOWER, _ADJUST);
}
Loading

0 comments on commit b49d119

Please sign in to comment.