diff options
author | Erovia <Erovia@users.noreply.github.com> | 2019-05-24 02:26:15 +0200 |
---|---|---|
committer | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2019-05-23 17:26:15 -0700 |
commit | f7caca51f60d8b02a7cdcc16acfaa3d794f70bed (patch) | |
tree | 0035ac5ac9c9c353f0cc09aa69f44f8d565527eb | |
parent | 701a1d94358a72d477326fb475c918823492b22d (diff) | |
download | qmk_firmware-f7caca51f60d8b02a7cdcc16acfaa3d794f70bed.tar.gz qmk_firmware-f7caca51f60d8b02a7cdcc16acfaa3d794f70bed.zip |
Add support for Dimple (#5963)
Add support for Dimple, a 40% custom keyboard designed and produced by LazyDesigners.
-rw-r--r-- | keyboards/lazydesigners/dimple/config.h | 66 | ||||
-rw-r--r-- | keyboards/lazydesigners/dimple/dimple.c | 24 | ||||
-rw-r--r-- | keyboards/lazydesigners/dimple/dimple.h | 46 | ||||
-rw-r--r-- | keyboards/lazydesigners/dimple/info.json | 56 | ||||
-rw-r--r-- | keyboards/lazydesigners/dimple/keymaps/default/keymap.c | 136 | ||||
-rw-r--r-- | keyboards/lazydesigners/dimple/keymaps/default/readme.md | 60 | ||||
-rw-r--r-- | keyboards/lazydesigners/dimple/readme.md | 17 | ||||
-rw-r--r-- | keyboards/lazydesigners/dimple/rules.mk | 58 |
8 files changed, 463 insertions, 0 deletions
diff --git a/keyboards/lazydesigners/dimple/config.h b/keyboards/lazydesigners/dimple/config.h new file mode 100644 index 000000000..0f7a8798e --- /dev/null +++ b/keyboards/lazydesigners/dimple/config.h | |||
@@ -0,0 +1,66 @@ | |||
1 | /* | ||
2 | Copyright 2019 Erovia | ||
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 "config_common.h" | ||
21 | |||
22 | /* USB Device descriptor parameter */ | ||
23 | #define VENDOR_ID 0xFEED | ||
24 | #define PRODUCT_ID 0x0040 | ||
25 | #define DEVICE_VER 0x0001 | ||
26 | #define MANUFACTURER LazyDesigners | ||
27 | #define PRODUCT Dimple | ||
28 | #define DESCRIPTION A 40% keyboard | ||
29 | |||
30 | /* key matrix size */ | ||
31 | #define MATRIX_ROWS 4 | ||
32 | #define MATRIX_COLS 12 | ||
33 | |||
34 | /* key matrix pins */ | ||
35 | #define MATRIX_ROW_PINS { D0, D1, D2, D3 } | ||
36 | #define MATRIX_COL_PINS { B0, B1, B2, B3, D4, D6, D7, B4, B5, B6, C6, C7 } | ||
37 | #define UNUSED_PINS | ||
38 | |||
39 | /* COL2ROW or ROW2COL */ | ||
40 | #define DIODE_DIRECTION COL2ROW | ||
41 | |||
42 | /* Set 0 if debouncing isn't needed */ | ||
43 | #define DEBOUNCING_DELAY 5 | ||
44 | |||
45 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
46 | #define LOCKING_SUPPORT_ENABLE | ||
47 | |||
48 | /* Locking resynchronize hack */ | ||
49 | #define LOCKING_RESYNC_ENABLE | ||
50 | |||
51 | /* RBG underglow */ | ||
52 | #define RGB_DI_PIN B7 | ||
53 | #ifdef RGB_DI_PIN | ||
54 | #define RGBLIGHT_ANIMATIONS | ||
55 | #define RGBLIGHT_SLEEP | ||
56 | #define RGBLED_NUM 50 | ||
57 | /* #define RGBLIGHT_HUE_STEP 8 */ | ||
58 | /* #define RGBLIGHT_SAT_STEP 8 */ | ||
59 | /* #define RGBLIGHT_VAL_STEP 8 */ | ||
60 | #endif | ||
61 | |||
62 | /* CapsLock LED */ | ||
63 | #define BACKLIGHT_PIN E6 | ||
64 | #ifdef BACKLIGHT_PIN | ||
65 | #define BACKLIGHT_LEVELS 6 | ||
66 | #endif | ||
diff --git a/keyboards/lazydesigners/dimple/dimple.c b/keyboards/lazydesigners/dimple/dimple.c new file mode 100644 index 000000000..5f9571651 --- /dev/null +++ b/keyboards/lazydesigners/dimple/dimple.c | |||
@@ -0,0 +1,24 @@ | |||
1 | /* Copyright 2019 Erovia | ||
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 "dimple.h" | ||
17 | |||
18 | void dimple_led_on() { | ||
19 | DDRE |= (1 << 6); PORTE &= ~(1 << 6); | ||
20 | } | ||
21 | |||
22 | void dimple_led_off() { | ||
23 | DDRE &= ~(1 << 6); PORTE &= ~(1 << 6); | ||
24 | } | ||
diff --git a/keyboards/lazydesigners/dimple/dimple.h b/keyboards/lazydesigners/dimple/dimple.h new file mode 100644 index 000000000..ba8a413ed --- /dev/null +++ b/keyboards/lazydesigners/dimple/dimple.h | |||
@@ -0,0 +1,46 @@ | |||
1 | /* Copyright 2019 Erovia | ||
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 | /* | ||
21 | * ,---------------------------------------------------------------. | ||
22 | * | | | | | | | | | | | | | | ||
23 | * |---------------------------------------------------------------| | ||
24 | * | | | | | | | | | | | | | | ||
25 | * |---------------------------------------------------------------| | ||
26 | * | | | | | | | | | | | | | ||
27 | * |---------------------------------------------------------------| | ||
28 | * | | | | | | | | | | ||
29 | * `-----------------------------------------------------' | ||
30 | */ | ||
31 | |||
32 | #define LAYOUT( \ | ||
33 | K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, \ | ||
34 | K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, \ | ||
35 | K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, \ | ||
36 | K300, K302, K303, K304, K306, K307, K308, K309 \ | ||
37 | ) { \ | ||
38 | { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011 }, \ | ||
39 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111 }, \ | ||
40 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, KC_NO }, \ | ||
41 | { K300, KC_NO, K302, K303, K304, KC_NO, K306, K307, K308, K309, KC_NO, KC_NO } \ | ||
42 | } | ||
43 | |||
44 | |||
45 | void dimple_led_on(void); | ||
46 | void dimple_led_off(void); | ||
diff --git a/keyboards/lazydesigners/dimple/info.json b/keyboards/lazydesigners/dimple/info.json new file mode 100644 index 000000000..db5137e1f --- /dev/null +++ b/keyboards/lazydesigners/dimple/info.json | |||
@@ -0,0 +1,56 @@ | |||
1 | { | ||
2 | "keyboard_name": "Dimple", | ||
3 | "url": "http://lazydesigners.cn", | ||
4 | "maintainer": "Erovia", | ||
5 | "width": 12.5, | ||
6 | "height": 4, | ||
7 | "layouts": { | ||
8 | "LAYOUT": { | ||
9 | "layout": [ | ||
10 | {"label":"Esc", "x":0, "y":0}, | ||
11 | {"label":"Q", "x":1, "y":0}, | ||
12 | {"label":"W", "x":2, "y":0}, | ||
13 | {"label":"E", "x":3, "y":0}, | ||
14 | {"label":"R", "x":4, "y":0}, | ||
15 | {"label":"T", "x":5, "y":0}, | ||
16 | {"label":"Y", "x":6, "y":0}, | ||
17 | {"label":"U", "x":7, "y":0}, | ||
18 | {"label":"I", "x":8, "y":0}, | ||
19 | {"label":"O", "x":9, "y":0}, | ||
20 | {"label":"P", "x":10, "y":0}, | ||
21 | {"label":"Back<br>Space", "x":11, "y":0, "w":1.5}, | ||
22 | {"label":"Tab", "x":0, "y":1, "w":1.25}, | ||
23 | {"label":"A", "x":1.25, "y":1}, | ||
24 | {"label":"S", "x":2.25, "y":1}, | ||
25 | {"label":"D", "x":3.25, "y":1}, | ||
26 | {"label":"F", "x":4.25, "y":1}, | ||
27 | {"label":"G", "x":5.25, "y":1}, | ||
28 | {"label":"H", "x":6.25, "y":1}, | ||
29 | {"label":"J", "x":7.25, "y":1}, | ||
30 | {"label":"K", "x":8.25, "y":1}, | ||
31 | {"label":"L", "x":9.25, "y":1}, | ||
32 | {"label":"'", "x":10.25, "y":1}, | ||
33 | {"label":"Enter", "x":11.25, "y":1, "w":1.25}, | ||
34 | {"label":"Shift", "x":0, "y":2, "w":1.75}, | ||
35 | {"label":"Z", "x":1.75, "y":2}, | ||
36 | {"label":"X", "x":2.75, "y":2}, | ||
37 | {"label":"C", "x":3.75, "y":2}, | ||
38 | {"label":"V", "x":4.75, "y":2}, | ||
39 | {"label":"B", "x":5.75, "y":2}, | ||
40 | {"label":"N", "x":6.75, "y":2}, | ||
41 | {"label":"M", "x":7.75, "y":2}, | ||
42 | {"label":",", "x":8.75, "y":2}, | ||
43 | {"label":"Up", "x":9.75, "y":2}, | ||
44 | {"label":".", "x":10.75, "y":2, "w":1.75}, | ||
45 | {"label":"Ctrl", "x":0.75, "y":3}, | ||
46 | {"label":"Gui", "x":1.75, "y":3}, | ||
47 | {"label":"Alt", "x":2.75, "y":3}, | ||
48 | {"label":"Space", "x":3.75, "y":3, "w":2.25}, | ||
49 | {"label":"Space", "x":6, "y":3, "w":2.75}, | ||
50 | {"label":"Left", "x":8.75, "y":3}, | ||
51 | {"label":"Down", "x":9.75, "y":3}, | ||
52 | {"label":"Right", "x":10.75, "y":3} | ||
53 | ] | ||
54 | } | ||
55 | } | ||
56 | } | ||
diff --git a/keyboards/lazydesigners/dimple/keymaps/default/keymap.c b/keyboards/lazydesigners/dimple/keymaps/default/keymap.c new file mode 100644 index 000000000..e5a9c8466 --- /dev/null +++ b/keyboards/lazydesigners/dimple/keymaps/default/keymap.c | |||
@@ -0,0 +1,136 @@ | |||
1 | /* Copyright 2019 Erovia | ||
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 | enum custom_layers { | ||
19 | _QWERTY, | ||
20 | _LOWER, | ||
21 | _RAISE, | ||
22 | _ADJUST | ||
23 | }; | ||
24 | |||
25 | // Act as Shift on hold and as CapsLock on tap | ||
26 | #define SFT_CPS LSFT_T(KC_CAPS) | ||
27 | // Left space on tap, LOWER on hold | ||
28 | #define SPC_LOW LT(_LOWER, KC_SPC) | ||
29 | // Left space on tap, UPPER on hold | ||
30 | #define SPC_UPR LT(_RAISE, KC_SPC) | ||
31 | |||
32 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
33 | |||
34 | /* | ||
35 | * ,---------------------------------------------------------------. | ||
36 | * |Esc | Q | W | E | R | T | Y | U | I | O | P | Bspc | | ||
37 | * |---------------------------------------------------------------| | ||
38 | * | Tab | A | S | D | F | G | H | J | K | L | ' |Enter | | ||
39 | * |---------------------------------------------------------------| | ||
40 | * | Shift | Z | X | C | V | B | N | M | , | Up | . | | ||
41 | * |---------------------------------------------------------------| | ||
42 | * |Ctrl|Gui |Alt | Spc/Lwr | Spc/Rse |Left|Down|Rght| | ||
43 | * `-----------------------------------------------------' | ||
44 | */ | ||
45 | |||
46 | [_QWERTY] = LAYOUT( | ||
47 | KC_GESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
48 | KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_QUOT, KC_ENT, | ||
49 | SFT_CPS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_UP, KC_DOT, | ||
50 | KC_LCTL, KC_LGUI, KC_LALT, SPC_LOW, SPC_UPR, KC_LEFT, KC_DOWN, KC_RGHT | ||
51 | ), | ||
52 | |||
53 | /* | ||
54 | * ,---------------------------------------------------------------. | ||
55 | * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | | | ||
56 | * |---------------------------------------------------------------| | ||
57 | * | Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | | | | ||
58 | * |---------------------------------------------------------------| | ||
59 | * | | F7 | F8 | F9 |F10 |F11 |F12 | | ; |PgUp| / | | ||
60 | * |---------------------------------------------------------------| | ||
61 | * | | | | | |Home|PgDn|End | | ||
62 | * `-----------------------------------------------------' | ||
63 | */ | ||
64 | |||
65 | [_LOWER] = LAYOUT( | ||
66 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_NO, | ||
67 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, | ||
68 | KC_NO, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NO, KC_SCLN, KC_PGUP, KC_SLSH, | ||
69 | KC_NO, KC_NO, KC_NO, KC_TRNS, KC_TRNS, KC_HOME, KC_PGDN, KC_END | ||
70 | ), | ||
71 | |||
72 | /* | ||
73 | * ,---------------------------------------------------------------. | ||
74 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | | | ||
75 | * |---------------------------------------------------------------| | ||
76 | * | Ins | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ | | ||
77 | * |---------------------------------------------------------------| | ||
78 | * | | F7 | F8 | F9 |F10 |F11 |F12 | | | | | | ||
79 | * |---------------------------------------------------------------| | ||
80 | * |VolD|Mute|VolU| | | | | | | ||
81 | * `-----------------------------------------------------' | ||
82 | */ | ||
83 | |||
84 | [_RAISE] = LAYOUT( | ||
85 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_NO, | ||
86 | KC_INS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, | ||
87 | KC_NO, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NO, KC_NO, KC_NO, KC_NO, | ||
88 | KC_VOLD, KC_MUTE, KC_VOLU, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_NO | ||
89 | ), | ||
90 | |||
91 | /* | ||
92 | * ,---------------------------------------------------------------. | ||
93 | * |EEPR|RST | | | | | | | | | | | | ||
94 | * |---------------------------------------------------------------| | ||
95 | * | | | | | | | | | | | | | | ||
96 | * |---------------------------------------------------------------| | ||
97 | * | | | | | | | | | | | | | ||
98 | * |---------------------------------------------------------------| | ||
99 | * |RGB-|RGB |RGB+| | | | | | | ||
100 | * `-----------------------------------------------------' | ||
101 | */ | ||
102 | |||
103 | [_ADJUST] = LAYOUT( | ||
104 | EEP_RST, RESET, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, | ||
105 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, | ||
106 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, | ||
107 | RGB_VAD, RGB_TOG, RGB_VAI, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO | ||
108 | ), | ||
109 | }; | ||
110 | |||
111 | void led_set_user(uint8_t usb_led) { | ||
112 | if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) { | ||
113 | dimple_led_on(); | ||
114 | } else { | ||
115 | dimple_led_off(); | ||
116 | } | ||
117 | } | ||
118 | |||
119 | uint32_t layer_state_set_user(uint32_t state) { | ||
120 | state = update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST); | ||
121 | switch (biton32(state)) { | ||
122 | case _LOWER: | ||
123 | rgblight_sethsv_noeeprom(HSV_GREEN); | ||
124 | break; | ||
125 | case _RAISE: | ||
126 | rgblight_sethsv_noeeprom(HSV_GOLD); | ||
127 | break; | ||
128 | case _ADJUST: | ||
129 | rgblight_sethsv_noeeprom(HSV_RED); | ||
130 | break; | ||
131 | default: | ||
132 | rgblight_sethsv_noeeprom(HSV_WHITE); | ||
133 | break; | ||
134 | } | ||
135 | return state; | ||
136 | } | ||
diff --git a/keyboards/lazydesigners/dimple/keymaps/default/readme.md b/keyboards/lazydesigners/dimple/keymaps/default/readme.md new file mode 100644 index 000000000..c334b6c36 --- /dev/null +++ b/keyboards/lazydesigners/dimple/keymaps/default/readme.md | |||
@@ -0,0 +1,60 @@ | |||
1 | # The default keymap for Dimple | ||
2 | |||
3 | **Features** | ||
4 | |||
5 | * Shift acts as CapsLock when tapped | ||
6 | * Left space: space on tap, Lower layer on hold | ||
7 | * Right space: space on tap, Raise layer on hold | ||
8 | * Both space: Adjust layer on hold | ||
9 | |||
10 | ## QWERTY (Normal) Layer | ||
11 | ``` | ||
12 | ,---------------------------------------------------------------. | ||
13 | |Esc | Q | W | E | R | T | Y | U | I | O | P | Bspc | | ||
14 | |---------------------------------------------------------------| | ||
15 | | Tab | A | S | D | F | G | H | J | K | L | ' |Enter | | ||
16 | |---------------------------------------------------------------| | ||
17 | | Shift | Z | X | C | V | B | N | M | , | Up | . | | ||
18 | |---------------------------------------------------------------| | ||
19 | |Ctrl|Gui |Alt | Spc/Lwr | Spc/Rse |Left|Down|Rght| | ||
20 | `-----------------------------------------------------' | ||
21 | ``` | ||
22 | |||
23 | ## Lower Layer | ||
24 | ``` | ||
25 | ,---------------------------------------------------------------. | ||
26 | | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | | | ||
27 | |---------------------------------------------------------------| | ||
28 | | Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | | | | ||
29 | |---------------------------------------------------------------| | ||
30 | | | F7 | F8 | F9 |F10 |F11 |F12 | | ; |PgUp| / | | ||
31 | |---------------------------------------------------------------| | ||
32 | | | | | | |Home|PgDn|End | | ||
33 | `-----------------------------------------------------' | ||
34 | ``` | ||
35 | |||
36 | ## Raise Layer | ||
37 | ``` | ||
38 | ,---------------------------------------------------------------. | ||
39 | | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | | | ||
40 | |---------------------------------------------------------------| | ||
41 | | Ins | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ | | ||
42 | |---------------------------------------------------------------| | ||
43 | | | F7 | F8 | F9 |F10 |F11 |F12 | | | | | | ||
44 | |---------------------------------------------------------------| | ||
45 | |VolD|Mute|VolU| | | | | | | ||
46 | `-----------------------------------------------------' | ||
47 | ``` | ||
48 | |||
49 | ## Adjust Layer | ||
50 | ``` | ||
51 | ,---------------------------------------------------------------. | ||
52 | |EEPR|RST | | | | | | | | | | | | ||
53 | |---------------------------------------------------------------| | ||
54 | | | | | | | | | | | | | | | ||
55 | |---------------------------------------------------------------| | ||
56 | | | | | | | | | | | | | | ||
57 | |---------------------------------------------------------------| | ||
58 | |RGB-|RGB |RGB+| | | | | | | ||
59 | `-----------------------------------------------------' | ||
60 | ``` | ||
diff --git a/keyboards/lazydesigners/dimple/readme.md b/keyboards/lazydesigners/dimple/readme.md new file mode 100644 index 000000000..04b4b438d --- /dev/null +++ b/keyboards/lazydesigners/dimple/readme.md | |||
@@ -0,0 +1,17 @@ | |||
1 | # Dimple | ||
2 | |||
3 |  | ||
4 | |||
5 | A 40% custom keyboard designed and produced by [LazyDesigners](http://lazydesigners.cn). | ||
6 | |||
7 | Keyboard Maintainer: [Erovia](https://github.com/Erovia) | ||
8 | Hardware Supported: Dimple | ||
9 | Hardware Availability: Check for GBs on [Geekhack](https://geekhack.org) and on [LazyDesigner's homepage.](http://lazydesigners.cn) | ||
10 | |||
11 | Make example for this keyboard (after setting up your build environment): | ||
12 | |||
13 | make lazydesigners/dimple:default:dfu | ||
14 | |||
15 | To enter the bootloader, either short the pins on the PCB or the RESET button on the FN layer. | ||
16 | |||
17 | 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/lazydesigners/dimple/rules.mk b/keyboards/lazydesigners/dimple/rules.mk new file mode 100644 index 000000000..a818e871c --- /dev/null +++ b/keyboards/lazydesigners/dimple/rules.mk | |||
@@ -0,0 +1,58 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u4 | ||
3 | |||
4 | # Processor frequency. | ||
5 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
6 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
7 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
8 | # automatically to create a 32-bit value in your source code. | ||
9 | # | ||
10 | # This will be an integer division of F_USB below, as it is sourced by | ||
11 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
12 | # does not *change* the processor frequency - it should merely be updated to | ||
13 | # reflect the processor speed set externally so that the code can use accurate | ||
14 | # software delays. | ||
15 | F_CPU = 16000000 | ||
16 | |||
17 | |||
18 | # | ||
19 | # LUFA specific | ||
20 | # | ||
21 | # Target architecture (see library "Board Types" documentation). | ||
22 | ARCH = AVR8 | ||
23 | |||
24 | # Input clock frequency. | ||
25 | # This will define a symbol, F_USB, in all source code files equal to the | ||
26 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
27 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
28 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
29 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
30 | # at the end, this will be done automatically to create a 32-bit value in your | ||
31 | # source code. | ||
32 | # | ||
33 | # If no clock division is performed on the input clock inside the AVR (via the | ||
34 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
35 | F_USB = $(F_CPU) | ||
36 | |||
37 | # Interrupt driven control endpoint task(+60) | ||
38 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
39 | |||
40 | |||
41 | # Bootloader selection | ||
42 | # Teensy halfkay | ||
43 | # Pro Micro caterina | ||
44 | # Atmel DFU atmel-dfu | ||
45 | # LUFA DFU lufa-dfu | ||
46 | # QMK DFU qmk-dfu | ||
47 | # atmega32a bootloadHID | ||
48 | BOOTLOADER = atmel-dfu | ||
49 | |||
50 | # Build Options | ||
51 | # change yes to no to disable | ||
52 | # | ||
53 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000) | ||
54 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
55 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
56 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
57 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality on B7 by default | ||
58 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||