diff options
| -rw-r--r-- | keyboards/manta60/config.h | 118 | ||||
| -rw-r--r-- | keyboards/manta60/info.json | 147 | ||||
| -rw-r--r-- | keyboards/manta60/keymaps/default/config.h | 2 | ||||
| -rw-r--r-- | keyboards/manta60/keymaps/default/keymap.c | 166 | ||||
| -rw-r--r-- | keyboards/manta60/manta60.c | 16 | ||||
| -rw-r--r-- | keyboards/manta60/manta60.h | 45 | ||||
| -rw-r--r-- | keyboards/manta60/readme.md | 6 | ||||
| -rw-r--r-- | keyboards/manta60/rules.mk | 24 |
8 files changed, 268 insertions, 256 deletions
diff --git a/keyboards/manta60/config.h b/keyboards/manta60/config.h index 0bc49541c..8bb63a566 100644 --- a/keyboards/manta60/config.h +++ b/keyboards/manta60/config.h | |||
| @@ -20,12 +20,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 20 | #include "config_common.h" | 20 | #include "config_common.h" |
| 21 | 21 | ||
| 22 | /* USB Device descriptor parameter */ | 22 | /* USB Device descriptor parameter */ |
| 23 | #define VENDOR_ID 0xFEED | 23 | #define VENDOR_ID 0xFEED |
| 24 | #define PRODUCT_ID 0x991D | 24 | #define PRODUCT_ID 0x991D |
| 25 | #define DEVICE_VER 0x0001 | 25 | #define DEVICE_VER 0x0001 |
| 26 | #define MANUFACTURER kamonanban | 26 | #define MANUFACTURER kamonanban |
| 27 | #define PRODUCT manta60 | 27 | #define PRODUCT manta60 |
| 28 | #define DESCRIPTION A split keyboard with 27 ortholinear keys and 5-7 thumb/little finger keys | ||
| 29 | 28 | ||
| 30 | /* key matrix size */ | 29 | /* key matrix size */ |
| 31 | #define MATRIX_ROWS 10 | 30 | #define MATRIX_ROWS 10 |
| @@ -45,7 +44,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 45 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2 } | 44 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2 } |
| 46 | #define UNUSED_PINS | 45 | #define UNUSED_PINS |
| 47 | 46 | ||
| 48 | /* COL2ROW, ROW2COL*/ | 47 | /* COL2ROW, ROW2COL */ |
| 49 | #define DIODE_DIRECTION COL2ROW | 48 | #define DIODE_DIRECTION COL2ROW |
| 50 | 49 | ||
| 51 | /* | 50 | /* |
| @@ -54,50 +53,45 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 54 | #define SOFT_SERIAL_PIN D2 | 53 | #define SOFT_SERIAL_PIN D2 |
| 55 | #define SELECT_SOFT_SERIAL_SPEED 1 | 54 | #define SELECT_SOFT_SERIAL_SPEED 1 |
| 56 | 55 | ||
| 57 | #define RGBLIGHT_SPLIT | ||
| 58 | #define RGB_DI_PIN D3 | 56 | #define RGB_DI_PIN D3 |
| 59 | |||
| 60 | #ifdef RGBLIGHT_ENABLE | ||
| 61 | #define RGBLED_NUM 68 // Number of LEDs | ||
| 62 | #define RGBLED_SPLIT { 34, 34 } | ||
| 63 | #endif | ||
| 64 | |||
| 65 | #ifdef RGB_DI_PIN | 57 | #ifdef RGB_DI_PIN |
| 66 | #define RGBLIGHT_ANIMATIONS | 58 | # define RGBLED_NUM 68 |
| 67 | // /*== or choose animations ==*/ | 59 | # define RGBLIGHT_SPLIT |
| 68 | // #define RGBLIGHT_EFFECT_BREATHING | 60 | # define RGBLED_SPLIT { 34, 34 } |
| 69 | // #define RGBLIGHT_EFFECT_RAINBOW_MOOD | 61 | # define RGBLIGHT_HUE_STEP 8 |
| 70 | // #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | 62 | # define RGBLIGHT_SAT_STEP 8 |
| 71 | // #define RGBLIGHT_EFFECT_SNAKE | 63 | # ifndef IOS_DEVICE_ENABLE |
| 72 | // #define RGBLIGHT_EFFECT_KNIGHT | 64 | # define RGBLIGHT_VAL_STEP 16 |
| 73 | // #define RGBLIGHT_EFFECT_CHRISTMAS | 65 | # define RGBLIGHT_LIMIT_VAL 128 /* The maximum brightness level */ |
| 74 | // #define RGBLIGHT_EFFECT_STATIC_GRADIENT | 66 | # else |
| 75 | // #define RGBLIGHT_EFFECT_RGB_TEST | 67 | # define RGBLIGHT_VAL_STEP 4 |
| 76 | // #define RGBLIGHT_EFFECT_ALTERNATING | 68 | # define RGBLIGHT_LIMIT_VAL 32 /* The maximum brightness level */ |
| 77 | // /*== customize breathing effect ==*/ | 69 | # endif |
| 78 | // /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | 70 | //# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ |
| 79 | // #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | 71 | /*== all animations enable ==*/ |
| 80 | // /*==== use exp() and sin() ====*/ | 72 | # define RGBLIGHT_ANIMATIONS |
| 81 | // #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | 73 | /*== or choose animations ==*/ |
| 82 | // #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | 74 | //# define RGBLIGHT_EFFECT_BREATHING |
| 83 | #endif | 75 | //# define RGBLIGHT_EFFECT_RAINBOW_MOOD |
| 84 | 76 | //# define RGBLIGHT_EFFECT_RAINBOW_SWIRL | |
| 85 | #ifndef IOS_DEVICE_ENABLE | 77 | //# define RGBLIGHT_EFFECT_SNAKE |
| 86 | /* The maximum brightness level */ | 78 | //# define RGBLIGHT_EFFECT_KNIGHT |
| 87 | #define RGBLIGHT_LIMIT_VAL 128 | 79 | //# define RGBLIGHT_EFFECT_CHRISTMAS |
| 88 | #define RGBLIGHT_VAL_STEP 16 | 80 | //# define RGBLIGHT_EFFECT_STATIC_GRADIENT |
| 89 | #else | 81 | //# define RGBLIGHT_EFFECT_RGB_TEST |
| 90 | #define RGBLIGHT_LIMIT_VAL 32 | 82 | //# define RGBLIGHT_EFFECT_ALTERNATING |
| 91 | #define RGBLIGHT_VAL_STEP 4 | 83 | /*== customize breathing effect ==*/ |
| 84 | /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
| 85 | //# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
| 86 | /*==== use exp() and sin() ====*/ | ||
| 87 | //# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
| 88 | //# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
| 92 | #endif | 89 | #endif |
| 93 | 90 | ||
| 94 | #define RGBLIGHT_HUE_STEP 8 | ||
| 95 | #define RGBLIGHT_SAT_STEP 8 | ||
| 96 | |||
| 97 | #if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE) | 91 | #if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE) |
| 98 | #define USB_MAX_POWER_CONSUMPTION 400 | 92 | # define USB_MAX_POWER_CONSUMPTION 400 |
| 99 | #else | 93 | #else |
| 100 | #define USB_MAX_POWER_CONSUMPTION 100 | 94 | # define USB_MAX_POWER_CONSUMPTION 100 |
| 101 | #endif | 95 | #endif |
| 102 | 96 | ||
| 103 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 97 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
| @@ -111,6 +105,32 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 111 | /* Locking resynchronize hack */ | 105 | /* Locking resynchronize hack */ |
| 112 | #define LOCKING_RESYNC_ENABLE | 106 | #define LOCKING_RESYNC_ENABLE |
| 113 | 107 | ||
| 108 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 109 | * This is useful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 110 | */ | ||
| 111 | //#define GRAVE_ESC_CTRL_OVERRIDE | ||
| 112 | |||
| 113 | /* | ||
| 114 | * Force NKRO | ||
| 115 | * | ||
| 116 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 117 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 118 | * makefile for this to work.) | ||
| 119 | * | ||
| 120 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 121 | * until the next keyboard reset. | ||
| 122 | * | ||
| 123 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 124 | * fully operational during normal computer usage. | ||
| 125 | * | ||
| 126 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 127 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 128 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 129 | * power-up. | ||
| 130 | * | ||
| 131 | */ | ||
| 132 | //#define FORCE_NKRO | ||
| 133 | |||
| 114 | /* | 134 | /* |
| 115 | * Feature disable options | 135 | * Feature disable options |
| 116 | * These options are also useful to firmware size reduction. | 136 | * These options are also useful to firmware size reduction. |
| @@ -126,5 +146,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 126 | //#define NO_ACTION_LAYER | 146 | //#define NO_ACTION_LAYER |
| 127 | //#define NO_ACTION_TAPPING | 147 | //#define NO_ACTION_TAPPING |
| 128 | //#define NO_ACTION_ONESHOT | 148 | //#define NO_ACTION_ONESHOT |
| 129 | //#define NO_ACTION_MACRO | 149 | |
| 130 | //#define NO_ACTION_FUNCTION | 150 | /* disable these deprecated features by default */ |
| 151 | #define NO_ACTION_MACRO | ||
| 152 | #define NO_ACTION_FUNCTION | ||
| 153 | |||
| 154 | /* Bootmagic Lite key configuration */ | ||
| 155 | //#define BOOTMAGIC_LITE_ROW 0 | ||
| 156 | //#define BOOTMAGIC_LITE_COLUMN 0 | ||
diff --git a/keyboards/manta60/info.json b/keyboards/manta60/info.json index 9362869e6..08039557b 100644 --- a/keyboards/manta60/info.json +++ b/keyboards/manta60/info.json | |||
| @@ -7,74 +7,85 @@ | |||
| 7 | "layouts": { | 7 | "layouts": { |
| 8 | "LAYOUT": { | 8 | "LAYOUT": { |
| 9 | "layout": [ | 9 | "layout": [ |
| 10 | {"label":"Esc", "x":0, "y":0}, | 10 | {"x": 0, "y": 0}, |
| 11 | {"label":"!", "x":1, "y":0}, | 11 | {"x": 1, "y": 0}, |
| 12 | {"label":"@", "x":2, "y":0}, | 12 | {"x": 2, "y": 0}, |
| 13 | {"label":"#", "x":3, "y":0}, | 13 | {"x": 3, "y": 0}, |
| 14 | {"label":"$", "x":4, "y":0}, | 14 | {"x": 4, "y": 0}, |
| 15 | {"label":"%", "x":5, "y":0}, | 15 | {"x": 5, "y": 0}, |
| 16 | {"label":"=", "x":6, "y":0}, | 16 | {"x": 6, "y": 0}, |
| 17 | {"label":"-", "x":10, "y":0}, | 17 | |
| 18 | {"label":"^", "x":11, "y":0}, | 18 | {"x": 10, "y": 0}, |
| 19 | {"label":"&", "x":12, "y":0}, | 19 | {"x": 11, "y": 0}, |
| 20 | {"label":"*", "x":13, "y":0}, | 20 | {"x": 12, "y": 0}, |
| 21 | {"label":"(", "x":14, "y":0}, | 21 | {"x": 13, "y": 0}, |
| 22 | {"label":")", "x":15, "y":0}, | 22 | {"x": 14, "y": 0}, |
| 23 | {"label":"\\", "x":16, "y":0}, | 23 | {"x": 15, "y": 0}, |
| 24 | {"label":"-", "x":0, "y":1}, | 24 | {"x": 16, "y": 0}, |
| 25 | {"label":"Q", "x":1, "y":1}, | 25 | |
| 26 | {"label":"W", "x":2, "y":1}, | 26 | {"x": 0, "y": 1}, |
| 27 | {"label":"E", "x":3, "y":1}, | 27 | {"x": 1, "y": 1}, |
| 28 | {"label":"R", "x":4, "y":1}, | 28 | {"x": 2, "y": 1}, |
| 29 | {"label":"T", "x":5, "y":1}, | 29 | {"x": 3, "y": 1}, |
| 30 | {"label":"[", "x":6, "y":1}, | 30 | {"x": 4, "y": 1}, |
| 31 | {"label":"]", "x":10, "y":1}, | 31 | {"x": 5, "y": 1}, |
| 32 | {"label":"Y", "x":11, "y":1}, | 32 | {"x": 6, "y": 1}, |
| 33 | {"label":"U", "x":12, "y":1}, | 33 | |
| 34 | {"label":"I", "x":13, "y":1}, | 34 | {"x": 10, "y": 1}, |
| 35 | {"label":"O", "x":14, "y":1}, | 35 | {"x": 11, "y": 1}, |
| 36 | {"label":"P", "x":15, "y":1}, | 36 | {"x": 12, "y": 1}, |
| 37 | {"label":"@", "x":16, "y":1}, | 37 | {"x": 13, "y": 1}, |
| 38 | {"label":"Tab", "x":0, "y":2}, | 38 | {"x": 14, "y": 1}, |
| 39 | {"label":"A", "x":1, "y":2}, | 39 | {"x": 15, "y": 1}, |
| 40 | {"label":"S", "x":2, "y":2}, | 40 | {"x": 16, "y": 1}, |
| 41 | {"label":"D", "x":3, "y":2}, | 41 | |
| 42 | {"label":"F", "x":4, "y":2}, | 42 | {"x": 0, "y": 2}, |
| 43 | {"label":"G", "x":5, "y":2}, | 43 | {"x": 1, "y": 2}, |
| 44 | {"label":",", "x":6, "y":2}, | 44 | {"x": 2, "y": 2}, |
| 45 | {"label":".", "x":10, "y":2}, | 45 | {"x": 3, "y": 2}, |
| 46 | {"label":"H", "x":11, "y":2}, | 46 | {"x": 4, "y": 2}, |
| 47 | {"label":"J", "x":12, "y":2}, | 47 | {"x": 5, "y": 2}, |
| 48 | {"label":"K", "x":13, "y":2}, | 48 | {"x": 6, "y": 2}, |
| 49 | {"label":"L", "x":14, "y":2}, | 49 | |
| 50 | {"label":"UP", "x":15, "y":2}, | 50 | {"x": 10, "y": 2}, |
| 51 | {"label":";", "x":16, "y":2}, | 51 | {"x": 11, "y": 2}, |
| 52 | {"label":"Shft", "x":0, "y":3}, | 52 | {"x": 12, "y": 2}, |
| 53 | {"label":"Z", "x":1, "y":3}, | 53 | {"x": 13, "y": 2}, |
| 54 | {"label":"X", "x":2, "y":3}, | 54 | {"x": 14, "y": 2}, |
| 55 | {"label":"C", "x":3, "y":3}, | 55 | {"x": 15, "y": 2}, |
| 56 | {"label":"V", "x":4, "y":3}, | 56 | {"x": 16, "y": 2}, |
| 57 | {"label":"Alt", "x":5, "y":3}, | 57 | |
| 58 | {"label":"B", "x":11, "y":3}, | 58 | {"x": 0, "y": 3}, |
| 59 | {"label":"N", "x":12, "y":3}, | 59 | {"x": 1, "y": 3}, |
| 60 | {"label":"M", "x":13, "y":3}, | 60 | {"x": 2, "y": 3}, |
| 61 | {"label":"LEFT", "x":14, "y":3}, | 61 | {"x": 3, "y": 3}, |
| 62 | {"label":"DOWN", "x":15, "y":3}, | 62 | {"x": 4, "y": 3}, |
| 63 | {"label":"RIGHT", "x":16, "y":3}, | 63 | {"x": 5, "y": 3}, |
| 64 | {"label":"LOWER", "x":0, "y":4}, | 64 | |
| 65 | {"x":1, "y":4}, | 65 | {"x": 11, "y": 3}, |
| 66 | {"label":"Alt", "x":4, "y":4}, | 66 | {"x": 12, "y": 3}, |
| 67 | {"label":"Ctrl", "x":5, "y":4.25}, | 67 | {"x": 13, "y": 3}, |
| 68 | {"label":"SPC", "x":6, "y":3.5, "h":2}, | 68 | {"x": 14, "y": 3}, |
| 69 | {"label":"cmd", "x":7, "y":3.5}, | 69 | {"x": 15, "y": 3}, |
| 70 | {"label":"Enter", "x":7, "y":4.5}, | 70 | {"x": 16, "y": 3}, |
| 71 | {"label":"BS", "x":9, "y":4.5}, | 71 | |
| 72 | {"label":"DEL", "x":9, "y":3.5}, | 72 | {"x": 0, "y": 4}, |
| 73 | {"label":"SPC", "x":10, "y":3.5, "h":2}, | 73 | {"x": 1, "y": 4}, |
| 74 | {"label":"Ctrl", "x":11, "y":4.25}, | 74 | |
| 75 | {"label":"Alt", "x":12, "y":4}, | 75 | {"x": 4, "y": 4}, |
| 76 | {"x":15, "y":4}, | 76 | {"x": 5, "y": 4.25}, |
| 77 | {"label":"RAISE", "x":16, "y":4} | 77 | {"x": 6, "y": 3.5, "h": 2}, |
| 78 | {"x": 7, "y": 3.5}, | ||
| 79 | {"x": 7, "y": 4.5}, | ||
| 80 | |||
| 81 | {"x": 9, "y": 4.5}, | ||
| 82 | {"x": 9, "y": 3.5}, | ||
| 83 | {"x": 10, "y": 3.5, "h": 2}, | ||
| 84 | {"x": 11, "y": 4.25}, | ||
| 85 | {"x": 12, "y": 4}, | ||
| 86 | |||
| 87 | {"x": 15, "y": 4}, | ||
| 88 | {"x": 16, "y": 4} | ||
| 78 | ] | 89 | ] |
| 79 | } | 90 | } |
| 80 | } | 91 | } |
diff --git a/keyboards/manta60/keymaps/default/config.h b/keyboards/manta60/keymaps/default/config.h index 55af5473e..a59b247de 100644 --- a/keyboards/manta60/keymaps/default/config.h +++ b/keyboards/manta60/keymaps/default/config.h | |||
| @@ -17,5 +17,3 @@ | |||
| 17 | #pragma once | 17 | #pragma once |
| 18 | 18 | ||
| 19 | #define RGBLIGHT_SLEEP | 19 | #define RGBLIGHT_SLEEP |
| 20 | |||
| 21 | // place overrides here | ||
diff --git a/keyboards/manta60/keymaps/default/keymap.c b/keyboards/manta60/keymaps/default/keymap.c index 5e98141b7..f7cafdacd 100644 --- a/keyboards/manta60/keymaps/default/keymap.c +++ b/keyboards/manta60/keymaps/default/keymap.c | |||
| @@ -13,119 +13,91 @@ | |||
| 13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | |||
| 16 | #include QMK_KEYBOARD_H | 17 | #include QMK_KEYBOARD_H |
| 17 | 18 | ||
| 18 | // Defines names for use in layer keycodes and the keymap | 19 | enum layer_names { |
| 19 | enum layer_number { | 20 | _BASE = 0, |
| 20 | _BASE = 0, | 21 | _LOWER, |
| 21 | _LOWER, | 22 | _RAISE, |
| 22 | _RAISE, | 23 | _ADJUST |
| 23 | _ADJUST, | ||
| 24 | }; | 24 | }; |
| 25 | 25 | ||
| 26 | // Defines the keycodes used by our macros in process_record_user | ||
| 27 | enum custom_keycodes { | 26 | enum custom_keycodes { |
| 28 | LOWER = SAFE_RANGE, | 27 | LOWER = SAFE_RANGE, |
| 29 | RAISE, | 28 | RAISE, |
| 30 | ADJUST | 29 | ADJUST |
| 31 | }; | 30 | }; |
| 32 | 31 | ||
| 33 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 32 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| 34 | [_BASE] = LAYOUT( | 33 | [_BASE] = LAYOUT( |
| 35 | //,---------------------------------------------------------------------.,---------------------------------------------------------------------. | 34 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_EQL, KC_MINS, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSLS, |
| 36 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_EQL, KC_MINS, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSLS, | 35 | KC_GRV, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_LBRC, KC_RBRC, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_AT, |
| 37 | //|---------+---------+---------+---------+---------+---------+---------|\---------+---------+---------+---------+---------+---------+---------| | 36 | KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_COMM, KC_DOT, KC_H, KC_J, KC_K, KC_L, KC_UP, KC_SCLN, |
| 38 | KC_GRV, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_LBRC, KC_RBRC, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_AT, | 37 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_SLSH, KC_B, KC_N, KC_M, KC_LEFT, KC_DOWN, KC_RGHT, |
| 39 | //|---------+---------+---------+---------+---------+---------+---------|\---------+---------+---------+---------+---------+---------+---------| | 38 | LOWER, XXXXXXX, KC_LALT, KC_LCTL, KC_SPC, KC_LGUI, KC_ENT, KC_BSPC, KC_DEL, KC_SPC, KC_RCTL, KC_RALT, XXXXXXX, RAISE |
| 40 | KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_COMM, KC_DOT, KC_H, KC_J, KC_K, KC_L, KC_UP, KC_SCLN, | 39 | ), |
| 41 | //|---------+---------+---------+---------+---------+---------+---------|\---------+---------+---------+---------+---------+---------+---------| | ||
| 42 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_SLSH, KC_B, KC_N, KC_M, KC_LEFT, KC_DOWN, KC_RGHT, | ||
| 43 | //|---------+---------+---------+---------+---------+---------+---------|\---------+---------+---------+---------+---------+---------+---------| | ||
| 44 | LOWER, XXXXXXX, KC_LALT, KC_LCTRL, KC_SPC, KC_LGUI, KC_ENT, KC_BSPC, KC_DEL, KC_SPC, KC_RCTRL, KC_RALT, XXXXXXX, RAISE | ||
| 45 | //`---------+----------/\-------+---------+---------+---------+---------/\---------+---------+---------+---------+---------/\--------+----------' | ||
| 46 | ), | ||
| 47 | 40 | ||
| 48 | [_LOWER] = LAYOUT( | 41 | [_LOWER] = LAYOUT( |
| 49 | //,---------------------------------------------------------------------.,---------------------------------------------------------------------. | 42 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, XXXXXXX, XXXXXXX, XXXXXXX, KC_MINS, KC_EQL, KC_JYEN, KC_LBRC, KC_RBRC, |
| 50 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, XXXXXXX, XXXXXXX, XXXXXXX, KC_MINS, KC_EQL, KC_JYEN, KC_LBRC, KC_RBRC, | 43 | _______, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_SCLN, KC_QUOT, KC_BSLS, |
| 51 | //|---------+---------+---------+---------+---------+---------+---------|\---------+---------+---------+---------+---------+---------+---------| | 44 | _______, KC_F11, KC_F12, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_COMM, KC_DOT, KC_SLSH, XXXXXXX, |
| 52 | _______, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_SCLN, KC_QUOT, KC_BSLS, | 45 | _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, |
| 53 | //|---------+---------+---------+---------+---------+---------+---------|\---------+---------+---------+---------+---------+---------+---------| | 46 | LOWER, XXXXXXX, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, XXXXXXX, RAISE |
| 54 | _______, KC_F11, KC_F12, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_COMM, KC_DOT, KC_SLSH, XXXXXXX, | 47 | ), |
| 55 | //|---------+---------+---------+---------+---------+---------+---------|\---------+---------+---------+---------+---------+---------+---------| | ||
| 56 | _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, | ||
| 57 | //|---------+---------+---------+---------+---------+---------+---------|\---------+---------+---------+---------+---------+---------+---------| | ||
| 58 | LOWER, XXXXXXX, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, XXXXXXX, RAISE | ||
| 59 | //`---------+----------/\-------+---------+---------+---------+---------/\---------+---------+---------+---------+---------/\--------+----------' | ||
| 60 | ), | ||
| 61 | 48 | ||
| 62 | [_RAISE] = LAYOUT( | 49 | [_RAISE] = LAYOUT( |
| 63 | //,---------------------------------------------------------------------.,---------------------------------------------------------------------. | 50 | _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, |
| 64 | _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, | 51 | _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, |
| 65 | //|---------+---------+---------+---------+---------+---------+---------|\---------+---------+---------+---------+---------+---------+---------| | 52 | _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, |
| 66 | _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, | 53 | _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, |
| 67 | //|---------+---------+---------+---------+---------+---------+---------|\---------+---------+---------+---------+---------+---------+---------| | 54 | LOWER, XXXXXXX, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, XXXXXXX, RAISE |
| 68 | _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, | 55 | ), |
| 69 | //|---------+---------+---------+---------+---------+---------+---------|\---------+---------+---------+---------+---------+---------+---------| | ||
| 70 | _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, | ||
| 71 | //|---------+---------+---------+---------+---------+---------+---------|\---------+---------+---------+---------+---------+---------+---------| | ||
| 72 | LOWER, XXXXXXX, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, XXXXXXX, RAISE | ||
| 73 | //`---------+----------/\-------+---------+---------+---------+---------/\---------+---------+---------+---------+---------/\--------+----------' | ||
| 74 | ), | ||
| 75 | 56 | ||
| 76 | [_ADJUST] = LAYOUT( | 57 | [_ADJUST] = LAYOUT( |
| 77 | //,---------------------------------------------------------------------.,---------------------------------------------------------------------. | 58 | _______, RGB_TOG, XXXXXXX, XXXXXXX, XXXXXXX, RGB_M_R, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RESET, |
| 78 | _______, RGB_TOG, XXXXXXX, XXXXXXX, XXXXXXX, RGB_M_R, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RESET, | 59 | _______, RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, RGB_M_SN,XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, |
| 79 | //|---------+---------+---------+---------+---------+---------+---------|\---------+---------+---------+---------+---------+---------+---------| | 60 | _______, RGB_M_T, RGB_HUD, RGB_SAD, RGB_VAD, RGB_M_K, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, |
| 80 | _______, RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, RGB_M_SN, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, | 61 | _______, RGB_M_P, XXXXXXX, XXXXXXX, XXXXXXX, RGB_M_SW, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, |
| 81 | //|---------+---------+---------+---------+---------+---------+---------|\---------+---------+---------+---------+---------+---------+---------| | 62 | LOWER, XXXXXXX, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, XXXXXXX, RAISE |
| 82 | _______, RGB_M_T, RGB_HUD, RGB_SAD, RGB_VAD, RGB_M_K, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, | 63 | ) |
| 83 | //|---------+---------+---------+---------+---------+---------+---------|\---------+---------+---------+---------+---------+---------+---------| | ||
| 84 | _______, RGB_M_P, XXXXXXX, XXXXXXX, XXXXXXX, RGB_M_SW, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, | ||
| 85 | //|---------+---------+---------+---------+---------+---------+---------|\---------+---------+---------+---------+---------+---------+---------| | ||
| 86 | LOWER, XXXXXXX, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, XXXXXXX, RAISE | ||
| 87 | //`---------+----------/\-------+---------+---------+---------+---------/\---------+---------+---------+---------+---------/\--------+----------' | ||
| 88 | ) | ||
| 89 | }; | 64 | }; |
| 90 | 65 | ||
| 91 | static inline void update_tri_layer_RGB(uint8_t layer1, uint8_t layer2, uint8_t layer3) { | 66 | static inline void update_tri_layer_RGB(uint8_t layer1, uint8_t layer2, uint8_t layer3) { |
| 92 | if (IS_LAYER_ON(layer1) && IS_LAYER_ON(layer2)) { | 67 | if (IS_LAYER_ON(layer1) && IS_LAYER_ON(layer2)) { |
| 93 | layer_on(layer3); | 68 | layer_on(layer3); |
| 94 | } else { | 69 | } else { |
| 95 | layer_off(layer3); | 70 | layer_off(layer3); |
| 96 | } | 71 | } |
| 97 | } | 72 | } |
| 98 | 73 | ||
| 99 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | 74 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { |
| 100 | switch (keycode) { | 75 | switch (keycode) { |
| 101 | case LOWER: | 76 | case LOWER: |
| 102 | if (record->event.pressed) { | 77 | if (record->event.pressed) { |
| 103 | layer_on(_LOWER); | 78 | layer_on(_LOWER); |
| 104 | update_tri_layer_RGB(_LOWER, _RAISE, _ADJUST); | 79 | update_tri_layer_RGB(_LOWER, _RAISE, _ADJUST); |
| 105 | } else { | 80 | } else { |
| 106 | layer_off(_LOWER); | 81 | layer_off(_LOWER); |
| 107 | update_tri_layer_RGB(_LOWER, _RAISE, _ADJUST); | 82 | update_tri_layer_RGB(_LOWER, _RAISE, _ADJUST); |
| 108 | } | 83 | } |
| 109 | return false; | 84 | return false; |
| 110 | break; | 85 | case RAISE: |
| 111 | case RAISE: | 86 | if (record->event.pressed) { |
| 112 | if (record->event.pressed) { | 87 | layer_on(_RAISE); |
| 113 | layer_on(_RAISE); | 88 | update_tri_layer_RGB(_LOWER, _RAISE, _ADJUST); |
| 114 | update_tri_layer_RGB(_LOWER, _RAISE, _ADJUST); | 89 | } else { |
| 115 | } else { | 90 | layer_off(_RAISE); |
| 116 | layer_off(_RAISE); | 91 | update_tri_layer_RGB(_LOWER, _RAISE, _ADJUST); |
| 117 | update_tri_layer_RGB(_LOWER, _RAISE, _ADJUST); | 92 | } |
| 118 | } | 93 | return false; |
| 119 | return false; | 94 | case ADJUST: |
| 120 | break; | 95 | if (record->event.pressed) { |
| 121 | case ADJUST: | 96 | layer_on(_ADJUST); |
| 122 | if (record->event.pressed) { | 97 | } else { |
| 123 | layer_on(_ADJUST); | 98 | layer_off(_ADJUST); |
| 124 | } else { | 99 | } |
| 125 | layer_off(_ADJUST); | 100 | return false; |
| 126 | } | 101 | } |
| 127 | return false; | 102 | return true; |
| 128 | break; | ||
| 129 | } | ||
| 130 | return true; | ||
| 131 | } | 103 | } |
diff --git a/keyboards/manta60/manta60.c b/keyboards/manta60/manta60.c index 59319d32e..1013fce72 100644 --- a/keyboards/manta60/manta60.c +++ b/keyboards/manta60/manta60.c | |||
| @@ -1 +1,17 @@ | |||
| 1 | /* Copyright 2020 kamonanban | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 1 | #include "manta60.h" | 17 | #include "manta60.h" |
diff --git a/keyboards/manta60/manta60.h b/keyboards/manta60/manta60.h index f68594d75..163ed0153 100644 --- a/keyboards/manta60/manta60.h +++ b/keyboards/manta60/manta60.h | |||
| @@ -18,28 +18,23 @@ | |||
| 18 | 18 | ||
| 19 | #include "quantum.h" | 19 | #include "quantum.h" |
| 20 | 20 | ||
| 21 | /* This is a shortcut to help you visually see your layout. | 21 | #define XXX KC_NO |
| 22 | * The first section contains all of the arguments representing the physical | 22 | |
| 23 | * layout of the board and position of the keys. | 23 | #define LAYOUT( \ |
| 24 | * The second converts the arguments into a two-dimensional array which | 24 | L00, L01, L02, L03, L04, L05, L06, R00, R01, R02, R03, R04, R05, R06, \ |
| 25 | * represents the switch matrix. | 25 | L10, L11, L12, L13, L14, L15, L16, R10, R11, R12, R13, R14, R15, R16, \ |
| 26 | */ | 26 | L20, L21, L22, L23, L24, L25, L26, R20, R21, R22, R23, R24, R25, R26, \ |
| 27 | #define LAYOUT( \ | 27 | L30, L31, L32, L33, L34, L35, R30, R31, R32, R33, R34, R35, \ |
| 28 | L00, L01, L02, L03, L04, L05, L06, R00, R01, R02, R03, R04, R05, R06, \ | 28 | L40, L41, L42, L43, L44, L45, L46, R40, R41, R42, R43, R44, R45, R46 \ |
| 29 | L10, L11, L12, L13, L14, L15, L16, R10, R11, R12, R13, R14, R15, R16, \ | 29 | ) { \ |
| 30 | L20, L21, L22, L23, L24, L25, L26, R20, R21, R22, R23, R24, R25, R26, \ | 30 | { L00, L01, L02, L03, L04, L05, L06 }, \ |
| 31 | L30, L31, L32, L33, L34, L35, R30, R31, R32, R33, R34, R35, \ | 31 | { L10, L11, L12, L13, L14, L15, L16 }, \ |
| 32 | L40, L41, L42, L43, L44, L45, L46, R40, R41, R42, R43, R44, R45, R46 \ | 32 | { L20, L21, L22, L23, L24, L25, L26 }, \ |
| 33 | ) \ | 33 | { L30, L31, L32, L33, L34, L35, XXX }, \ |
| 34 | { \ | 34 | { L40, L41, L42, L43, L44, L45, L46 }, \ |
| 35 | { L00, L01, L02, L03, L04, L05, L06 }, \ | 35 | { R06, R05, R04, R03, R02, R01, R00 }, \ |
| 36 | { L10, L11, L12, L13, L14, L15, L16 }, \ | 36 | { R16, R15, R14, R13, R12, R11, R10 }, \ |
| 37 | { L20, L21, L22, L23, L24, L25, L26 }, \ | 37 | { R26, R25, R24, R23, R22, R21, R20 }, \ |
| 38 | { L30, L31, L32, L33, L34, L35, KC_NO}, \ | 38 | { R35, R34, R33, R32, R31, R30, XXX }, \ |
| 39 | { L40, L41, L42, L43, L44, L45, L46 }, \ | 39 | { R46, R45, R44, R43, R42, R41, R40 } \ |
| 40 | { R06, R05, R04, R03, R02, R01, R00 }, \ | 40 | } |
| 41 | { R16, R15, R14, R13, R12, R11, R10 }, \ | ||
| 42 | { R26, R25, R24, R23, R22, R21, R20 }, \ | ||
| 43 | { R35, R34, R33, R32, R31, R30, KC_NO } , \ | ||
| 44 | { R46, R45, R44, R43, R42, R41, R40 } \ | ||
| 45 | } | ||
diff --git a/keyboards/manta60/readme.md b/keyboards/manta60/readme.md index f163be27d..959aa93cd 100644 --- a/keyboards/manta60/readme.md +++ b/keyboards/manta60/readme.md | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | # manta60 | 1 | # manta60 |
| 2 | 2 | ||
| 3 |  | 3 |  |
| 4 | 4 | ||
| 5 | A split keyboard with 27 ortholinear keys and 5-7 thumb/little finger keys | 5 | A split keyboard with 27 ortholinear keys and 5-7 thumb/little finger keys |
| 6 | 6 | ||
| @@ -12,4 +12,8 @@ Make example for this keyboard (after setting up your build environment): | |||
| 12 | 12 | ||
| 13 | make manta60:default | 13 | make manta60:default |
| 14 | 14 | ||
| 15 | Flashing example for this keyboard: | ||
| 16 | |||
| 17 | make manta60:default:flash | ||
| 18 | |||
| 15 | See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). | 19 | See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). |
diff --git a/keyboards/manta60/rules.mk b/keyboards/manta60/rules.mk index 1e898f540..71148e248 100644 --- a/keyboards/manta60/rules.mk +++ b/keyboards/manta60/rules.mk | |||
| @@ -2,37 +2,27 @@ | |||
| 2 | MCU = atmega32u4 | 2 | MCU = atmega32u4 |
| 3 | 3 | ||
| 4 | # Bootloader selection | 4 | # Bootloader selection |
| 5 | # Teensy halfkay | ||
| 6 | # Pro Micro caterina | ||
| 7 | # Atmel DFU atmel-dfu | ||
| 8 | # LUFA DFU lufa-dfu | ||
| 9 | # QMK DFU qmk-dfu | ||
| 10 | # ATmega32A bootloadHID | ||
| 11 | # ATmega328P USBasp | ||
| 12 | BOOTLOADER = caterina | 5 | BOOTLOADER = caterina |
| 13 | 6 | ||
| 14 | # Build Options | 7 | # Build Options |
| 15 | # change yes to no to disable | 8 | # change yes to no to disable |
| 16 | # | 9 | # |
| 17 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | 10 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration |
| 18 | MOUSEKEY_ENABLE = yes # Mouse keys | 11 | MOUSEKEY_ENABLE = yes # Mouse keys |
| 19 | EXTRAKEY_ENABLE = no # Audio control and System control | 12 | EXTRAKEY_ENABLE = no # Audio control and System control |
| 20 | CONSOLE_ENABLE = no # Console for debug | 13 | CONSOLE_ENABLE = no # Console for debug |
| 21 | COMMAND_ENABLE = yes # Commands for debug and configuration | 14 | COMMAND_ENABLE = yes # Commands for debug and configuration |
| 22 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | 15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE |
| 23 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 16 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
| 24 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 17 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
| 25 | NKRO_ENABLE = no # USB Nkey Rollover | 18 | NKRO_ENABLE = no # USB Nkey Rollover |
| 26 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality |
| 27 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | 20 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow |
| 28 | MIDI_ENABLE = no # MIDI support | 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth |
| 29 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | 22 | AUDIO_ENABLE = no # Audio output |
| 30 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 31 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | ||
| 32 | |||
| 33 | SPLIT_KEYBOARD = yes | 23 | SPLIT_KEYBOARD = yes |
| 34 | 24 | ||
| 35 | IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone) | 25 | IOS_DEVICE_ENABLE = no # connect to IOS device (iPad, iPhone) |
| 36 | 26 | ||
| 37 | ifeq ($(strip $(IOS_DEVICE_ENABLE)), yes) | 27 | ifeq ($(strip $(IOS_DEVICE_ENABLE)), yes) |
| 38 | OPT_DEFS += -DIOS_DEVICE_ENABLE | 28 | OPT_DEFS += -DIOS_DEVICE_ENABLE |
