aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/mechstudio/dawn/config.h48
-rw-r--r--keyboards/mechstudio/dawn/dawn.c16
-rw-r--r--keyboards/mechstudio/dawn/dawn.h36
-rw-r--r--keyboards/mechstudio/dawn/info.json99
-rw-r--r--keyboards/mechstudio/dawn/keymaps/default/keymap.c38
-rw-r--r--keyboards/mechstudio/dawn/keymaps/via/keymap.c52
-rw-r--r--keyboards/mechstudio/dawn/keymaps/via/rules.mk1
-rw-r--r--keyboards/mechstudio/dawn/readme.md20
-rw-r--r--keyboards/mechstudio/dawn/rules.mk22
9 files changed, 332 insertions, 0 deletions
diff --git a/keyboards/mechstudio/dawn/config.h b/keyboards/mechstudio/dawn/config.h
new file mode 100644
index 000000000..ebfc44ee7
--- /dev/null
+++ b/keyboards/mechstudio/dawn/config.h
@@ -0,0 +1,48 @@
1/* Copyright 2020 David Dejaeghere
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 "config_common.h"
20
21/* USB Device descriptor parameter */
22#define VENDOR_ID 0x4D53
23#define PRODUCT_ID 0x0004
24#define DEVICE_VER 0x0004
25#define MANUFACTURER Mech Studio
26#define PRODUCT Dawn
27
28/* key matrix size */
29#define MATRIX_ROWS 6
30#define MATRIX_COLS 15
31
32// ROWS: Top to bottom, COLS: Left to right
33
34#define MATRIX_ROW_PINS {B1,B2,B3,D1,D6,D4}
35#define MATRIX_COL_PINS {F0,F1,F4,F5,F6,F7,C7,C6,B6,B5,B4,D7,D5,D3,D2}
36#define UNUSED_PINS {B0,B7,D0,E6}
37
38/* COL2ROW, ROW2COL*/
39#define DIODE_DIRECTION COL2ROW
40
41/* set 0 if debouncing is not needed */
42#define DEBOUNCE 5
43
44/* define if matrix has ghost (lacks anti-ghosting diodes) */
45//#define MATRIX_HAS_GHOST
46
47#define QMK_ESC_OUTPUT F0 // usually COL
48#define QMK_ESC_INPUT B1 // usually ROW
diff --git a/keyboards/mechstudio/dawn/dawn.c b/keyboards/mechstudio/dawn/dawn.c
new file mode 100644
index 000000000..43edc785a
--- /dev/null
+++ b/keyboards/mechstudio/dawn/dawn.c
@@ -0,0 +1,16 @@
1/* Copyright 2020 David Dejaeghere
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#include "dawn.h"
diff --git a/keyboards/mechstudio/dawn/dawn.h b/keyboards/mechstudio/dawn/dawn.h
new file mode 100644
index 000000000..d59f10c56
--- /dev/null
+++ b/keyboards/mechstudio/dawn/dawn.h
@@ -0,0 +1,36 @@
1/* Copyright 2020 David "NecromanX" Dejaeghere <david.dejaeghere@tarpit.be>
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#pragma once
17
18#include "quantum.h"
19
20#define ___ KC_NO
21
22#define LAYOUT( \
23 K00, K01, K02, K03, K04, K05, K06, K07, K08, K0A, K0B, K0C, K0D, K0E, \
24 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, \
25 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E, \
26 K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, \
27 K40, K41, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B, K4C, K4D, K4E, \
28 K50, K51, K52, K56, K5A, K5B, K5C, K5D, K5E \
29) { \
30 { K00, K01, K02, K03, K04, K05, K06, K07, K08, ___, K0A, K0B, K0C, K0D, K0E}, \
31 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E}, \
32 { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E}, \
33 { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E}, \
34 { K40, K41, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B, K4C, K4D, K4E}, \
35 { K50, K51, K52, ___, ___, ___, K56, ___, ___, ___, K5A, K5B, K5C, K5D, K5E} \
36}
diff --git a/keyboards/mechstudio/dawn/info.json b/keyboards/mechstudio/dawn/info.json
new file mode 100644
index 000000000..4914806a8
--- /dev/null
+++ b/keyboards/mechstudio/dawn/info.json
@@ -0,0 +1,99 @@
1{
2 "keyboard_name": "Dawn",
3 "url": "https://mech.studio/projects/dawn/",
4 "maintainer": "dejaeghered",
5 "width": 15,
6 "height": 6,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [
10 {"label":"Esc", "x":0, "y":0},
11 {"label":"F1", "x":1.5, "y":0},
12 {"label":"F2", "x":2.5, "y":0},
13 {"label":"F3", "x":3.5, "y":0},
14 {"label":"F4", "x":4.5, "y":0},
15 {"label":"F5", "x":6, "y":0},
16 {"label":"F6", "x":7, "y":0},
17 {"label":"F7", "x":8, "y":0},
18 {"label":"F8", "x":9, "y":0},
19 {"label":"F9", "x":10.5, "y":0},
20 {"label":"F10", "x":11.5, "y":0},
21 {"label":"F11", "x":12.5, "y":0},
22 {"label":"F12", "x":13.5, "y":0},
23 {"label":"Home", "x":15, "y":0},
24
25 {"label":"`", "x":0, "y":1.25},
26 {"label":"1", "x":1, "y":1.25},
27 {"label":"2", "x":2, "y":1.25},
28 {"label":"3", "x":3, "y":1.25},
29 {"label":"4", "x":4, "y":1.25},
30 {"label":"5", "x":5, "y":1.25},
31 {"label":"6", "x":6, "y":1.25},
32 {"label":"7", "x":7, "y":1.25},
33 {"label":"8", "x":8, "y":1.25},
34 {"label":"9", "x":9, "y":1.25},
35 {"label":"0", "x":10, "y":1.25},
36 {"label":"-", "x":11, "y":1.25},
37 {"label":"=", "x":12, "y":1.25},
38 {"label":"\\", "x":13, "y":1.25},
39 {"label":"Backspace", "x":13, "y":1.25},
40 {"label":"Page Up", "x":15, "y":1.25},
41
42 {"label":"Tab", "x":0, "y":2.25, "w":1.5},
43 {"label":"Q", "x":1.5, "y":2.25},
44 {"label":"W", "x":2.5, "y":2.25},
45 {"label":"E", "x":3.5, "y":2.25},
46 {"label":"R", "x":4.5, "y":2.25},
47 {"label":"T", "x":5.5, "y":2.25},
48 {"label":"Y", "x":6.5, "y":2.25},
49 {"label":"U", "x":7.5, "y":2.25},
50 {"label":"I", "x":8.5, "y":2.25},
51 {"label":"O", "x":9.5, "y":2.25},
52 {"label":"P", "x":10.5, "y":2.25},
53 {"label":"[", "x":11.5, "y":2.25},
54 {"label":"]", "x":12.5, "y":2.25},
55 {"label":"\\", "x":13.5, "y":2.25, "w":1.5},
56 {"label":"Page Down", "x":15, "y":2.25},
57 {"label":"Caps Lock", "x":0, "y":3.25, "w":1.75},
58 {"label":"A", "x":1.75, "y":3.25},
59 {"label":"S", "x":2.75, "y":3.25},
60 {"label":"D", "x":3.75, "y":3.25},
61 {"label":"F", "x":4.75, "y":3.25},
62 {"label":"G", "x":5.75, "y":3.25},
63 {"label":"H", "x":6.75, "y":3.25},
64 {"label":"J", "x":7.75, "y":3.25},
65 {"label":"K", "x":8.75, "y":3.25},
66 {"label":"L", "x":9.75, "y":3.25},
67 {"label":";", "x":10.75, "y":3.25},
68 {"label":"'", "x":11.75, "y":3.25},
69 {"label":"Enter", "x":12.75, "y":3.25, "w":2.25},
70 {"label":"End", "x":15, "y":3.25},
71
72 {"label":"Left Shift", "x":0, "y":4.25, "w":1.25},
73 {"label":"\\", "x":0, "y":4.25},
74 {"label":"Z", "x":2.25, "y":4.25},
75 {"label":"X", "x":3.25, "y":4.25},
76 {"label":"C", "x":4.25, "y":4.25},
77 {"label":"V", "x":5.25, "y":4.25},
78 {"label":"B", "x":6.25, "y":4.25},
79 {"label":"N", "x":7.25, "y":4.25},
80 {"label":"M", "x":8.25, "y":4.25},
81 {"label":"<", "x":9.25, "y":4.25},
82 {"label":">", "x":10.25, "y":4.25},
83 {"label":"?", "x":11.25, "y":4.25},
84 {"label":"Right Shift", "x":12.25, "y":4.25, "w":1.75},
85 {"label":"Up", "x":14, "y":4.25},
86 {"label":"Del", "x":15, "y":4.25},
87
88 {"label":"Left Ctrl", "x":0, "y":5.25, "w":1.5},
89 {"label":"Win", "x":1.5, "y":5.25},
90 {"label":"Left Alt", "x":2.5, "y":5.25, "w":1.25},
91 {"label":"Space", "x":3.75, "y":5.25, "w":6.25},
92 {"label":"Right Alt", "x":10, "y":5.25, "w":1.25},
93 {"label":"Right Ctrl", "x":11.25, "y":5.25, "w":1.25},
94 {"label":"Left", "x":13, "y":5.25},
95 {"label":"Down", "x":14, "y":5.25},
96 {"label":"Right", "x":15, "y":5.25}]
97 }
98 }
99} \ No newline at end of file
diff --git a/keyboards/mechstudio/dawn/keymaps/default/keymap.c b/keyboards/mechstudio/dawn/keymaps/default/keymap.c
new file mode 100644
index 000000000..e1cebe235
--- /dev/null
+++ b/keyboards/mechstudio/dawn/keymaps/default/keymap.c
@@ -0,0 +1,38 @@
1/* Copyright 2020 David Dejaeghere
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#include QMK_KEYBOARD_H
17
18// Defines names for use in layer keycodes and the keymap
19
20
21const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
22 [0] = LAYOUT(
23 KC_ESC , 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_HOME ,
24 KC_GRV , 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_PGUP,
25 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_PGDN,
26 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_BSLS, KC_ENT , KC_END,
27 KC_LSFT, 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 , MO(1) ,
28 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC , KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
29
30 [1] = LAYOUT(
31 RESET , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ ,
32 _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ ,
33 _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ ,
34 _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ ,
35 _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ ,
36 _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______),
37};
38
diff --git a/keyboards/mechstudio/dawn/keymaps/via/keymap.c b/keyboards/mechstudio/dawn/keymaps/via/keymap.c
new file mode 100644
index 000000000..3db791edd
--- /dev/null
+++ b/keyboards/mechstudio/dawn/keymaps/via/keymap.c
@@ -0,0 +1,52 @@
1/* Copyright 2020 David Dejaeghere
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#include QMK_KEYBOARD_H
17
18// Defines names for use in layer keycodes and the keymap
19
20const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
21 [0] = LAYOUT(
22 KC_ESC , 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_HOME ,
23 KC_GRV , 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_PGUP,
24 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_PGDN,
25 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_BSLS, KC_ENT , KC_END,
26 KC_LSFT, 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 , MO(1) ,
27 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC , KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
28
29 [1] = LAYOUT(
30 RESET , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ ,
31 _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ ,
32 _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ ,
33 _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ ,
34 _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ ,
35 _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______),
36
37 [2] = LAYOUT(
38 _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ ,
39 _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ ,
40 _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ ,
41 _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ ,
42 _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ ,
43 _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______),
44
45 [3] = LAYOUT(
46 _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ ,
47 _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ ,
48 _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ ,
49 _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ ,
50 _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ ,
51 _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______),
52}; \ No newline at end of file
diff --git a/keyboards/mechstudio/dawn/keymaps/via/rules.mk b/keyboards/mechstudio/dawn/keymaps/via/rules.mk
new file mode 100644
index 000000000..1e5b99807
--- /dev/null
+++ b/keyboards/mechstudio/dawn/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes
diff --git a/keyboards/mechstudio/dawn/readme.md b/keyboards/mechstudio/dawn/readme.md
new file mode 100644
index 000000000..011184e40
--- /dev/null
+++ b/keyboards/mechstudio/dawn/readme.md
@@ -0,0 +1,20 @@
1# Dawn
2
3![Dawn](https://i.imgur.com/OD1OTU4h.jpg)
4
5## Support
6* Keyboard Maintainer: [NecromanX](https://github.com/dejaeghered)
7* Hardware Supported: Dawn
8* Hardware Availability: [mech.studio](https://mech.studio/projects/dawn/)
9
10## Features
11- QMK Firmware
12- USB-C Connector
13- no in switch LEDs
14
15## Build
16Make example for this keyboard (after setting up your build environment):
17
18 make mechstudio/dawn:default
19
20See 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/mechstudio/dawn/rules.mk b/keyboards/mechstudio/dawn/rules.mk
new file mode 100644
index 000000000..d9cc76829
--- /dev/null
+++ b/keyboards/mechstudio/dawn/rules.mk
@@ -0,0 +1,22 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = qmk-dfu
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16SLEEP_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
18NKRO_ENABLE = no # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output \ No newline at end of file