diff options
25 files changed, 760 insertions, 129 deletions
diff --git a/keyboards/lets_split/config.h b/keyboards/lets_split/config.h index f4d900acc..1b7bbcbbb 100644 --- a/keyboards/lets_split/config.h +++ b/keyboards/lets_split/config.h | |||
| @@ -28,29 +28,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 28 | #define PRODUCT Lets Split | 28 | #define PRODUCT Lets Split |
| 29 | #define DESCRIPTION A split keyboard for the cheap makers | 29 | #define DESCRIPTION A split keyboard for the cheap makers |
| 30 | 30 | ||
| 31 | /* key matrix size */ | ||
| 32 | // Rows are doubled-up | ||
| 33 | #define MATRIX_ROWS 8 | ||
| 34 | #define MATRIX_COLS 6 | ||
| 35 | |||
| 36 | // wiring of each half | ||
| 37 | #define MATRIX_ROW_PINS { B5, B4, E6, D7 } | ||
| 38 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3 } | ||
| 39 | |||
| 40 | #define CATERINA_BOOTLOADER | ||
| 41 | |||
| 42 | // #define USE_I2C | ||
| 43 | |||
| 44 | // Use serial if not using I2C | ||
| 45 | #ifndef USE_I2C | ||
| 46 | # define USE_SERIAL | ||
| 47 | #endif | ||
| 48 | |||
| 49 | // #define EE_HANDS | ||
| 50 | |||
| 51 | #define I2C_MASTER_LEFT | ||
| 52 | // #define I2C_MASTER_RIGHT | ||
| 53 | |||
| 54 | /* COL2ROW or ROW2COL */ | 31 | /* COL2ROW or ROW2COL */ |
| 55 | #define DIODE_DIRECTION COL2ROW | 32 | #define DIODE_DIRECTION COL2ROW |
| 56 | 33 | ||
| @@ -72,25 +49,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 72 | #define IS_COMMAND() ( \ | 49 | #define IS_COMMAND() ( \ |
| 73 | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | 50 | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ |
| 74 | ) | 51 | ) |
| 75 | |||
| 76 | /* ws2812 RGB LED */ | ||
| 77 | #define RGB_DI_PIN D4 | ||
| 78 | #define RGBLIGHT_TIMER | ||
| 79 | #define RGBLED_NUM 8 // Number of LEDs | ||
| 80 | #define RGBLIGHT_HUE_STEP 10 | ||
| 81 | #define RGBLIGHT_SAT_STEP 17 | ||
| 82 | #define RGBLIGHT_VAL_STEP 17 | ||
| 83 | |||
| 84 | /* | ||
| 85 | * Feature disable options | ||
| 86 | * These options are also useful to firmware size reduction. | ||
| 87 | */ | ||
| 88 | |||
| 89 | /* disable debug print */ | 52 | /* disable debug print */ |
| 90 | // #define NO_DEBUG | 53 | //#define NO_DEBUG |
| 91 | 54 | ||
| 92 | /* disable print */ | 55 | /* disable print */ |
| 93 | // #define NO_PRINT | 56 | //#define NO_PRINT |
| 94 | 57 | ||
| 95 | /* disable action features */ | 58 | /* disable action features */ |
| 96 | //#define NO_ACTION_LAYER | 59 | //#define NO_ACTION_LAYER |
| @@ -99,4 +62,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 99 | //#define NO_ACTION_MACRO | 62 | //#define NO_ACTION_MACRO |
| 100 | //#define NO_ACTION_FUNCTION | 63 | //#define NO_ACTION_FUNCTION |
| 101 | 64 | ||
| 65 | #ifdef SUBPROJECT_rev1 | ||
| 66 | #include "rev1/config.h" | ||
| 67 | #endif | ||
| 68 | #ifdef SUBPROJECT_rev2 | ||
| 69 | #include "rev2/config.h" | ||
| 102 | #endif | 70 | #endif |
| 71 | #endif \ No newline at end of file | ||
diff --git a/keyboards/lets_split/keymaps/default/keymap.c b/keyboards/lets_split/keymaps/default/keymap.c index 0d2d94b67..6f1f71f5f 100644 --- a/keyboards/lets_split/keymaps/default/keymap.c +++ b/keyboards/lets_split/keymaps/default/keymap.c | |||
| @@ -42,10 +42,10 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 42 | * `-----------------------------------------------------------------------------------' | 42 | * `-----------------------------------------------------------------------------------' |
| 43 | */ | 43 | */ |
| 44 | [_QWERTY] = KEYMAP( \ | 44 | [_QWERTY] = KEYMAP( \ |
| 45 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, \ | 45 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, \ |
| 46 | KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, \ | 46 | KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, \ |
| 47 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT , \ | 47 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT , \ |
| 48 | ADJUST, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \ | 48 | KC_LCTL, ADJUST, KC_LALT, KC_LGUI, LOWER, KC_SPC, MT(MOD_LSFT, KC_SPC), RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \ |
| 49 | ), | 49 | ), |
| 50 | 50 | ||
| 51 | /* Colemak | 51 | /* Colemak |
| @@ -83,41 +83,17 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 83 | KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_ENT , \ | 83 | KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_ENT , \ |
| 84 | ADJUST, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \ | 84 | ADJUST, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \ |
| 85 | ), | 85 | ), |
| 86 | 86 | [3] = KEYMAP( \ | |
| 87 | /* Lower | 87 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______, \ |
| 88 | * ,-----------------------------------------------------------------------------------. | ||
| 89 | * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bksp | | ||
| 90 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 91 | * | Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | | \ | | | | ||
| 92 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 93 | * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO ~ |ISO | | | |Enter | | ||
| 94 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 95 | * | | | | | | | | Next | Vol- | Vol+ | Play | | ||
| 96 | * `-----------------------------------------------------------------------------------' | ||
| 97 | */ | ||
| 98 | [_LOWER] = KEYMAP( \ | ||
| 99 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, \ | ||
| 100 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, \ | 88 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, \ |
| 101 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,S(KC_NUHS),S(KC_NUBS),_______, _______, _______, \ | 89 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,S(KC_NUHS),S(KC_NUBS),_______, _______, _______, \ |
| 102 | _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY \ | 90 | _______, _______, _______, _______, _______, KC_BSPC, MT(MOD_LSFT, KC_BSPC), _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY \ |
| 103 | ), | 91 | ), |
| 104 | 92 | [4] = KEYMAP( \ | |
| 105 | /* Raise | 93 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______, \ |
| 106 | * ,-----------------------------------------------------------------------------------. | ||
| 107 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | | ||
| 108 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 109 | * | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ | | ||
| 110 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 111 | * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO # |ISO / | | |Enter | | ||
| 112 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 113 | * | | | | | | | | Next | Vol- | Vol+ | Play | | ||
| 114 | * `-----------------------------------------------------------------------------------' | ||
| 115 | */ | ||
| 116 | [_RAISE] = KEYMAP( \ | ||
| 117 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \ | ||
| 118 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, \ | 94 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, \ |
| 119 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, _______, _______, _______, \ | 95 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, _______, _______, _______, \ |
| 120 | _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY \ | 96 | _______, _______, _______, _______, _______, KC_ENT, MT(MOD_LSFT, KC_ENT), _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY \ |
| 121 | ), | 97 | ), |
| 122 | 98 | ||
| 123 | /* Adjust (Lower + Raise) | 99 | /* Adjust (Lower + Raise) |
| @@ -134,11 +110,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 134 | [_ADJUST] = KEYMAP( \ | 110 | [_ADJUST] = KEYMAP( \ |
| 135 | _______, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL, \ | 111 | _______, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL, \ |
| 136 | _______, _______, _______, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, _______, _______, \ | 112 | _______, _______, _______, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, _______, _______, \ |
| 137 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ | 113 | _______, RGB_TOG,RGB_MOD,RGB_HUI,RGB_HUD,RGB_SAI,RGB_SAD,RGB_VAI,RGB_VAD, _______, _______, _______, \ |
| 138 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \ | 114 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \ |
| 139 | ) | 115 | ) |
| 140 | |||
| 141 | |||
| 142 | }; | 116 | }; |
| 143 | 117 | ||
| 144 | #ifdef AUDIO_ENABLE | 118 | #ifdef AUDIO_ENABLE |
diff --git a/keyboards/lets_split/lets_split.c b/keyboards/lets_split/lets_split.c index c505d3a6e..117b727a8 100644 --- a/keyboards/lets_split/lets_split.c +++ b/keyboards/lets_split/lets_split.c | |||
| @@ -1,32 +1 @@ | |||
| 1 | #include "lets_split.h" | #include "lets_split.h" \ No newline at end of file | |
| 2 | |||
| 3 | #ifdef AUDIO_ENABLE | ||
| 4 | float tone_startup[][2] = SONG(STARTUP_SOUND); | ||
| 5 | float tone_goodbye[][2] = SONG(GOODBYE_SOUND); | ||
| 6 | #endif | ||
| 7 | |||
| 8 | void matrix_init_kb(void) { | ||
| 9 | |||
| 10 | #ifdef AUDIO_ENABLE | ||
| 11 | _delay_ms(20); // gets rid of tick | ||
| 12 | PLAY_NOTE_ARRAY(tone_startup, false, 0); | ||
| 13 | #endif | ||
| 14 | |||
| 15 | // // green led on | ||
| 16 | // DDRD |= (1<<5); | ||
| 17 | // PORTD &= ~(1<<5); | ||
| 18 | |||
| 19 | // // orange led on | ||
| 20 | // DDRB |= (1<<0); | ||
| 21 | // PORTB &= ~(1<<0); | ||
| 22 | |||
| 23 | matrix_init_user(); | ||
| 24 | }; | ||
| 25 | |||
| 26 | void shutdown_user(void) { | ||
| 27 | #ifdef AUDIO_ENABLE | ||
| 28 | PLAY_NOTE_ARRAY(tone_goodbye, false, 0); | ||
| 29 | _delay_ms(150); | ||
| 30 | stop_all_notes(); | ||
| 31 | #endif | ||
| 32 | } | ||
diff --git a/keyboards/lets_split/lets_split.h b/keyboards/lets_split/lets_split.h index fe7ae0767..2cdfb061f 100644 --- a/keyboards/lets_split/lets_split.h +++ b/keyboards/lets_split/lets_split.h | |||
| @@ -1,25 +1,13 @@ | |||
| 1 | #ifndef LETS_SPLIT_H | 1 | #ifndef LETS_SPLIT_H |
| 2 | #define LETS_SPLIT_H | 2 | #define LETS_SPLIT_H |
| 3 | 3 | ||
| 4 | #include "quantum.h" | 4 | #ifdef SUBPROJECT_rev1 |
| 5 | 5 | #include "rev1.h" | |
| 6 | void promicro_bootloader_jmp(bool program); | 6 | #endif |
| 7 | #ifdef SUBPROJECT_rev2 | ||
| 8 | #include "rev2.h" | ||
| 9 | #endif | ||
| 7 | 10 | ||
| 8 | #define KEYMAP( \ | 11 | #include "quantum.h" |
| 9 | k00, k01, k02, k03, k04, k05, k40, k41, k42, k43, k44, k45, \ | ||
| 10 | k10, k11, k12, k13, k14, k15, k50, k51, k52, k53, k54, k55, \ | ||
| 11 | k20, k21, k22, k23, k24, k25, k60, k61, k62, k63, k64, k65, \ | ||
| 12 | k30, k31, k32, k33, k34, k35, k70, k71, k72, k73, k74, k75 \ | ||
| 13 | ) \ | ||
| 14 | { \ | ||
| 15 | { k00, k01, k02, k03, k04, k05 }, \ | ||
| 16 | { k10, k11, k12, k13, k14, k15 }, \ | ||
| 17 | { k20, k21, k22, k23, k24, k25 }, \ | ||
| 18 | { k30, k31, k32, k33, k34, k35 }, \ | ||
| 19 | { k40, k41, k42, k43, k44, k45 }, \ | ||
| 20 | { k50, k51, k52, k53, k54, k55 }, \ | ||
| 21 | { k60, k61, k62, k63, k64, k65 }, \ | ||
| 22 | { k70, k71, k72, k73, k74, k75 } \ | ||
| 23 | } | ||
| 24 | 12 | ||
| 25 | #endif \ No newline at end of file | 13 | #endif \ No newline at end of file |
diff --git a/keyboards/lets_split/rev1/Makefile b/keyboards/lets_split/rev1/Makefile new file mode 100644 index 000000000..4e2a6f00f --- /dev/null +++ b/keyboards/lets_split/rev1/Makefile | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | ifndef MAKEFILE_INCLUDED | ||
| 2 | include ../../Makefile | ||
| 3 | endif \ No newline at end of file | ||
diff --git a/keyboards/lets_split/rev1/config.h b/keyboards/lets_split/rev1/config.h new file mode 100644 index 000000000..825e5ec24 --- /dev/null +++ b/keyboards/lets_split/rev1/config.h | |||
| @@ -0,0 +1,94 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2012 Jun Wako <wakojun@gmail.com> | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #ifndef CONFIG_H | ||
| 19 | #define CONFIG_H | ||
| 20 | |||
| 21 | #include "config_common.h" | ||
| 22 | |||
| 23 | /* USB Device descriptor parameter */ | ||
| 24 | #define VENDOR_ID 0xFEED | ||
| 25 | #define PRODUCT_ID 0x3060 | ||
| 26 | #define DEVICE_VER 0x0001 | ||
| 27 | #define MANUFACTURER Wootpatoot | ||
| 28 | #define PRODUCT Lets Split | ||
| 29 | #define PRODUCT Lets Split v1 | ||
| 30 | #define DESCRIPTION A split keyboard for the cheap makers | ||
| 31 | |||
| 32 | /* key matrix size */ | ||
| 33 | // Rows are doubled-up | ||
| 34 | #define MATRIX_ROWS 8 | ||
| 35 | #define MATRIX_COLS 6 | ||
| 36 | |||
| 37 | // wiring of each half | ||
| 38 | #define MATRIX_ROW_PINS { B5, B4, E6, D7 } | ||
| 39 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3 } | ||
| 40 | |||
| 41 | #define CATERINA_BOOTLOADER | ||
| 42 | |||
| 43 | // #define USE_I2C | ||
| 44 | // Use serial if not using I2C | ||
| 45 | #ifndef USE_I2C | ||
| 46 | # define USE_SERIAL | ||
| 47 | #endif | ||
| 48 | |||
| 49 | // #define EE_HANDS | ||
| 50 | |||
| 51 | #define I2C_MASTER_LEFT | ||
| 52 | // #define I2C_MASTER_RIGHT | ||
| 53 | |||
| 54 | /* COL2ROW or ROW2COL */ | ||
| 55 | #define DIODE_DIRECTION COL2ROW | ||
| 56 | |||
| 57 | /* define if matrix has ghost */ | ||
| 58 | //#define MATRIX_HAS_GHOST | ||
| 59 | |||
| 60 | /* number of backlight levels */ | ||
| 61 | // #define BACKLIGHT_LEVELS 3 | ||
| 62 | |||
| 63 | /* Set 0 if debouncing isn't needed */ | ||
| 64 | #define DEBOUNCING_DELAY 5 | ||
| 65 | |||
| 66 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 67 | #define LOCKING_SUPPORT_ENABLE | ||
| 68 | /* Locking resynchronize hack */ | ||
| 69 | #define LOCKING_RESYNC_ENABLE | ||
| 70 | |||
| 71 | /* key combination for command */ | ||
| 72 | #define IS_COMMAND() ( \ | ||
| 73 | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | ||
| 74 | ) | ||
| 75 | |||
| 76 | /* | ||
| 77 | * Feature disable options | ||
| 78 | * These options are also useful to firmware size reduction. | ||
| 79 | */ | ||
| 80 | |||
| 81 | /* disable debug print */ | ||
| 82 | // #define NO_DEBUG | ||
| 83 | |||
| 84 | /* disable print */ | ||
| 85 | // #define NO_PRINT | ||
| 86 | |||
| 87 | /* disable action features */ | ||
| 88 | //#define NO_ACTION_LAYER | ||
| 89 | //#define NO_ACTION_TAPPING | ||
| 90 | //#define NO_ACTION_ONESHOT | ||
| 91 | //#define NO_ACTION_MACRO | ||
| 92 | //#define NO_ACTION_FUNCTION | ||
| 93 | |||
| 94 | #endif | ||
diff --git a/keyboards/lets_split/rev1/rev1.c b/keyboards/lets_split/rev1/rev1.c new file mode 100644 index 000000000..c505d3a6e --- /dev/null +++ b/keyboards/lets_split/rev1/rev1.c | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | #include "lets_split.h" | ||
| 2 | |||
| 3 | #ifdef AUDIO_ENABLE | ||
| 4 | float tone_startup[][2] = SONG(STARTUP_SOUND); | ||
| 5 | float tone_goodbye[][2] = SONG(GOODBYE_SOUND); | ||
| 6 | #endif | ||
| 7 | |||
| 8 | void matrix_init_kb(void) { | ||
| 9 | |||
| 10 | #ifdef AUDIO_ENABLE | ||
| 11 | _delay_ms(20); // gets rid of tick | ||
| 12 | PLAY_NOTE_ARRAY(tone_startup, false, 0); | ||
| 13 | #endif | ||
| 14 | |||
| 15 | // // green led on | ||
| 16 | // DDRD |= (1<<5); | ||
| 17 | // PORTD &= ~(1<<5); | ||
| 18 | |||
| 19 | // // orange led on | ||
| 20 | // DDRB |= (1<<0); | ||
| 21 | // PORTB &= ~(1<<0); | ||
| 22 | |||
| 23 | matrix_init_user(); | ||
| 24 | }; | ||
| 25 | |||
| 26 | void shutdown_user(void) { | ||
| 27 | #ifdef AUDIO_ENABLE | ||
| 28 | PLAY_NOTE_ARRAY(tone_goodbye, false, 0); | ||
| 29 | _delay_ms(150); | ||
| 30 | stop_all_notes(); | ||
| 31 | #endif | ||
| 32 | } | ||
diff --git a/keyboards/lets_split/rev1/rev1.h b/keyboards/lets_split/rev1/rev1.h new file mode 100644 index 000000000..4667c9fb0 --- /dev/null +++ b/keyboards/lets_split/rev1/rev1.h | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | #ifndef REV1_H | ||
| 2 | #define REV1_H | ||
| 3 | |||
| 4 | #include "../lets_split.h" | ||
| 5 | |||
| 6 | //void promicro_bootloader_jmp(bool program); | ||
| 7 | #include "quantum.h" | ||
| 8 | |||
| 9 | //void promicro_bootloader_jmp(bool program); | ||
| 10 | |||
| 11 | #define KEYMAP( \ | ||
| 12 | k00, k01, k02, k03, k04, k05, k40, k41, k42, k43, k44, k45, \ | ||
| 13 | k10, k11, k12, k13, k14, k15, k50, k51, k52, k53, k54, k55, \ | ||
| 14 | k20, k21, k22, k23, k24, k25, k60, k61, k62, k63, k64, k65, \ | ||
| 15 | k30, k31, k32, k33, k34, k35, k70, k71, k72, k73, k74, k75 \ | ||
| 16 | ) \ | ||
| 17 | { \ | ||
| 18 | { k00, k01, k02, k03, k04, k05 }, \ | ||
| 19 | { k10, k11, k12, k13, k14, k15 }, \ | ||
| 20 | { k20, k21, k22, k23, k24, k25 }, \ | ||
| 21 | { k30, k31, k32, k33, k34, k35 }, \ | ||
| 22 | { k40, k41, k42, k43, k44, k45 }, \ | ||
| 23 | { k50, k51, k52, k53, k54, k55 }, \ | ||
| 24 | { k60, k61, k62, k63, k64, k65 }, \ | ||
| 25 | { k70, k71, k72, k73, k74, k75 } \ | ||
| 26 | } | ||
| 27 | |||
| 28 | #endif \ No newline at end of file | ||
diff --git a/keyboards/lets_split/rev1/rules.mk b/keyboards/lets_split/rev1/rules.mk new file mode 100644 index 000000000..a0825b4ef --- /dev/null +++ b/keyboards/lets_split/rev1/rules.mk | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | BACKLIGHT_ENABLE = no | ||
| 2 | |||
| 3 | ifndef QUANTUM_DIR | ||
| 4 | include ../../../Makefile | ||
| 5 | endif \ No newline at end of file | ||
diff --git a/keyboards/lets_split/rev2/Makefile b/keyboards/lets_split/rev2/Makefile new file mode 100644 index 000000000..4e2a6f00f --- /dev/null +++ b/keyboards/lets_split/rev2/Makefile | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | ifndef MAKEFILE_INCLUDED | ||
| 2 | include ../../Makefile | ||
| 3 | endif \ No newline at end of file | ||
diff --git a/keyboards/lets_split/rev2/config.h b/keyboards/lets_split/rev2/config.h new file mode 100644 index 000000000..e9689d773 --- /dev/null +++ b/keyboards/lets_split/rev2/config.h | |||
| @@ -0,0 +1,102 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2012 Jun Wako <wakojun@gmail.com> | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #ifndef CONFIG_H | ||
| 19 | #define CONFIG_H | ||
| 20 | |||
| 21 | #include "config_common.h" | ||
| 22 | |||
| 23 | /* USB Device descriptor parameter */ | ||
| 24 | #define VENDOR_ID 0xFEED | ||
| 25 | #define PRODUCT_ID 0x3060 | ||
| 26 | #define DEVICE_VER 0x0001 | ||
| 27 | #define MANUFACTURER Wootpatoot | ||
| 28 | #define PRODUCT Lets Split v2 | ||
| 29 | #define DESCRIPTION A split keyboard for the cheap makers | ||
| 30 | |||
| 31 | /* key matrix size */ | ||
| 32 | // Rows are doubled-up | ||
| 33 | #define MATRIX_ROWS 8 | ||
| 34 | #define MATRIX_COLS 6 | ||
| 35 | |||
| 36 | // wiring of each half | ||
| 37 | #define MATRIX_ROW_PINS { D7, E6, B4, B5 } | ||
| 38 | #define MATRIX_COL_PINS { F6, F7, B1, B3, B2, B6 } | ||
| 39 | |||
| 40 | #define CATERINA_BOOTLOADER | ||
| 41 | |||
| 42 | // #define USE_I2C | ||
| 43 | |||
| 44 | // Use serial if not using I2C | ||
| 45 | #ifndef USE_I2C | ||
| 46 | # define USE_SERIAL | ||
| 47 | #endif | ||
| 48 | |||
| 49 | // #define EE_HANDS | ||
| 50 | |||
| 51 | #define I2C_MASTER_LEFT | ||
| 52 | // #define I2C_MASTER_RIGHT | ||
| 53 | |||
| 54 | /* COL2ROW or ROW2COL */ | ||
| 55 | #define DIODE_DIRECTION COL2ROW | ||
| 56 | |||
| 57 | /* define if matrix has ghost */ | ||
| 58 | //#define MATRIX_HAS_GHOST | ||
| 59 | |||
| 60 | /* number of backlight levels */ | ||
| 61 | // #define BACKLIGHT_LEVELS 3 | ||
| 62 | |||
| 63 | /* Set 0 if debouncing isn't needed */ | ||
| 64 | #define DEBOUNCING_DELAY 5 | ||
| 65 | |||
| 66 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 67 | #define LOCKING_SUPPORT_ENABLE | ||
| 68 | /* Locking resynchronize hack */ | ||
| 69 | #define LOCKING_RESYNC_ENABLE | ||
| 70 | |||
| 71 | /* key combination for command */ | ||
| 72 | #define IS_COMMAND() ( \ | ||
| 73 | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | ||
| 74 | ) | ||
| 75 | |||
| 76 | /* ws2812 RGB LED */ | ||
| 77 | #define RGB_DI_PIN D3 | ||
| 78 | #define RGBLIGHT_TIMER | ||
| 79 | #define RGBLED_NUM 12 // Number of LEDs | ||
| 80 | #define ws2812_PORTREG PORTD | ||
| 81 | #define ws2812_DDRREG DDRD | ||
| 82 | |||
| 83 | /* | ||
| 84 | * Feature disable options | ||
| 85 | * These options are also useful to firmware size reduction. | ||
| 86 | */ | ||
| 87 | |||
| 88 | /* disable debug print */ | ||
| 89 | // #define NO_DEBUG | ||
| 90 | |||
| 91 | /* disable print */ | ||
| 92 | // #define NO_PRINT | ||
| 93 | |||
| 94 | /* disable action features */ | ||
| 95 | //#define NO_ACTION_LAYER | ||
| 96 | //#define NO_ACTION_TAPPING | ||
| 97 | //#define NO_ACTION_ONESHOT | ||
| 98 | //#define NO_ACTION_MACRO | ||
| 99 | //#define NO_ACTION_FUNCTION | ||
| 100 | |||
| 101 | |||
| 102 | #endif \ No newline at end of file | ||
diff --git a/keyboards/lets_split/rev2/rev2.c b/keyboards/lets_split/rev2/rev2.c new file mode 100644 index 000000000..c505d3a6e --- /dev/null +++ b/keyboards/lets_split/rev2/rev2.c | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | #include "lets_split.h" | ||
| 2 | |||
| 3 | #ifdef AUDIO_ENABLE | ||
| 4 | float tone_startup[][2] = SONG(STARTUP_SOUND); | ||
| 5 | float tone_goodbye[][2] = SONG(GOODBYE_SOUND); | ||
| 6 | #endif | ||
| 7 | |||
| 8 | void matrix_init_kb(void) { | ||
| 9 | |||
| 10 | #ifdef AUDIO_ENABLE | ||
| 11 | _delay_ms(20); // gets rid of tick | ||
| 12 | PLAY_NOTE_ARRAY(tone_startup, false, 0); | ||
| 13 | #endif | ||
| 14 | |||
| 15 | // // green led on | ||
| 16 | // DDRD |= (1<<5); | ||
| 17 | // PORTD &= ~(1<<5); | ||
| 18 | |||
| 19 | // // orange led on | ||
| 20 | // DDRB |= (1<<0); | ||
| 21 | // PORTB &= ~(1<<0); | ||
| 22 | |||
| 23 | matrix_init_user(); | ||
| 24 | }; | ||
| 25 | |||
| 26 | void shutdown_user(void) { | ||
| 27 | #ifdef AUDIO_ENABLE | ||
| 28 | PLAY_NOTE_ARRAY(tone_goodbye, false, 0); | ||
| 29 | _delay_ms(150); | ||
| 30 | stop_all_notes(); | ||
| 31 | #endif | ||
| 32 | } | ||
diff --git a/keyboards/lets_split/rev2/rev2.h b/keyboards/lets_split/rev2/rev2.h new file mode 100644 index 000000000..990976de2 --- /dev/null +++ b/keyboards/lets_split/rev2/rev2.h | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | #ifndef REV2_H | ||
| 2 | #define REV2_H | ||
| 3 | |||
| 4 | #include "../lets_split.h" | ||
| 5 | |||
| 6 | //void promicro_bootloader_jmp(bool program); | ||
| 7 | #include "quantum.h" | ||
| 8 | |||
| 9 | //void promicro_bootloader_jmp(bool program); | ||
| 10 | |||
| 11 | #define KEYMAP( \ | ||
| 12 | k00, k01, k02, k03, k04, k05, k45, k44, k43, k42, k41, k40, \ | ||
| 13 | k10, k11, k12, k13, k14, k15, k55, k54, k53, k52, k51, k50, \ | ||
| 14 | k20, k21, k22, k23, k24, k25, k65, k64, k63, k62, k61, k60, \ | ||
| 15 | k30, k31, k32, k33, k34, k35, k75, k74, k73, k72, k71, k70 \ | ||
| 16 | ) \ | ||
| 17 | { \ | ||
| 18 | { k00, k01, k02, k03, k04, k05 }, \ | ||
| 19 | { k10, k11, k12, k13, k14, k15 }, \ | ||
| 20 | { k20, k21, k22, k23, k24, k25 }, \ | ||
| 21 | { k30, k31, k32, k33, k34, k35 }, \ | ||
| 22 | { k40, k41, k42, k43, k44, k45 }, \ | ||
| 23 | { k50, k51, k52, k53, k54, k55 }, \ | ||
| 24 | { k60, k61, k62, k63, k64, k65 }, \ | ||
| 25 | { k70, k71, k72, k73, k74, k75 } \ | ||
| 26 | } | ||
| 27 | |||
| 28 | #endif \ No newline at end of file | ||
diff --git a/keyboards/lets_split/rev2/rules.mk b/keyboards/lets_split/rev2/rules.mk new file mode 100644 index 000000000..80a942d06 --- /dev/null +++ b/keyboards/lets_split/rev2/rules.mk | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | BACKLIGHT_ENABLE = no | ||
| 2 | |||
| 3 | ifndef QUANTUM_DIR | ||
| 4 | include ../../../Makefile | ||
| 5 | endif | ||
diff --git a/keyboards/lets_split/rules.mk b/keyboards/lets_split/rules.mk index 6fde8a444..1aee5313c 100644 --- a/keyboards/lets_split/rules.mk +++ b/keyboards/lets_split/rules.mk | |||
| @@ -63,11 +63,12 @@ COMMAND_ENABLE ?= yes # Commands for debug and configuration | |||
| 63 | NKRO_ENABLE ?= no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 63 | NKRO_ENABLE ?= no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
| 64 | BACKLIGHT_ENABLE ?= no # Enable keyboard backlight functionality | 64 | BACKLIGHT_ENABLE ?= no # Enable keyboard backlight functionality |
| 65 | MIDI_ENABLE ?= no # MIDI controls | 65 | MIDI_ENABLE ?= no # MIDI controls |
| 66 | AUDIO_ENABLE ?= yes # Audio output on port C6 | 66 | AUDIO_ENABLE ?= no # Audio output on port C6 |
| 67 | UNICODE_ENABLE ?= no # Unicode | 67 | UNICODE_ENABLE ?= no # Unicode |
| 68 | BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID | 68 | BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID |
| 69 | RGBLIGHT_ENABLE ?= no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. | 69 | RGBLIGHT_ENABLE ?= no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. |
| 70 | 70 | SUBPROJECT_rev1 ?= yes | |
| 71 | USE_I2C ?= yes | ||
| 71 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | 72 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE |
| 72 | SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend | 73 | SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend |
| 73 | 74 | ||
diff --git a/keyboards/maxipad/Makefile b/keyboards/maxipad/Makefile new file mode 100644 index 000000000..57b2ef62e --- /dev/null +++ b/keyboards/maxipad/Makefile | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | ifndef MAKEFILE_INCLUDED | ||
| 2 | include ../../Makefile | ||
| 3 | endif | ||
diff --git a/keyboards/maxipad/config.h b/keyboards/maxipad/config.h new file mode 100644 index 000000000..fbe64a5b0 --- /dev/null +++ b/keyboards/maxipad/config.h | |||
| @@ -0,0 +1,163 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2012 Jun Wako <wakojun@gmail.com> | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #ifndef CONFIG_H | ||
| 19 | #define CONFIG_H | ||
| 20 | |||
| 21 | #include "config_common.h" | ||
| 22 | |||
| 23 | /* USB Device descriptor parameter */ | ||
| 24 | #define VENDOR_ID 0xFEED | ||
| 25 | #define PRODUCT_ID 0x6060 | ||
| 26 | #define DEVICE_VER 0x0001 | ||
| 27 | #define MANUFACTURER Wootpatoot | ||
| 28 | #define PRODUCT maxipad | ||
| 29 | #define DESCRIPTION A custom keyboard | ||
| 30 | |||
| 31 | |||
| 32 | /* key matrix size */ | ||
| 33 | #define MATRIX_ROWS 5 | ||
| 34 | #define MATRIX_COLS 6 | ||
| 35 | |||
| 36 | /* | ||
| 37 | * Keyboard Matrix Assignments | ||
| 38 | * | ||
| 39 | * Change this to how you wired your keyboard | ||
| 40 | * COLS: AVR pins used for columns, left to right | ||
| 41 | * ROWS: AVR pins used for rows, top to bottom | ||
| 42 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 43 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 44 | * | ||
| 45 | */ | ||
| 46 | #define MATRIX_ROW_PINS { B6, F7, B2, B3, B1 } | ||
| 47 | #define MATRIX_COL_PINS { F6, C6, D7, F5, B4, B5 } | ||
| 48 | #define UNUSED_PINS | ||
| 49 | |||
| 50 | /* COL2ROW or ROW2COL */ | ||
| 51 | #define DIODE_DIRECTION COL2ROW | ||
| 52 | |||
| 53 | // #define BACKLIGHT_PIN B7 | ||
| 54 | // #define BACKLIGHT_BREATHING | ||
| 55 | // #define BACKLIGHT_LEVELS 3 | ||
| 56 | |||
| 57 | |||
| 58 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 59 | #define DEBOUNCING_DELAY 5 | ||
| 60 | |||
| 61 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 62 | //#define MATRIX_HAS_GHOST | ||
| 63 | |||
| 64 | /* number of backlight levels */ | ||
| 65 | |||
| 66 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 67 | #define LOCKING_SUPPORT_ENABLE | ||
| 68 | /* Locking resynchronize hack */ | ||
| 69 | #define LOCKING_RESYNC_ENABLE | ||
| 70 | |||
| 71 | /* | ||
| 72 | * Force NKRO | ||
| 73 | * | ||
| 74 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 75 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 76 | * makefile for this to work.) | ||
| 77 | * | ||
| 78 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 79 | * until the next keyboard reset. | ||
| 80 | * | ||
| 81 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 82 | * fully operational during normal computer usage. | ||
| 83 | * | ||
| 84 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 85 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 86 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 87 | * power-up. | ||
| 88 | * | ||
| 89 | */ | ||
| 90 | //#define FORCE_NKRO | ||
| 91 | |||
| 92 | /* | ||
| 93 | * Magic Key Options | ||
| 94 | * | ||
| 95 | * Magic keys are hotkey commands that allow control over firmware functions of | ||
| 96 | * the keyboard. They are best used in combination with the HID Listen program, | ||
| 97 | * found here: https://www.pjrc.com/teensy/hid_listen.html | ||
| 98 | * | ||
| 99 | * The options below allow the magic key functionality to be changed. This is | ||
| 100 | * useful if your keyboard/keypad is missing keys and you want magic key support. | ||
| 101 | * | ||
| 102 | */ | ||
| 103 | |||
| 104 | /* key combination for magic key command */ | ||
| 105 | #define IS_COMMAND() ( \ | ||
| 106 | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | ||
| 107 | ) | ||
| 108 | |||
| 109 | /* control how magic key switches layers */ | ||
| 110 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true | ||
| 111 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true | ||
| 112 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false | ||
| 113 | |||
| 114 | /* override magic key keymap */ | ||
| 115 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS | ||
| 116 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS | ||
| 117 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM | ||
| 118 | //#define MAGIC_KEY_HELP1 H | ||
| 119 | //#define MAGIC_KEY_HELP2 SLASH | ||
| 120 | //#define MAGIC_KEY_DEBUG D | ||
| 121 | //#define MAGIC_KEY_DEBUG_MATRIX X | ||
| 122 | //#define MAGIC_KEY_DEBUG_KBD K | ||
| 123 | //#define MAGIC_KEY_DEBUG_MOUSE M | ||
| 124 | //#define MAGIC_KEY_VERSION V | ||
| 125 | //#define MAGIC_KEY_STATUS S | ||
| 126 | //#define MAGIC_KEY_CONSOLE C | ||
| 127 | //#define MAGIC_KEY_LAYER0_ALT1 ESC | ||
| 128 | //#define MAGIC_KEY_LAYER0_ALT2 GRAVE | ||
| 129 | //#define MAGIC_KEY_LAYER0 0 | ||
| 130 | //#define MAGIC_KEY_LAYER1 1 | ||
| 131 | //#define MAGIC_KEY_LAYER2 2 | ||
| 132 | //#define MAGIC_KEY_LAYER3 3 | ||
| 133 | //#define MAGIC_KEY_LAYER4 4 | ||
| 134 | //#define MAGIC_KEY_LAYER5 5 | ||
| 135 | //#define MAGIC_KEY_LAYER6 6 | ||
| 136 | //#define MAGIC_KEY_LAYER7 7 | ||
| 137 | //#define MAGIC_KEY_LAYER8 8 | ||
| 138 | //#define MAGIC_KEY_LAYER9 9 | ||
| 139 | //#define MAGIC_KEY_BOOTLOADER PAUSE | ||
| 140 | //#define MAGIC_KEY_LOCK CAPS | ||
| 141 | //#define MAGIC_KEY_EEPROM E | ||
| 142 | //#define MAGIC_KEY_NKRO N | ||
| 143 | //#define MAGIC_KEY_SLEEP_LED Z | ||
| 144 | |||
| 145 | /* | ||
| 146 | * Feature disable options | ||
| 147 | * These options are also useful to firmware size reduction. | ||
| 148 | */ | ||
| 149 | |||
| 150 | /* disable debug print */ | ||
| 151 | //#define NO_DEBUG | ||
| 152 | |||
| 153 | /* disable print */ | ||
| 154 | //#define NO_PRINT | ||
| 155 | |||
| 156 | /* disable action features */ | ||
| 157 | //#define NO_ACTION_LAYER | ||
| 158 | //#define NO_ACTION_TAPPING | ||
| 159 | //#define NO_ACTION_ONESHOT | ||
| 160 | //#define NO_ACTION_MACRO | ||
| 161 | //#define NO_ACTION_FUNCTION | ||
| 162 | |||
| 163 | #endif | ||
diff --git a/keyboards/maxipad/keymaps/default/Makefile b/keyboards/maxipad/keymaps/default/Makefile new file mode 100644 index 000000000..f4671a9d1 --- /dev/null +++ b/keyboards/maxipad/keymaps/default/Makefile | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | # Build Options | ||
| 2 | # change to "no" to disable the options, or define them in the Makefile in | ||
| 3 | # the appropriate keymap folder that will get included automatically | ||
| 4 | # | ||
| 5 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
| 6 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
| 7 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 8 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
| 9 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 10 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 11 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 12 | MIDI_ENABLE = no # MIDI controls | ||
| 13 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 14 | UNICODE_ENABLE = no # Unicode | ||
| 15 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 16 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. | ||
| 17 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 18 | |||
| 19 | ifndef QUANTUM_DIR | ||
| 20 | include ../../../../Makefile | ||
| 21 | endif \ No newline at end of file | ||
diff --git a/keyboards/maxipad/keymaps/default/config.h b/keyboards/maxipad/keymaps/default/config.h new file mode 100644 index 000000000..df06a2620 --- /dev/null +++ b/keyboards/maxipad/keymaps/default/config.h | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | #ifndef CONFIG_USER_H | ||
| 2 | #define CONFIG_USER_H | ||
| 3 | |||
| 4 | #include "../../config.h" | ||
| 5 | |||
| 6 | // place overrides here | ||
| 7 | |||
| 8 | #endif \ No newline at end of file | ||
diff --git a/keyboards/maxipad/keymaps/default/keymap.c b/keyboards/maxipad/keymaps/default/keymap.c new file mode 100644 index 000000000..43ace3241 --- /dev/null +++ b/keyboards/maxipad/keymaps/default/keymap.c | |||
| @@ -0,0 +1,54 @@ | |||
| 1 | #include "maxipad.h" | ||
| 2 | |||
| 3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 4 | [0] = KEYMAP( /* Base */ | ||
| 5 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, \ | ||
| 6 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, \ | ||
| 7 | MO(1), KC_A, KC_S, KC_D, KC_F, KC_G, \ | ||
| 8 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, \ | ||
| 9 | KC_LCTL, KC_LALT, MO(1), KC_ENT,KC_GRV,KC_SPC \ | ||
| 10 | ), | ||
| 11 | [1] = KEYMAP( | ||
| 12 | KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, \ | ||
| 13 | KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, \ | ||
| 14 | KC_TRNS, KC_LEFT, KC_DOWN, KC_RIGHT, KC_TRNS, KC_TRNS, \ | ||
| 15 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \ | ||
| 16 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS \ | ||
| 17 | ), | ||
| 18 | }; | ||
| 19 | |||
| 20 | const uint16_t PROGMEM fn_actions[] = { | ||
| 21 | |||
| 22 | }; | ||
| 23 | |||
| 24 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | ||
| 25 | { | ||
| 26 | // MACRODOWN only works in this function | ||
| 27 | switch(id) { | ||
| 28 | case 0: | ||
| 29 | if (record->event.pressed) { | ||
| 30 | register_code(KC_RSFT); | ||
| 31 | } else { | ||
| 32 | unregister_code(KC_RSFT); | ||
| 33 | } | ||
| 34 | break; | ||
| 35 | } | ||
| 36 | return MACRO_NONE; | ||
| 37 | }; | ||
| 38 | |||
| 39 | |||
| 40 | void matrix_init_user(void) { | ||
| 41 | |||
| 42 | } | ||
| 43 | |||
| 44 | void matrix_scan_user(void) { | ||
| 45 | |||
| 46 | } | ||
| 47 | |||
| 48 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 49 | return true; | ||
| 50 | } | ||
| 51 | |||
| 52 | void led_set_user(uint8_t usb_led) { | ||
| 53 | |||
| 54 | } \ No newline at end of file | ||
diff --git a/keyboards/maxipad/keymaps/default/readme.md b/keyboards/maxipad/keymaps/default/readme.md new file mode 100644 index 000000000..a6c0d4a3f --- /dev/null +++ b/keyboards/maxipad/keymaps/default/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The default keymap for maxipad \ No newline at end of file | |||
diff --git a/keyboards/maxipad/maxipad.c b/keyboards/maxipad/maxipad.c new file mode 100644 index 000000000..879ae86a7 --- /dev/null +++ b/keyboards/maxipad/maxipad.c | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | #include "maxipad.h" | ||
| 2 | |||
| 3 | void matrix_init_kb(void) { | ||
| 4 | // put your keyboard start-up code here | ||
| 5 | // runs once when the firmware starts up | ||
| 6 | |||
| 7 | matrix_init_user(); | ||
| 8 | } | ||
| 9 | |||
| 10 | void matrix_scan_kb(void) { | ||
| 11 | // put your looping keyboard code here | ||
| 12 | // runs every cycle (a lot) | ||
| 13 | |||
| 14 | matrix_scan_user(); | ||
| 15 | } | ||
| 16 | |||
| 17 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | ||
| 18 | // put your per-action keyboard code here | ||
| 19 | // runs for every action, just before processing by the firmware | ||
| 20 | |||
| 21 | return process_record_user(keycode, record); | ||
| 22 | } | ||
| 23 | |||
| 24 | void led_set_kb(uint8_t usb_led) { | ||
| 25 | // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here | ||
| 26 | |||
| 27 | led_set_user(usb_led); | ||
| 28 | } | ||
diff --git a/keyboards/maxipad/maxipad.h b/keyboards/maxipad/maxipad.h new file mode 100644 index 000000000..eee1309dd --- /dev/null +++ b/keyboards/maxipad/maxipad.h | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | #ifndef MAXIPAD_H | ||
| 2 | #define MAXIPAD_H | ||
| 3 | |||
| 4 | #include "quantum.h" | ||
| 5 | |||
| 6 | // This a shortcut to help you visually see your layout. | ||
| 7 | // The following is an example using the Planck MIT layout | ||
| 8 | // The first section contains all of the arguements | ||
| 9 | // The second converts the arguments into a two-dimensional array | ||
| 10 | #define KEYMAP( \ | ||
| 11 | k00, k01, k02, k03, k04, k05, \ | ||
| 12 | k10, k11, k12, k13, k14, k15, \ | ||
| 13 | k20, k21, k22, k23, k24, k25, \ | ||
| 14 | k30, k31, k32, k33, k34, k35, \ | ||
| 15 | k40, k41, k42, k43, k44, k45 \ | ||
| 16 | ) \ | ||
| 17 | { \ | ||
| 18 | { k00, k01, k02, k03, k04, k05 }, \ | ||
| 19 | { k10, k11, k12, k13, k14, k15 }, \ | ||
| 20 | { k20, k21, k22, k23, k24, k25 }, \ | ||
| 21 | { k30, k31, k32, k33, k34, k35 }, \ | ||
| 22 | { k40, k41, k42, k43, k44, k45} \ | ||
| 23 | } | ||
| 24 | |||
| 25 | #endif | ||
diff --git a/keyboards/maxipad/readme.md b/keyboards/maxipad/readme.md new file mode 100644 index 000000000..ab7b122fe --- /dev/null +++ b/keyboards/maxipad/readme.md | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | ## Quantum MK Firmware | ||
| 2 | |||
| 3 | For the full Quantum feature list, see [the parent readme](/). | ||
| 4 | |||
| 5 | |||
| 6 | ## Building | ||
| 7 | |||
| 8 | Download or clone the whole firmware and navigate to the keyboards/maxipad folder. Once your dev env is setup, you'll be able to type `make` to generate your .hex - you can then use the Teensy Loader to program your .hex file. | ||
| 9 | |||
| 10 | Depending on which keymap you would like to use, you will have to compile slightly differently. | ||
| 11 | |||
| 12 | ### Default | ||
| 13 | |||
| 14 | To build with the default keymap, simply run `make`. | ||
| 15 | |||
| 16 | |||
| 17 | ### Other Keymaps | ||
| 18 | |||
| 19 | Several version of keymap are available in advance but you are recommended to define your favorite layout yourself. To define your own keymap create a folder with the name of your keymap in the keymaps folder, and see keymap documentation (you can find in top readme.md) and existant keymap files. | ||
| 20 | |||
| 21 | To build the firmware binary hex file with a keymap just do `make` with a keymap like this: | ||
| 22 | |||
| 23 | ``` | ||
| 24 | $ make [default|jack|<name>] | ||
| 25 | ``` | ||
| 26 | |||
| 27 | Keymaps follow the format **__\<name\>.c__** and are stored in the `keymaps` folder. | ||
| 28 | |||
diff --git a/keyboards/maxipad/rules.mk b/keyboards/maxipad/rules.mk new file mode 100644 index 000000000..55898147d --- /dev/null +++ b/keyboards/maxipad/rules.mk | |||
| @@ -0,0 +1,67 @@ | |||
| 1 | # MCU name | ||
| 2 | #MCU = at90usb1287 | ||
| 3 | MCU = atmega32u4 | ||
| 4 | |||
| 5 | # Processor frequency. | ||
| 6 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
| 7 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
| 8 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
| 9 | # automatically to create a 32-bit value in your source code. | ||
| 10 | # | ||
| 11 | # This will be an integer division of F_USB below, as it is sourced by | ||
| 12 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
| 13 | # does not *change* the processor frequency - it should merely be updated to | ||
| 14 | # reflect the processor speed set externally so that the code can use accurate | ||
| 15 | # software delays. | ||
| 16 | F_CPU = 16000000 | ||
| 17 | |||
| 18 | |||
| 19 | # | ||
| 20 | # LUFA specific | ||
| 21 | # | ||
| 22 | # Target architecture (see library "Board Types" documentation). | ||
| 23 | ARCH = AVR8 | ||
| 24 | |||
| 25 | # Input clock frequency. | ||
| 26 | # This will define a symbol, F_USB, in all source code files equal to the | ||
| 27 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
| 28 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
| 29 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
| 30 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
| 31 | # at the end, this will be done automatically to create a 32-bit value in your | ||
| 32 | # source code. | ||
| 33 | # | ||
| 34 | # If no clock division is performed on the input clock inside the AVR (via the | ||
| 35 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
| 36 | F_USB = $(F_CPU) | ||
| 37 | |||
| 38 | # Interrupt driven control endpoint task(+60) | ||
| 39 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
| 40 | |||
| 41 | |||
| 42 | # Boot Section Size in *bytes* | ||
| 43 | # Teensy halfKay 512 | ||
| 44 | # Teensy++ halfKay 1024 | ||
| 45 | # Atmel DFU loader 4096 | ||
| 46 | # LUFA bootloader 4096 | ||
| 47 | # USBaspLoader 2048 | ||
| 48 | OPT_DEFS += -DBOOTLOADER_SIZE=512 | ||
| 49 | |||
| 50 | |||
| 51 | # Build Options | ||
| 52 | # change yes to no to disable | ||
| 53 | # | ||
| 54 | BOOTMAGIC_ENABLE ?= no # Virtual DIP switch configuration(+1000) | ||
| 55 | MOUSEKEY_ENABLE ?= yes # Mouse keys(+4700) | ||
| 56 | EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450) | ||
| 57 | CONSOLE_ENABLE ?= yes # Console for debug(+400) | ||
| 58 | COMMAND_ENABLE ?= yes # Commands for debug and configuration | ||
| 59 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 60 | SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend | ||
| 61 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 62 | NKRO_ENABLE ?= no # USB Nkey Rollover | ||
| 63 | BACKLIGHT_ENABLE ?= no # Enable keyboard backlight functionality on B7 by default | ||
| 64 | MIDI_ENABLE ?= no # MIDI controls | ||
| 65 | UNICODE_ENABLE ?= no # Unicode | ||
| 66 | BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 67 | AUDIO_ENABLE ?= no # Audio output on port C6 | ||
