diff options
24 files changed, 963 insertions, 0 deletions
diff --git a/keyboards/mode/m65ha_alpha/chconf.h b/keyboards/mode/m65ha_alpha/chconf.h new file mode 100644 index 000000000..cbbae3107 --- /dev/null +++ b/keyboards/mode/m65ha_alpha/chconf.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* Copyright 2020 QMK | ||
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 | |||
17 | #pragma once | ||
18 | |||
19 | #define CH_CFG_ST_FREQUENCY 10000 | ||
20 | |||
21 | #define CH_CFG_OPTIMIZE_SPEED FALSE | ||
22 | |||
23 | #define CH_CFG_USE_CONDVARS_TIMEOUT FALSE | ||
24 | |||
25 | #include_next <chconf.h> | ||
diff --git a/keyboards/mode/m65ha_alpha/config.h b/keyboards/mode/m65ha_alpha/config.h new file mode 100644 index 000000000..dc921fb33 --- /dev/null +++ b/keyboards/mode/m65ha_alpha/config.h | |||
@@ -0,0 +1,73 @@ | |||
1 | /* | ||
2 | Copyright 2020 Álvaro "Gondolindrim" Volpato <alvaro.volpato@usp.br> | ||
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 | #pragma once | ||
19 | |||
20 | /* USB Device descriptor parameter */ | ||
21 | #define VENDOR_ID 0x00DE | ||
22 | #define PRODUCT_ID 0x6566 // 65A + 1 since the pre-alpha version was 6565 | ||
23 | #define DEVICE_VER 0x0065 // A for release Alpha | ||
24 | #define MANUFACTURER Mode | ||
25 | #define PRODUCT SixtyFive HA | ||
26 | |||
27 | /* key matrix size */ | ||
28 | #define MATRIX_ROWS 6 | ||
29 | #define MATRIX_COLS 15 | ||
30 | |||
31 | #define MATRIX_COL_PINS { B10, B12, C8 , C4 , C5 , B0 , C10, B13, B14, B15, A15, C6 , C7 , A8 , C9} | ||
32 | #define MATRIX_ROW_PINS { A7 , A10, D2 , C12, B1 , C11 } | ||
33 | #define DIODE_DIRECTION COL2ROW | ||
34 | |||
35 | /* define if matrix has ghost */ | ||
36 | //#define MATRIX_HAS_GHOST | ||
37 | |||
38 | /* Set 0 if debouncing isn't needed */ | ||
39 | #define DEBOUNCE 5 | ||
40 | |||
41 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
42 | #define LOCKING_SUPPORT_ENABLE | ||
43 | /* Locking resynchronize hack */ | ||
44 | #define LOCKING_RESYNC_ENABLE | ||
45 | |||
46 | #define EEPROM_I2C_24LC256 | ||
47 | //#define I2C1_CLOCK_SPEED 400000 | ||
48 | //#define I2C1_DUTY_CYCLE FAST_DUTY_CYCLE_2 | ||
49 | |||
50 | #define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE | ||
51 | |||
52 | #define STM32_HSECLK 8000000 | ||
53 | |||
54 | #define OPENDRAIN_INDICATORS | ||
55 | #define LED_CAPS_LOCK_PIN A6 | ||
56 | |||
57 | /* | ||
58 | * Feature disable options | ||
59 | * These options are also useful to firmware size reduction. | ||
60 | */ | ||
61 | |||
62 | /* disable debug print */ | ||
63 | //#define NO_DEBUG | ||
64 | |||
65 | /* disable print */ | ||
66 | //#define NO_PRINT | ||
67 | |||
68 | /* disable action features */ | ||
69 | //#define NO_ACTION_LAYER | ||
70 | //#define NO_ACTION_TAPPING | ||
71 | //#define NO_ACTION_ONESHOT | ||
72 | //#define NO_ACTION_MACRO | ||
73 | //#define NO_ACTION_FUNCTION | ||
diff --git a/keyboards/mode/m65ha_alpha/halconf.h b/keyboards/mode/m65ha_alpha/halconf.h new file mode 100644 index 000000000..41bddcb27 --- /dev/null +++ b/keyboards/mode/m65ha_alpha/halconf.h | |||
@@ -0,0 +1,21 @@ | |||
1 | /* Copyright 2020 QMK | ||
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 | |||
17 | #pragma once | ||
18 | |||
19 | #define HAL_USE_I2C TRUE | ||
20 | |||
21 | #include_next <halconf.h> | ||
diff --git a/keyboards/mode/m65ha_alpha/info.json b/keyboards/mode/m65ha_alpha/info.json new file mode 100644 index 000000000..a25d22714 --- /dev/null +++ b/keyboards/mode/m65ha_alpha/info.json | |||
@@ -0,0 +1,82 @@ | |||
1 | { | ||
2 | "keyboard_name": "Mode SixtyFive HA", | ||
3 | "url": "", | ||
4 | "maintainer": "Gondolindrim", | ||
5 | "layouts": { | ||
6 | "LAYOUT_all": { | ||
7 | "layout": [ | ||
8 | { "label": "K00", "x": 0, "y": 0 }, | ||
9 | { "label": "K01", "x": 1, "y": 0 }, | ||
10 | { "label": "K02", "x": 2, "y": 0 }, | ||
11 | { "label": "K03", "x": 3, "y": 0 }, | ||
12 | { "label": "K04", "x": 4, "y": 0 }, | ||
13 | { "label": "K05", "x": 5, "y": 0 }, | ||
14 | { "label": "K06", "x": 6, "y": 0 }, | ||
15 | { "label": "K07", "x": 7, "y": 0 }, | ||
16 | { "label": "K08", "x": 8, "y": 0 }, | ||
17 | { "label": "K09", "x": 9, "y": 0 }, | ||
18 | { "label": "K0A", "x": 10, "y": 0 }, | ||
19 | { "label": "K0B", "x": 11, "y": 0 }, | ||
20 | { "label": "K0C", "x": 12, "y": 0 }, | ||
21 | { "label": "K0D", "x": 13, "y": 0, "w": 2 }, | ||
22 | { "label": "K0E", "x": 15, "y": 0 }, | ||
23 | |||
24 | { "label": "K10", "x": 0, "y": 1, "w": 1.5 }, | ||
25 | { "label": "K11", "x": 1.5, "y": 1 }, | ||
26 | { "label": "K12", "x": 2.5, "y": 1 }, | ||
27 | { "label": "K13", "x": 3.5, "y": 1 }, | ||
28 | { "label": "K14", "x": 4.5, "y": 1 }, | ||
29 | { "label": "K15", "x": 5.5, "y": 1 }, | ||
30 | { "label": "K16", "x": 6.5, "y": 1 }, | ||
31 | { "label": "K17", "x": 7.5, "y": 1 }, | ||
32 | { "label": "K18", "x": 8.5, "y": 1 }, | ||
33 | { "label": "K19", "x": 9.5, "y": 1 }, | ||
34 | { "label": "K1A", "x": 10.5, "y": 1 }, | ||
35 | { "label": "K1B", "x": 11.5, "y": 1 }, | ||
36 | { "label": "K1C", "x": 12.5, "y": 1 }, | ||
37 | { "label": "K1D", "x": 13.5, "y": 1, "w": 1.5}, | ||
38 | { "label": "K1E", "x": 15, "y": 1 }, | ||
39 | |||
40 | { "label": "K20", "x": 0, "y": 2, "w": 1.75 }, | ||
41 | { "label": "K21", "x": 1.75, "y": 2 }, | ||
42 | { "label": "K22", "x": 2.75, "y": 2 }, | ||
43 | { "label": "K23", "x": 3.75, "y": 2 }, | ||
44 | { "label": "K24", "x": 4.75, "y": 2 }, | ||
45 | { "label": "K25", "x": 5.75, "y": 2 }, | ||
46 | { "label": "K26", "x": 6.75, "y": 2 }, | ||
47 | { "label": "K27", "x": 7.75, "y": 2 }, | ||
48 | { "label": "K28", "x": 8.75, "y": 2 }, | ||
49 | { "label": "K29", "x": 9.75, "y": 2 }, | ||
50 | { "label": "K2A", "x": 10.75, "y": 2 }, | ||
51 | { "label": "K2B", "x": 11.75, "y": 2 }, | ||
52 | { "label": "K2D", "x": 12.75, "y": 2, "w": 2.25 }, | ||
53 | { "label": "K2E", "x": 15, "y": 2 }, | ||
54 | |||
55 | { "label": "K30", "x": 0, "y": 3, "w": 2.25 }, | ||
56 | { "label": "K32", "x": 2.25, "y": 3 }, | ||
57 | { "label": "K33", "x": 3.25, "y": 3 }, | ||
58 | { "label": "K34", "x": 4.25, "y": 3 }, | ||
59 | { "label": "K35", "x": 5.25, "y": 3 }, | ||
60 | { "label": "K36", "x": 6.25, "y": 3 }, | ||
61 | { "label": "K37", "x": 7.25, "y": 3 }, | ||
62 | { "label": "K38", "x": 8.25, "y": 3 }, | ||
63 | { "label": "K39", "x": 9.25, "y": 3 }, | ||
64 | { "label": "K3A", "x": 10.25, "y": 3 }, | ||
65 | { "label": "K3B", "x": 11.25, "y": 3 }, | ||
66 | { "label": "K3C", "x": 12.25, "y": 3, "w": 1.75 }, | ||
67 | { "label": "K3D", "x": 14, "y": 3 }, | ||
68 | { "label": "K3E", "x": 15, "y": 3 }, | ||
69 | |||
70 | { "label": "K40", "x": 0, "y": 4, "w": 1.25 }, | ||
71 | { "label": "K41", "x": 1.25, "y": 4, "w": 1.25 }, | ||
72 | { "label": "K42", "x": 2.5, "y": 4, "w": 1.25 }, | ||
73 | { "label": "K56", "x": 3.75, "y": 4, "w": 6.25 }, | ||
74 | { "label": "K5A", "x": 10, "y": 4, "w": 1.25 }, | ||
75 | { "label": "K5B", "x": 11.25, "y": 4, "w": 1.25 }, | ||
76 | { "label": "K5C", "x": 13, "y": 4 }, | ||
77 | { "label": "K5D", "x": 14, "y": 4 }, | ||
78 | { "label": "K5E", "x": 15, "y": 4 } | ||
79 | ] | ||
80 | } | ||
81 | } | ||
82 | } | ||
diff --git a/keyboards/mode/m65ha_alpha/keymaps/default/keymap.c b/keyboards/mode/m65ha_alpha/keymaps/default/keymap.c new file mode 100755 index 000000000..2a2e04153 --- /dev/null +++ b/keyboards/mode/m65ha_alpha/keymaps/default/keymap.c | |||
@@ -0,0 +1,49 @@ | |||
1 | /* | ||
2 | Copyright 2020 Álvaro "Gondolindrim" Volpato <alvaro.volpato@usp.br> | ||
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 | #include QMK_KEYBOARD_H | ||
19 | |||
20 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
21 | [0] = LAYOUT_all( | ||
22 | KC_ESC , KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_MINS, KC_EQL , KC_BSPC, KC_DEL , | ||
23 | KC_TAB , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_Y , KC_U , KC_I , KC_O , KC_P , KC_LBRC, KC_RBRC, KC_BSLS, KC_PGUP, | ||
24 | KC_CAPS, KC_A , KC_S , KC_D , KC_F , KC_G , KC_H , KC_J , KC_K , KC_L , KC_SCLN, KC_QUOT, KC_ENT , KC_PGDN, | ||
25 | KC_LSFT, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_N , KC_M , KC_COMM, KC_DOT , KC_SLSH, KC_RSFT, KC_UP , KC_END , | ||
26 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC , KC_RALT, MO(1) , KC_LEFT, KC_DOWN, KC_RGHT | ||
27 | ), | ||
28 | [1] = LAYOUT_all( | ||
29 | RESET , KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , KC_F6 , KC_F7 , KC_F8 , KC_F9 , KC_F10 , KC_F11 , KC_F12 , KC_TRNS, KC_MUTE, | ||
30 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLU, | ||
31 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLD, | ||
32 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPLY, | ||
33 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
34 | ), | ||
35 | [2] = LAYOUT_all( | ||
36 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
37 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
38 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
39 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
40 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
41 | ), | ||
42 | [3] = LAYOUT_all( | ||
43 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
44 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
45 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
46 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
47 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
48 | ) | ||
49 | }; | ||
diff --git a/keyboards/mode/m65ha_alpha/keymaps/via/keymap.c b/keyboards/mode/m65ha_alpha/keymaps/via/keymap.c new file mode 100755 index 000000000..2a2e04153 --- /dev/null +++ b/keyboards/mode/m65ha_alpha/keymaps/via/keymap.c | |||
@@ -0,0 +1,49 @@ | |||
1 | /* | ||
2 | Copyright 2020 Álvaro "Gondolindrim" Volpato <alvaro.volpato@usp.br> | ||
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 | #include QMK_KEYBOARD_H | ||
19 | |||
20 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
21 | [0] = LAYOUT_all( | ||
22 | KC_ESC , KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_MINS, KC_EQL , KC_BSPC, KC_DEL , | ||
23 | KC_TAB , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_Y , KC_U , KC_I , KC_O , KC_P , KC_LBRC, KC_RBRC, KC_BSLS, KC_PGUP, | ||
24 | KC_CAPS, KC_A , KC_S , KC_D , KC_F , KC_G , KC_H , KC_J , KC_K , KC_L , KC_SCLN, KC_QUOT, KC_ENT , KC_PGDN, | ||
25 | KC_LSFT, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_N , KC_M , KC_COMM, KC_DOT , KC_SLSH, KC_RSFT, KC_UP , KC_END , | ||
26 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC , KC_RALT, MO(1) , KC_LEFT, KC_DOWN, KC_RGHT | ||
27 | ), | ||
28 | [1] = LAYOUT_all( | ||
29 | RESET , KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , KC_F6 , KC_F7 , KC_F8 , KC_F9 , KC_F10 , KC_F11 , KC_F12 , KC_TRNS, KC_MUTE, | ||
30 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLU, | ||
31 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLD, | ||
32 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPLY, | ||
33 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
34 | ), | ||
35 | [2] = LAYOUT_all( | ||
36 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
37 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
38 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
39 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
40 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
41 | ), | ||
42 | [3] = LAYOUT_all( | ||
43 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
44 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
45 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
46 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
47 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
48 | ) | ||
49 | }; | ||
diff --git a/keyboards/mode/m65ha_alpha/keymaps/via/rules.mk b/keyboards/mode/m65ha_alpha/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/mode/m65ha_alpha/keymaps/via/rules.mk | |||
@@ -0,0 +1 @@ | |||
VIA_ENABLE = yes | |||
diff --git a/keyboards/mode/m65ha_alpha/m65ha_alpha.c b/keyboards/mode/m65ha_alpha/m65ha_alpha.c new file mode 100644 index 000000000..93e0c06b7 --- /dev/null +++ b/keyboards/mode/m65ha_alpha/m65ha_alpha.c | |||
@@ -0,0 +1,67 @@ | |||
1 | /* | ||
2 | Copyright 2020 Álvaro "Gondolindrim" Volpato <alvaro.volpato@usp.br> | ||
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 | #include "m65ha_alpha.h" | ||
19 | |||
20 | void board_init(void) { | ||
21 | setPinInput(B9); | ||
22 | setPinInput(B10); | ||
23 | } | ||
24 | |||
25 | #define LED_PIN_ON_STATE 1 | ||
26 | void led_init_ports(void) { | ||
27 | |||
28 | /** If the OPENDRAIN_INDICATORS option is not defined in config.h, the indicator | ||
29 | pins default to push-pull output. Else, they are defined as open-drain. The | ||
30 | pin mode configuration is done through the INDICATOR_PIN_MODE which is | ||
31 | attributed right at the beggining. **/ | ||
32 | |||
33 | #ifndef OPENDRAIN_INDICATORS | ||
34 | # define INDICATOR_PIN_MODE PAL_MODE_OUTPUT_PUSHPULL | ||
35 | #else | ||
36 | # define INDICATOR_PIN_MODE PAL_MODE_OUTPUT_OPENDRAIN | ||
37 | #endif | ||
38 | |||
39 | #ifdef LED_NUM_LOCK_PIN | ||
40 | palSetLineMode(LED_NUM_LOCK_PIN, INDICATOR_PIN_MODE); | ||
41 | #endif | ||
42 | #ifdef LED_CAPS_LOCK_PIN | ||
43 | palSetLineMode(LED_CAPS_LOCK_PIN, INDICATOR_PIN_MODE); | ||
44 | #endif | ||
45 | #ifdef LED_SCROLL_LOCK_PIN | ||
46 | palSetLineMode(LED_SCROLL_LOCK_PIN, INDICATOR_PIN_MODE); | ||
47 | #endif | ||
48 | #ifdef LED_COMPOSE_PIN | ||
49 | palSetLineMode(LED_COMPOSE_PIN, INDICATOR_PIN_MODE); | ||
50 | #endif | ||
51 | #ifdef LED_KANA_PIN | ||
52 | palSetLineMode(LED_KANA_PIN, INDICATOR_PIN_MODE); | ||
53 | #endif | ||
54 | } | ||
55 | |||
56 | bool led_update_kb(led_t led_state) { | ||
57 | bool res = led_update_user(led_state); | ||
58 | if(res) { | ||
59 | // writePin sets the pin high for 1 and low for 0. | ||
60 | // In this example the pins are inverted, setting | ||
61 | // it low/0 turns it on, and high/1 turns the LED off. | ||
62 | // This behavior depends on whether the LED is between the pin | ||
63 | // and VCC or the pin and GND. | ||
64 | writePin(LED_CAPS_LOCK_PIN, !led_state.caps_lock); | ||
65 | } | ||
66 | return res; | ||
67 | } | ||
diff --git a/keyboards/mode/m65ha_alpha/m65ha_alpha.h b/keyboards/mode/m65ha_alpha/m65ha_alpha.h new file mode 100644 index 000000000..6b0c63c6b --- /dev/null +++ b/keyboards/mode/m65ha_alpha/m65ha_alpha.h | |||
@@ -0,0 +1,37 @@ | |||
1 | /* | ||
2 | Copyright 2020 Álvaro "Gondolindrim" Volpato <alvaro.volpato@usp.br> | ||
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 | #pragma once | ||
19 | |||
20 | #include "quantum.h" | ||
21 | |||
22 | #define ___ KC_NO | ||
23 | |||
24 | #define LAYOUT_all( \ | ||
25 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, \ | ||
26 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, \ | ||
27 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2D, K2E, \ | ||
28 | K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, \ | ||
29 | K40, K41, K42, K56, K5A, K5B, K5C, K5D, K5E \ | ||
30 | ) { \ | ||
31 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \ | ||
32 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E }, \ | ||
33 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, ___, K2D, K2E }, \ | ||
34 | { K30, ___, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \ | ||
35 | { K40, K41, K42, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
36 | { ___, ___, ___, ___, ___, ___, K56, ___, ___, ___, K5A, K5B, K5C, K5D, K5E } \ | ||
37 | } | ||
diff --git a/keyboards/mode/m65ha_alpha/mcuconf.h b/keyboards/mode/m65ha_alpha/mcuconf.h new file mode 100644 index 000000000..e4cefd0b7 --- /dev/null +++ b/keyboards/mode/m65ha_alpha/mcuconf.h | |||
@@ -0,0 +1,35 @@ | |||
1 | /* Copyright 2020 QMK | ||
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 | |||
17 | #pragma once | ||
18 | |||
19 | #include_next <mcuconf.h> | ||
20 | #undef STM32_PLLM_VALUE | ||
21 | #undef STM32_PLLN_VALUE | ||
22 | #undef STM32_PLLP_VALUE | ||
23 | #undef STM32_PLLQ_VALUE | ||
24 | #undef STM32_PPRE1 | ||
25 | #undef STM32_PPRE2 | ||
26 | |||
27 | #define STM32_PLLM_VALUE 4 | ||
28 | #define STM32_PLLN_VALUE 168 | ||
29 | #define STM32_PLLP_VALUE 4 | ||
30 | #define STM32_PLLQ_VALUE 7 | ||
31 | #define STM32_PPRE1 STM32_PPRE1_DIV2 | ||
32 | #define STM32_PPRE2 STM32_PPRE2_DIV1 | ||
33 | |||
34 | #undef STM32_I2C_USE_I2C1 | ||
35 | #define STM32_I2C_USE_I2C1 TRUE | ||
diff --git a/keyboards/mode/m65ha_alpha/readme.md b/keyboards/mode/m65ha_alpha/readme.md new file mode 100644 index 000000000..ae8b48975 --- /dev/null +++ b/keyboards/mode/m65ha_alpha/readme.md | |||
@@ -0,0 +1,16 @@ | |||
1 | # Mode SixtyFive HA rev. Alpha | ||
2 | |||
3 |  | ||
4 | |||
5 | The Mode SixtyFive is a 65% high-end keyboard sold by [Mode Designs](https://shop.modedesigns.com/). The M65HA is the ANSI-layout variant of its PCB. | ||
6 | |||
7 | * Keyboard Maintainer: [Gondolindrim](https://github.com/gondolindrim) | ||
8 | * Hardware Supported: proprietary PCB using STM32F401 controller | ||
9 | * Hardware Availability: revision 1 public sales are over as of june 2021. | ||
10 | |||
11 | Flashing example for this keyboard: | ||
12 | |||
13 | make mode/m65hi_alpha:default:flash | ||
14 | |||
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). | ||
16 | |||
diff --git a/keyboards/mode/m65ha_alpha/rules.mk b/keyboards/mode/m65ha_alpha/rules.mk new file mode 100644 index 000000000..f33a05592 --- /dev/null +++ b/keyboards/mode/m65ha_alpha/rules.mk | |||
@@ -0,0 +1,24 @@ | |||
1 | # MCU name | ||
2 | MCU = STM32F401 | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = stm32-dfu | ||
6 | |||
7 | # Build Options | ||
8 | # change yes to no to disable | ||
9 | # | ||
10 | BOOTMAGIC_ENABLE = yes # Enable Bootmagic lite | ||
11 | MOUSEKEY_ENABLE = no # Mouse keys | ||
12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
13 | CONSOLE_ENABLE = no # Console for debug | ||
14 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
16 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
17 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
18 | NKRO_ENABLE = no # USB Nkey Rollover | ||
19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
21 | AUDIO_ENABLE = no # Audio output | ||
22 | EEPROM_DRIVER = i2c | ||
23 | # Enter lower-power sleep mode when on the ChibiOS idle thread | ||
24 | OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE -DDEBUG_EEPROM_OUTPUT=TRUE | ||
diff --git a/keyboards/mode/m65hi_alpha/chconf.h b/keyboards/mode/m65hi_alpha/chconf.h new file mode 100644 index 000000000..cbbae3107 --- /dev/null +++ b/keyboards/mode/m65hi_alpha/chconf.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* Copyright 2020 QMK | ||
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 | |||
17 | #pragma once | ||
18 | |||
19 | #define CH_CFG_ST_FREQUENCY 10000 | ||
20 | |||
21 | #define CH_CFG_OPTIMIZE_SPEED FALSE | ||
22 | |||
23 | #define CH_CFG_USE_CONDVARS_TIMEOUT FALSE | ||
24 | |||
25 | #include_next <chconf.h> | ||
diff --git a/keyboards/mode/m65hi_alpha/config.h b/keyboards/mode/m65hi_alpha/config.h new file mode 100644 index 000000000..1a048e94d --- /dev/null +++ b/keyboards/mode/m65hi_alpha/config.h | |||
@@ -0,0 +1,73 @@ | |||
1 | /* | ||
2 | Copyright 2020 Álvaro "Gondolindrim" Volpato <alvaro.volpato@usp.br> | ||
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 | #pragma once | ||
19 | |||
20 | /* USB Device descriptor parameter */ | ||
21 | #define VENDOR_ID 0x00DE | ||
22 | #define PRODUCT_ID 0x6574 // For 65I + 1 (for alpha, since pre-alpha 6573) | ||
23 | #define DEVICE_VER 0x0065 // A for A (alpha) | ||
24 | #define MANUFACTURER Mode | ||
25 | #define PRODUCT SixtyFive HI | ||
26 | |||
27 | /* key matrix size */ | ||
28 | #define MATRIX_ROWS 6 | ||
29 | #define MATRIX_COLS 15 | ||
30 | |||
31 | #define MATRIX_COL_PINS { B10, B12, C8 , C4 , C5 , B0 , C10, B13, B14, B15, A15, C6 , C7 , A8 , C9 } | ||
32 | #define MATRIX_ROW_PINS { A7 , A10, D2 , C12, B1 , C11 } | ||
33 | #define DIODE_DIRECTION COL2ROW | ||
34 | |||
35 | /* define if matrix has ghost */ | ||
36 | //#define MATRIX_HAS_GHOST | ||
37 | |||
38 | /* Set 0 if debouncing isn't needed */ | ||
39 | #define DEBOUNCE 5 | ||
40 | |||
41 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
42 | #define LOCKING_SUPPORT_ENABLE | ||
43 | /* Locking resynchronize hack */ | ||
44 | #define LOCKING_RESYNC_ENABLE | ||
45 | |||
46 | #define EEPROM_I2C_24LC256 | ||
47 | //#define I2C1_CLOCK_SPEED 400000 | ||
48 | //#define I2C1_DUTY_CYCLE FAST_DUTY_CYCLE_2 | ||
49 | |||
50 | #define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE | ||
51 | |||
52 | #define STM32_HSECLK 8000000 | ||
53 | |||
54 | #define OPENDRAIN_INDICATORS | ||
55 | #define LED_CAPS_LOCK_PIN A6 | ||
56 | |||
57 | /* | ||
58 | * Feature disable options | ||
59 | * These options are also useful to firmware size reduction. | ||
60 | */ | ||
61 | |||
62 | /* disable debug print */ | ||
63 | //#define NO_DEBUG | ||
64 | |||
65 | /* disable print */ | ||
66 | //#define NO_PRINT | ||
67 | |||
68 | /* disable action features */ | ||
69 | //#define NO_ACTION_LAYER | ||
70 | //#define NO_ACTION_TAPPING | ||
71 | //#define NO_ACTION_ONESHOT | ||
72 | //#define NO_ACTION_MACRO | ||
73 | //#define NO_ACTION_FUNCTION | ||
diff --git a/keyboards/mode/m65hi_alpha/halconf.h b/keyboards/mode/m65hi_alpha/halconf.h new file mode 100644 index 000000000..41bddcb27 --- /dev/null +++ b/keyboards/mode/m65hi_alpha/halconf.h | |||
@@ -0,0 +1,21 @@ | |||
1 | /* Copyright 2020 QMK | ||
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 | |||
17 | #pragma once | ||
18 | |||
19 | #define HAL_USE_I2C TRUE | ||
20 | |||
21 | #include_next <halconf.h> | ||
diff --git a/keyboards/mode/m65hi_alpha/info.json b/keyboards/mode/m65hi_alpha/info.json new file mode 100644 index 000000000..aa5f98efc --- /dev/null +++ b/keyboards/mode/m65hi_alpha/info.json | |||
@@ -0,0 +1,83 @@ | |||
1 | { | ||
2 | "keyboard_name": "Mode SixtyFive HI", | ||
3 | "url": "", | ||
4 | "maintainer": "Gondolindrim", | ||
5 | "layouts": { | ||
6 | "LAYOUT_all": { | ||
7 | "layout": [ | ||
8 | { "label": "K00", "x": 0, "y": 0 }, | ||
9 | { "label": "K01", "x": 1, "y": 0 }, | ||
10 | { "label": "K02", "x": 2, "y": 0 }, | ||
11 | { "label": "K03", "x": 3, "y": 0 }, | ||
12 | { "label": "K04", "x": 4, "y": 0 }, | ||
13 | { "label": "K05", "x": 5, "y": 0 }, | ||
14 | { "label": "K06", "x": 6, "y": 0 }, | ||
15 | { "label": "K07", "x": 7, "y": 0 }, | ||
16 | { "label": "K08", "x": 8, "y": 0 }, | ||
17 | { "label": "K09", "x": 9, "y": 0 }, | ||
18 | { "label": "K0A", "x": 10, "y": 0 }, | ||
19 | { "label": "K0B", "x": 11, "y": 0 }, | ||
20 | { "label": "K0C", "x": 12, "y": 0 }, | ||
21 | { "label": "K0D", "x": 13, "y": 0, "w": 2 }, | ||
22 | { "label": "K0E", "x": 15, "y": 0 }, | ||
23 | |||
24 | { "label": "K10", "x": 0, "y": 1, "w": 1.5 }, | ||
25 | { "label": "K11", "x": 1.5, "y": 1 }, | ||
26 | { "label": "K12", "x": 2.5, "y": 1 }, | ||
27 | { "label": "K13", "x": 3.5, "y": 1 }, | ||
28 | { "label": "K14", "x": 4.5, "y": 1 }, | ||
29 | { "label": "K15", "x": 5.5, "y": 1 }, | ||
30 | { "label": "K16", "x": 6.5, "y": 1 }, | ||
31 | { "label": "K17", "x": 7.5, "y": 1 }, | ||
32 | { "label": "K18", "x": 8.5, "y": 1 }, | ||
33 | { "label": "K19", "x": 9.5, "y": 1 }, | ||
34 | { "label": "K1A", "x": 10.5, "y": 1 }, | ||
35 | { "label": "K1B", "x": 11.5, "y": 1 }, | ||
36 | { "label": "K1C", "x": 12.5, "y": 1 }, | ||
37 | { "label": "K1E", "x": 15, "y": 1 }, | ||
38 | |||
39 | { "label": "K20", "x": 0, "y": 2, "w": 1.75 }, | ||
40 | { "label": "K21", "x": 1.75, "y": 2 }, | ||
41 | { "label": "K22", "x": 2.75, "y": 2 }, | ||
42 | { "label": "K23", "x": 3.75, "y": 2 }, | ||
43 | { "label": "K24", "x": 4.75, "y": 2 }, | ||
44 | { "label": "K25", "x": 5.75, "y": 2 }, | ||
45 | { "label": "K26", "x": 6.75, "y": 2 }, | ||
46 | { "label": "K27", "x": 7.75, "y": 2 }, | ||
47 | { "label": "K28", "x": 8.75, "y": 2 }, | ||
48 | { "label": "K29", "x": 9.75, "y": 2 }, | ||
49 | { "label": "K2A", "x": 10.75, "y": 2 }, | ||
50 | { "label": "K2B", "x": 11.75, "y": 2 }, | ||
51 | { "label": "K2C", "x": 12.75, "y": 2 }, | ||
52 | { "label": "K2D", "x": 13.75, "y": 1, "w": 1.25, "h": 2 }, | ||
53 | { "label": "K2E", "x": 15, "y": 2 }, | ||
54 | |||
55 | { "label": "K30", "x": 0, "y": 3, "w": 1.25 }, | ||
56 | { "label": "K31", "x": 1.25, "y": 3 }, | ||
57 | { "label": "K32", "x": 2.25, "y": 3 }, | ||
58 | { "label": "K33", "x": 3.25, "y": 3 }, | ||
59 | { "label": "K34", "x": 4.25, "y": 3 }, | ||
60 | { "label": "K35", "x": 5.25, "y": 3 }, | ||
61 | { "label": "K36", "x": 6.25, "y": 3 }, | ||
62 | { "label": "K37", "x": 7.25, "y": 3 }, | ||
63 | { "label": "K38", "x": 8.25, "y": 3 }, | ||
64 | { "label": "K39", "x": 9.25, "y": 3 }, | ||
65 | { "label": "K3A", "x": 10.25, "y": 3 }, | ||
66 | { "label": "K3B", "x": 11.25, "y": 3 }, | ||
67 | { "label": "K3C", "x": 12.25, "y": 3, "w": 1.75 }, | ||
68 | { "label": "K3D", "x": 14, "y": 3 }, | ||
69 | { "label": "K3E", "x": 15, "y": 3 }, | ||
70 | |||
71 | { "label": "K40", "x": 0, "y": 4, "w": 1.25 }, | ||
72 | { "label": "K41", "x": 1.25, "y": 4, "w": 1.25 }, | ||
73 | { "label": "K42", "x": 2.5, "y": 4, "w": 1.25 }, | ||
74 | { "label": "K56", "x": 3.75, "y": 4, "w": 6.25 }, | ||
75 | { "label": "K5A", "x": 10, "y": 4, "w": 1.25 }, | ||
76 | { "label": "K5B", "x": 11.25, "y": 4, "w": 1.25 }, | ||
77 | { "label": "K5C", "x": 13, "y": 4 }, | ||
78 | { "label": "K5D", "x": 14, "y": 4 }, | ||
79 | { "label": "K5E", "x": 15, "y": 4 } | ||
80 | ] | ||
81 | } | ||
82 | } | ||
83 | } | ||
diff --git a/keyboards/mode/m65hi_alpha/keymaps/default/keymap.c b/keyboards/mode/m65hi_alpha/keymaps/default/keymap.c new file mode 100755 index 000000000..2159d5ffe --- /dev/null +++ b/keyboards/mode/m65hi_alpha/keymaps/default/keymap.c | |||
@@ -0,0 +1,49 @@ | |||
1 | /* | ||
2 | Copyright 2020 Álvaro "Gondolindrim" Volpato <alvaro.volpato@usp.br> | ||
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 | #include QMK_KEYBOARD_H | ||
19 | |||
20 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
21 | [0] = LAYOUT_all( | ||
22 | KC_ESC , KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_MINS, KC_EQL , KC_BSPC, KC_DEL , | ||
23 | KC_TAB , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_Y , KC_U , KC_I , KC_O , KC_P , KC_LBRC, KC_RBRC, KC_PGDN, | ||
24 | KC_CAPS, KC_A , KC_S , KC_D , KC_F , KC_G , KC_H , KC_J , KC_K , KC_L , KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT , KC_PGDN, | ||
25 | KC_LSFT, KC_NUBS, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_N , KC_M , KC_COMM, KC_DOT , KC_SLSH, KC_RSFT, KC_UP , KC_END , | ||
26 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC , KC_RALT, MO(1) , KC_LEFT, KC_DOWN, KC_RGHT | ||
27 | ), | ||
28 | [1] = LAYOUT_all( | ||
29 | RESET , KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , KC_F6 , KC_F7 , KC_F8 , KC_F9 , KC_F10 , KC_F11 , KC_F12 , KC_TRNS, KC_MUTE, | ||
30 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLU, | ||
31 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLD, | ||
32 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPLY, | ||
33 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
34 | ), | ||
35 | [2] = LAYOUT_all( | ||
36 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
37 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
38 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
39 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
40 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
41 | ), | ||
42 | [3] = LAYOUT_all( | ||
43 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
44 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
45 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
46 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
47 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
48 | ) | ||
49 | }; | ||
diff --git a/keyboards/mode/m65hi_alpha/keymaps/via/keymap.c b/keyboards/mode/m65hi_alpha/keymaps/via/keymap.c new file mode 100755 index 000000000..6d84d3849 --- /dev/null +++ b/keyboards/mode/m65hi_alpha/keymaps/via/keymap.c | |||
@@ -0,0 +1,49 @@ | |||
1 | /* | ||
2 | Copyright 2020 Álvaro "Gondolindrim" Volpato <alvaro.volpato@usp.br> | ||
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 | #include QMK_KEYBOARD_H | ||
19 | |||
20 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
21 | [0] = LAYOUT_all( | ||
22 | KC_ESC , KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_MINS, KC_EQL , KC_BSPC, KC_DEL , | ||
23 | KC_TAB , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_Y , KC_U , KC_I , KC_O , KC_P , KC_LBRC, KC_RBRC, KC_PGDN, | ||
24 | KC_CAPS, KC_A , KC_S , KC_D , KC_F , KC_G , KC_H , KC_J , KC_K , KC_L , KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT , KC_PGUP, | ||
25 | KC_LSFT, KC_NUBS, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_N , KC_M , KC_COMM, KC_DOT , KC_SLSH, KC_RSFT, KC_UP , KC_END , | ||
26 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC , KC_RALT, MO(1) , KC_LEFT, KC_DOWN, KC_RGHT | ||
27 | ), | ||
28 | [1] = LAYOUT_all( | ||
29 | RESET , KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , KC_F6 , KC_F7 , KC_F8 , KC_F9 , KC_F10 , KC_F11 , KC_F12 , KC_TRNS, KC_MUTE, | ||
30 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLU, | ||
31 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLD, | ||
32 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPLY, | ||
33 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
34 | ), | ||
35 | [2] = LAYOUT_all( | ||
36 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
37 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
38 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
39 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
40 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
41 | ), | ||
42 | [3] = LAYOUT_all( | ||
43 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
44 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
45 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
46 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
47 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
48 | ) | ||
49 | }; | ||
diff --git a/keyboards/mode/m65hi_alpha/keymaps/via/rules.mk b/keyboards/mode/m65hi_alpha/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/mode/m65hi_alpha/keymaps/via/rules.mk | |||
@@ -0,0 +1 @@ | |||
VIA_ENABLE = yes | |||
diff --git a/keyboards/mode/m65hi_alpha/m65hi_alpha.c b/keyboards/mode/m65hi_alpha/m65hi_alpha.c new file mode 100644 index 000000000..db0ab7ca9 --- /dev/null +++ b/keyboards/mode/m65hi_alpha/m65hi_alpha.c | |||
@@ -0,0 +1,67 @@ | |||
1 | /* | ||
2 | Copyright 2020 Álvaro "Gondolindrim" Volpato <alvaro.volpato@usp.br> | ||
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 | #include "m65hi_alpha.h" | ||
19 | |||
20 | void board_init(void) { | ||
21 | setPinInput(B9); | ||
22 | setPinInput(B10); | ||
23 | } | ||
24 | |||
25 | #define LED_PIN_ON_STATE 1 | ||
26 | void led_init_ports(void) { | ||
27 | |||
28 | /** If the OPENDRAIN_INDICATORS option is not defined in config.h, the indicator | ||
29 | pins default to push-pull output. Else, they are defined as open-drain. The | ||
30 | pin mode configuration is done through the INDICATOR_PIN_MODE which is | ||
31 | attributed right at the beggining. **/ | ||
32 | |||
33 | #ifndef OPENDRAIN_INDICATORS | ||
34 | # define INDICATOR_PIN_MODE PAL_MODE_OUTPUT_PUSHPULL | ||
35 | #else | ||
36 | # define INDICATOR_PIN_MODE PAL_MODE_OUTPUT_OPENDRAIN | ||
37 | #endif | ||
38 | |||
39 | #ifdef LED_NUM_LOCK_PIN | ||
40 | palSetLineMode(LED_NUM_LOCK_PIN, INDICATOR_PIN_MODE); | ||
41 | #endif | ||
42 | #ifdef LED_CAPS_LOCK_PIN | ||
43 | palSetLineMode(LED_CAPS_LOCK_PIN, INDICATOR_PIN_MODE); | ||
44 | #endif | ||
45 | #ifdef LED_SCROLL_LOCK_PIN | ||
46 | palSetLineMode(LED_SCROLL_LOCK_PIN, INDICATOR_PIN_MODE); | ||
47 | #endif | ||
48 | #ifdef LED_COMPOSE_PIN | ||
49 | palSetLineMode(LED_COMPOSE_PIN, INDICATOR_PIN_MODE); | ||
50 | #endif | ||
51 | #ifdef LED_KANA_PIN | ||
52 | palSetLineMode(LED_KANA_PIN, INDICATOR_PIN_MODE); | ||
53 | #endif | ||
54 | } | ||
55 | |||
56 | bool led_update_kb(led_t led_state) { | ||
57 | bool res = led_update_user(led_state); | ||
58 | if(res) { | ||
59 | // writePin sets the pin high for 1 and low for 0. | ||
60 | // In this example the pins are inverted, setting | ||
61 | // it low/0 turns it on, and high/1 turns the LED off. | ||
62 | // This behavior depends on whether the LED is between the pin | ||
63 | // and VCC or the pin and GND. | ||
64 | writePin(LED_CAPS_LOCK_PIN, !led_state.caps_lock); | ||
65 | } | ||
66 | return res; | ||
67 | } | ||
diff --git a/keyboards/mode/m65hi_alpha/m65hi_alpha.h b/keyboards/mode/m65hi_alpha/m65hi_alpha.h new file mode 100644 index 000000000..7d2b5cc68 --- /dev/null +++ b/keyboards/mode/m65hi_alpha/m65hi_alpha.h | |||
@@ -0,0 +1,37 @@ | |||
1 | /* | ||
2 | Copyright 2020 Álvaro "Gondolindrim" Volpato <alvaro.volpato@usp.br> | ||
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 | #pragma once | ||
19 | |||
20 | #include "quantum.h" | ||
21 | |||
22 | #define ___ KC_NO | ||
23 | |||
24 | #define LAYOUT_all( \ | ||
25 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, \ | ||
26 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1E, \ | ||
27 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E, \ | ||
28 | K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, \ | ||
29 | K40, K41, K42, K56, K5A, K5B, K5C, K5D, K5E \ | ||
30 | ) { \ | ||
31 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \ | ||
32 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, ___, K1E }, \ | ||
33 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E }, \ | ||
34 | { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \ | ||
35 | { K40, K41, K42, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
36 | { ___, ___, ___, ___, ___, ___, K56, ___, ___, ___, K5A, K5B, K5C, K5D, K5E } \ | ||
37 | } | ||
diff --git a/keyboards/mode/m65hi_alpha/mcuconf.h b/keyboards/mode/m65hi_alpha/mcuconf.h new file mode 100644 index 000000000..97f2ee51e --- /dev/null +++ b/keyboards/mode/m65hi_alpha/mcuconf.h | |||
@@ -0,0 +1,40 @@ | |||
1 | /* Copyright 2020 QMK | ||
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 | |||
17 | /* | ||
18 | * This file was auto-generated by: | ||
19 | * `qmk chibios-confmigrate -i keyboards/acheron/austin/mcuconf.h -r platforms/chibios/GENERIC_STM32_F072XB/configs/mcuconf.h` | ||
20 | */ | ||
21 | |||
22 | #pragma once | ||
23 | |||
24 | #include_next <mcuconf.h> | ||
25 | #undef STM32_PLLM_VALUE | ||
26 | #undef STM32_PLLN_VALUE | ||
27 | #undef STM32_PLLP_VALUE | ||
28 | #undef STM32_PLLQ_VALUE | ||
29 | #undef STM32_PPRE1 | ||
30 | #undef STM32_PPRE2 | ||
31 | |||
32 | #define STM32_PLLM_VALUE 4 | ||
33 | #define STM32_PLLN_VALUE 168 | ||
34 | #define STM32_PLLP_VALUE 4 | ||
35 | #define STM32_PLLQ_VALUE 7 | ||
36 | #define STM32_PPRE1 STM32_PPRE1_DIV2 | ||
37 | #define STM32_PPRE2 STM32_PPRE2_DIV1 | ||
38 | |||
39 | #undef STM32_I2C_USE_I2C1 | ||
40 | #define STM32_I2C_USE_I2C1 TRUE | ||
diff --git a/keyboards/mode/m65hi_alpha/readme.md b/keyboards/mode/m65hi_alpha/readme.md new file mode 100644 index 000000000..6dcc32656 --- /dev/null +++ b/keyboards/mode/m65hi_alpha/readme.md | |||
@@ -0,0 +1,15 @@ | |||
1 | # Mode SixtyFive HI rev. Alpha | ||
2 | |||
3 |  | ||
4 | |||
5 | The Mode SixtyFive is a 65% high-end keyboard sold by [Mode Designs](https://shop.modedesigns.com/). The M65HI is the ISO-layout variant of its PCB. | ||
6 | |||
7 | * Keyboard Maintainer: [Gondolindrim](https://github.com/gondolindrim) | ||
8 | * Hardware Supported: proprietary PCB using STM32F401 controller | ||
9 | * Hardware Availability: revision 1 public sales are over as of june 2021. | ||
10 | |||
11 | Flashing example for this keyboard: | ||
12 | |||
13 | make mode/m65hi_alpha:default:flash | ||
14 | |||
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). | ||
diff --git a/keyboards/mode/m65hi_alpha/rules.mk b/keyboards/mode/m65hi_alpha/rules.mk new file mode 100644 index 000000000..f33a05592 --- /dev/null +++ b/keyboards/mode/m65hi_alpha/rules.mk | |||
@@ -0,0 +1,24 @@ | |||
1 | # MCU name | ||
2 | MCU = STM32F401 | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = stm32-dfu | ||
6 | |||
7 | # Build Options | ||
8 | # change yes to no to disable | ||
9 | # | ||
10 | BOOTMAGIC_ENABLE = yes # Enable Bootmagic lite | ||
11 | MOUSEKEY_ENABLE = no # Mouse keys | ||
12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
13 | CONSOLE_ENABLE = no # Console for debug | ||
14 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
16 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
17 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
18 | NKRO_ENABLE = no # USB Nkey Rollover | ||
19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
21 | AUDIO_ENABLE = no # Audio output | ||
22 | EEPROM_DRIVER = i2c | ||
23 | # Enter lower-power sleep mode when on the ChibiOS idle thread | ||
24 | OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE -DDEBUG_EEPROM_OUTPUT=TRUE | ||