diff --git a/keyboards/sofle_pico/config.h b/keyboards/sofle_pico/config.h index 704f296cf2d..2eb377a1b4b 100644 --- a/keyboards/sofle_pico/config.h +++ b/keyboards/sofle_pico/config.h @@ -56,3 +56,6 @@ # define RGB_DISABLE_WHEN_USB_SUSPENDED #endif + +// Allows for more than the default 4 layers in VIA. +#define DYNAMIC_KEYMAP_LAYER_COUNT 5 diff --git a/keyboards/sofle_pico/keymaps/jellytitan/rules.mk b/keyboards/sofle_pico/keymaps/jellytitan/rules.mk index 52801f1831d..8613fe54dc1 100644 --- a/keyboards/sofle_pico/keymaps/jellytitan/rules.mk +++ b/keyboards/sofle_pico/keymaps/jellytitan/rules.mk @@ -1,4 +1,5 @@ # POINTING_DEVICE_ENABLE = yes POINTING_DEVICE_DRIVER = pimoroni_trackball -TAP_DANCE_ENABLE = yes \ No newline at end of file +TAP_DANCE_ENABLE = yes +VIA_ENABLE = yes \ No newline at end of file diff --git a/keyboards/sofle_pico/keymaps/via/keymap.c b/keyboards/sofle_pico/keymaps/via/keymap.c index 9b4ac7f5ba1..09be46c9d7b 100644 --- a/keyboards/sofle_pico/keymaps/via/keymap.c +++ b/keyboards/sofle_pico/keymaps/via/keymap.c @@ -22,31 +22,11 @@ enum custom_keycodes { KC_DLINE }; -/** - * Tap Dance declarations - */ -enum tapdances { - _TD_FIVE_ENTER, -}; - -/* Tapdance */ -#define TD5ENT TD(_TD_FIVE_ENTER) - -/** - * Tap Dance definitions - * - * To use this in the configurator, enter the name 'TD5ENT' in the "Any" key. - */ -tap_dance_action_t tap_dance_actions[] = { - /* Tap once for 5, twice for Enter. */ - [_TD_FIVE_ENTER] = ACTION_TAP_DANCE_DOUBLE(KC_5, KC_ENT), -}; - const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { /* * QWERTY * ,-----------------------------------------. ,-----------------------------------------. - * | ` | 1 | 2 | 3 | 4 |TD5ENT| | 6 | 7 | 8 | 9 | 0 | ` | + * | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | ` | * |------+------+------+------+------+------| |------+------+------+------+------+------| * | ESC | Q | W | E | R | T | | Y | U | I | O | P | Bspc | * |------+------+------+------+------+------| |------+------+------+------+------+------| @@ -60,7 +40,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { */ [_QWERTY] = LAYOUT( - KC_GRV, KC_1, KC_2, KC_3, KC_4, TD5ENT, KC_6, KC_7, KC_8, KC_9, KC_0, KC_GRV, + KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_GRV, KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_MUTE, XXXXXXX,KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, diff --git a/keyboards/sofle_pico/keymaps/via/readme.md b/keyboards/sofle_pico/keymaps/via/readme.md new file mode 100644 index 00000000000..1fb0f37b58f --- /dev/null +++ b/keyboards/sofle_pico/keymaps/via/readme.md @@ -0,0 +1,20 @@ +![SofleKeyboard default keymap](https://github.com/josefadamcik/SofleKeyboard/raw/master/Images/soflekeyboard.png) +![SofleKeyboard adjust layer](https://github.com/josefadamcik/SofleKeyboard/raw/master/Images/soflekeyboard_layout_adjust.png) + + +# Default keymap for Sofle Pico Keyboard + +Ported directly from the classic Sofle Keyboard by Josef Adamcik. +Layout in [Keyboard Layout Editor](http://www.keyboard-layout-editor.com/#/gists/76efb423a46cbbea75465cb468eef7ff) and [adjust layer](http://www.keyboard-layout-editor.com/#/gists/4bcf66f922cfd54da20ba04905d56bd4) + + +Features: + +- Symmetric modifiers (CMD/Super, Alt/Opt, Ctrl, Shift) +- Various modes, can be switched (using Adjust layer and the selected one is stored in EEPROM. +- Modes for Qwerty and Colemak support +- Modes for Mac vs Linux/Win support -> different order of modifiers and different action shortcuts on the "UPPER" layer (the red one in the image). Designed to simplify transtions when switching between operating systems often. +- The OLED on master half shows selected mode and caps lock state and is rotated. +- Left encoder controls volume up/down/mute. Right encoder PGUP/PGDOWN. + + diff --git a/keyboards/sofle_pico/keymaps/via/rules.mk b/keyboards/sofle_pico/keymaps/via/rules.mk index ee58f6ad32a..036bd6d1c3e 100644 --- a/keyboards/sofle_pico/keymaps/via/rules.mk +++ b/keyboards/sofle_pico/keymaps/via/rules.mk @@ -1,4 +1 @@ -# -POINTING_DEVICE_ENABLE = yes -POINTING_DEVICE_DRIVER = pimoroni_trackball VIA_ENABLE = yes \ No newline at end of file