diff options
author | chent7 <34766434+chent7@users.noreply.github.com> | 2020-11-10 13:06:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-09 21:06:55 -0800 |
commit | 8af767cb1d36222a4d0ec8286d346d4896e923d4 (patch) | |
tree | 313a7eaff505374b19c1039361ddbd26e2cd45fc | |
parent | a9f65b760a49744b13d822ab359876a52779bd9e (diff) | |
download | qmk_firmware-8af767cb1d36222a4d0ec8286d346d4896e923d4.tar.gz qmk_firmware-8af767cb1d36222a4d0ec8286d346d4896e923d4.zip |
[Keyboard] Crazy Keyboard 68 (#10693)
* Entry and readme for crazy keyboard 68
* Defined layout in keyboard.h
* Basic setup done
* Working config, keymaps, rgb confirmed. Caps lock led untested
* Update readme.md
Image links
* Update config.h
* Update crazy_keyboard_68.c
#include "quantum.h"
* Match PR
* Update keyboards/crazy_keyboard_68/crazy_keyboard_68.c
* Update keyboards/crazy_keyboard_68/keymaps/default/keymap.c
* Update keyboards/crazy_keyboard_68/keymaps/default/keymap.c
* Update keyboards/crazy_keyboard_68/info.json
* Update keyboards/crazy_keyboard_68/crazy_keyboard_68.h
* Update keyboards/crazy_keyboard_68/rules.mk
* Update keyboards/crazy_keyboard_68/rules.mk
* Update keyboards/crazy_keyboard_68/config.h
-rw-r--r-- | keyboards/crazy_keyboard_68/config.h | 146 | ||||
-rw-r--r-- | keyboards/crazy_keyboard_68/crazy_keyboard_68.c | 36 | ||||
-rw-r--r-- | keyboards/crazy_keyboard_68/crazy_keyboard_68.h | 57 | ||||
-rw-r--r-- | keyboards/crazy_keyboard_68/info.json | 81 | ||||
-rw-r--r-- | keyboards/crazy_keyboard_68/keymaps/default/keymap.c | 66 | ||||
-rw-r--r-- | keyboards/crazy_keyboard_68/keymaps/default/readme.md | 4 | ||||
-rw-r--r-- | keyboards/crazy_keyboard_68/readme.md | 25 | ||||
-rw-r--r-- | keyboards/crazy_keyboard_68/rules.mk | 24 |
8 files changed, 439 insertions, 0 deletions
diff --git a/keyboards/crazy_keyboard_68/config.h b/keyboards/crazy_keyboard_68/config.h new file mode 100644 index 000000000..2558e7579 --- /dev/null +++ b/keyboards/crazy_keyboard_68/config.h | |||
@@ -0,0 +1,146 @@ | |||
1 | /* | ||
2 | Copyright 2020 chent7 | ||
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 // by default from pcb | ||
24 | #define PRODUCT_ID 0x13DE | ||
25 | #define DEVICE_VER 0x0001 | ||
26 | #define MANUFACTURER chent7 | ||
27 | #define PRODUCT Crazy Keyboard 68 | ||
28 | |||
29 | /* key matrix size */ | ||
30 | #define MATRIX_ROWS 5 | ||
31 | #define MATRIX_COLS 15 | ||
32 | |||
33 | /* | ||
34 | * Keyboard Matrix Assignments | ||
35 | * | ||
36 | * Change this to how you wired your keyboard | ||
37 | * COLS: AVR pins used for columns, left to right | ||
38 | * ROWS: AVR pins used for rows, top to bottom | ||
39 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
40 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
41 | * | ||
42 | */ | ||
43 | #define MATRIX_ROW_PINS { D0, D1, D2, D3, D5 } | ||
44 | #define MATRIX_COL_PINS { F0, F1, E6, C7, C6, B6, D4, B1, B7, B5, B4, D7, D6, B3, F4 } | ||
45 | #define UNUSED_PINS | ||
46 | |||
47 | /* COL2ROW, ROW2COL */ | ||
48 | #define DIODE_DIRECTION COL2ROW | ||
49 | |||
50 | /* | ||
51 | * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN. | ||
52 | */ | ||
53 | //#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 | ||
54 | |||
55 | //#define BACKLIGHT_PIN B7 | ||
56 | //#define BACKLIGHT_LEVELS 3 | ||
57 | //#define BACKLIGHT_BREATHING | ||
58 | |||
59 | #define RGB_DI_PIN F6 | ||
60 | #ifdef RGB_DI_PIN | ||
61 | # define RGBLED_NUM 84 | ||
62 | # define RGBLIGHT_HUE_STEP 8 | ||
63 | # define RGBLIGHT_SAT_STEP 8 | ||
64 | # define RGBLIGHT_VAL_STEP 8 | ||
65 | # define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
66 | # define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
67 | /*== all animations enable ==*/ | ||
68 | # define RGBLIGHT_ANIMATIONS | ||
69 | /*== or choose animations ==*/ | ||
70 | //# define RGBLIGHT_EFFECT_BREATHING | ||
71 | //# define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
72 | //# define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
73 | //# define RGBLIGHT_EFFECT_SNAKE | ||
74 | //# define RGBLIGHT_EFFECT_KNIGHT | ||
75 | //# define RGBLIGHT_EFFECT_CHRISTMAS | ||
76 | //# define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
77 | //# define RGBLIGHT_EFFECT_RGB_TEST | ||
78 | //# define RGBLIGHT_EFFECT_ALTERNATING | ||
79 | /*== customize breathing effect ==*/ | ||
80 | /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
81 | # define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
82 | /*==== use exp() and sin() ====*/ | ||
83 | //# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
84 | //# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
85 | #endif | ||
86 | |||
87 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
88 | #define DEBOUNCE 5 | ||
89 | |||
90 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
91 | //#define MATRIX_HAS_GHOST | ||
92 | |||
93 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
94 | #define LOCKING_SUPPORT_ENABLE | ||
95 | /* Locking resynchronize hack */ | ||
96 | #define LOCKING_RESYNC_ENABLE | ||
97 | |||
98 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
99 | * This is useful for the Windows task manager shortcut (ctrl+shift+esc). | ||
100 | */ | ||
101 | //#define GRAVE_ESC_CTRL_OVERRIDE | ||
102 | |||
103 | /* | ||
104 | * Force NKRO | ||
105 | * | ||
106 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
107 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
108 | * makefile for this to work.) | ||
109 | * | ||
110 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
111 | * until the next keyboard reset. | ||
112 | * | ||
113 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
114 | * fully operational during normal computer usage. | ||
115 | * | ||
116 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
117 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
118 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
119 | * power-up. | ||
120 | * | ||
121 | */ | ||
122 | //#define FORCE_NKRO | ||
123 | |||
124 | /* | ||
125 | * Feature disable options | ||
126 | * These options are also useful to firmware size reduction. | ||
127 | */ | ||
128 | |||
129 | /* disable debug print */ | ||
130 | //#define NO_DEBUG | ||
131 | |||
132 | /* disable print */ | ||
133 | //#define NO_PRINT | ||
134 | |||
135 | /* disable action features */ | ||
136 | //#define NO_ACTION_LAYER | ||
137 | //#define NO_ACTION_TAPPING | ||
138 | //#define NO_ACTION_ONESHOT | ||
139 | |||
140 | /* disable these deprecated features by default */ | ||
141 | #define NO_ACTION_MACRO | ||
142 | #define NO_ACTION_FUNCTION | ||
143 | |||
144 | /* Bootmagic Lite key configuration */ | ||
145 | //#define BOOTMAGIC_LITE_ROW 0 | ||
146 | //#define BOOTMAGIC_LITE_COLUMN 0 | ||
diff --git a/keyboards/crazy_keyboard_68/crazy_keyboard_68.c b/keyboards/crazy_keyboard_68/crazy_keyboard_68.c new file mode 100644 index 000000000..f4f8515b7 --- /dev/null +++ b/keyboards/crazy_keyboard_68/crazy_keyboard_68.c | |||
@@ -0,0 +1,36 @@ | |||
1 | /* Copyright 2020 chent7 | ||
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 | #include "crazy_keyboard_68.h" | ||
18 | |||
19 | void matrix_init_kb(void) { | ||
20 | led_init_ports(); | ||
21 | |||
22 | matrix_init_user(); | ||
23 | } | ||
24 | |||
25 | void led_init_ports(void) { | ||
26 | // Caps lock pin | ||
27 | setPinOutput(B0); | ||
28 | writePinHigh(B0); | ||
29 | } | ||
30 | |||
31 | bool led_update_kb(led_t led_state) { | ||
32 | if(led_update_user(led_state)) { | ||
33 | writePin(B0, !led_state.caps_lock); | ||
34 | } | ||
35 | return true; | ||
36 | } | ||
diff --git a/keyboards/crazy_keyboard_68/crazy_keyboard_68.h b/keyboards/crazy_keyboard_68/crazy_keyboard_68.h new file mode 100644 index 000000000..c253824be --- /dev/null +++ b/keyboards/crazy_keyboard_68/crazy_keyboard_68.h | |||
@@ -0,0 +1,57 @@ | |||
1 | /* Copyright 2020 chent7 | ||
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 "quantum.h" | ||
20 | |||
21 | #define XXX KC_NO | ||
22 | |||
23 | /* Crazy Keyboard 68 (ANSI) layout | ||
24 | * ,----------------------------------------------------------------. | ||
25 | * | 00 |01| 02| 03| 04| 05| 06| 07| 08| 09| 0a| 0b| 0c| 0d | 0e | | ||
26 | * |----------------------------------------------------------------| | ||
27 | * | 10 | 11| 12| 13| 14| 15| 16| 17| 18| 19| 1a| 1b| 1c| 1d | 1e | | ||
28 | * |----------------------------------------------------------------| | ||
29 | * | 20 | 22| 23| 24| 25| 26| 27| 28| 29| 2a| 2b| 2c| 2d | 2e | | ||
30 | * |----------------------------------------------------------------| | ||
31 | * | 31 | 32| 33| 34| 35| 36| 37| 38| 39| 3a| 3b| 3c| 3d| 3e | | ||
32 | * |----------------------------------------------------------------| | ||
33 | * | 40 | 41 | 43 | 46 | 49| 4a| 4b| 4c| 4d| 4e | | ||
34 | * `----------------------------------------------------------------' | ||
35 | * | ||
36 | * This is a shortcut to help you visually see your layout. | ||
37 | * | ||
38 | * The first section contains all of the arguments representing the physical | ||
39 | * layout of the board and position of the keys. | ||
40 | * | ||
41 | * The second converts the arguments into a two-dimensional array which | ||
42 | * represents the switch matrix. | ||
43 | */ | ||
44 | #define LAYOUT_65_ansi( \ | ||
45 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k0e, \ | ||
46 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d, k1e, \ | ||
47 | k20, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2d, k2e, \ | ||
48 | k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d, k3e, \ | ||
49 | k40, k41, k43, k46, k49, k4a, k4b, k4c, k4d, k4e \ | ||
50 | ) \ | ||
51 | { \ | ||
52 | {k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k0e}, \ | ||
53 | {k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d, k1e}, \ | ||
54 | {k20, XXX, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2d, k2e}, \ | ||
55 | {XXX, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d, k3e}, \ | ||
56 | {k40, k41, XXX, k43, XXX, XXX, k46, XXX, XXX, k49, k4a, k4b, k4c, k4d, k4e} \ | ||
57 | } | ||
diff --git a/keyboards/crazy_keyboard_68/info.json b/keyboards/crazy_keyboard_68/info.json new file mode 100644 index 000000000..fa9546a1b --- /dev/null +++ b/keyboards/crazy_keyboard_68/info.json | |||
@@ -0,0 +1,81 @@ | |||
1 | { | ||
2 | "keyboard_name": "crazy_keyboard_68", | ||
3 | "url": "", | ||
4 | "maintainer": "chent7", | ||
5 | "width": 15, | ||
6 | "height": 5, | ||
7 | "layouts": { | ||
8 | "LAYOUT_65_ansi": { | ||
9 | "layout": [ | ||
10 | {"label":"k00", "x":0, "y":0}, | ||
11 | {"label":"k01", "x":1, "y":0}, | ||
12 | {"label":"k02", "x":2, "y":0}, | ||
13 | {"label":"k03", "x":3, "y":0}, | ||
14 | {"label":"k04", "x":4, "y":0}, | ||
15 | {"label":"k05", "x":5, "y":0}, | ||
16 | {"label":"k06", "x":6, "y":0}, | ||
17 | {"label":"k07", "x":7, "y":0}, | ||
18 | {"label":"k08", "x":8, "y":0}, | ||
19 | {"label":"k09", "x":9, "y":0}, | ||
20 | {"label":"k0a", "x":10, "y":0}, | ||
21 | {"label":"k0b", "x":11, "y":0}, | ||
22 | {"label":"k0c", "x":12, "y":0}, | ||
23 | {"label":"k0d", "x":13, "y":0, "w":2}, | ||
24 | {"label":"k0e", "x":15, "y":0}, | ||
25 | {"label":"k10", "x":0, "y":1, "w":1.5}, | ||
26 | {"label":"k11", "x":1.5, "y":1}, | ||
27 | {"label":"k12", "x":2.5, "y":1}, | ||
28 | {"label":"k13", "x":3.5, "y":1}, | ||
29 | {"label":"k14", "x":4.5, "y":1}, | ||
30 | {"label":"k15", "x":5.5, "y":1}, | ||
31 | {"label":"k16", "x":6.5, "y":1}, | ||
32 | {"label":"k17", "x":7.5, "y":1}, | ||
33 | {"label":"k18", "x":8.5, "y":1}, | ||
34 | {"label":"k19", "x":9.5, "y":1}, | ||
35 | {"label":"k1a", "x":10.5, "y":1}, | ||
36 | {"label":"k1b", "x":11.5, "y":1}, | ||
37 | {"label":"k1c", "x":12.5, "y":1}, | ||
38 | {"label":"k1d", "x":13.5, "y":1, "w":1.5}, | ||
39 | {"label":"k1e", "x":15, "y":1}, | ||
40 | {"label":"k20", "x":0, "y":2, "w":1.75}, | ||
41 | {"label":"k22", "x":1.75, "y":2}, | ||
42 | {"label":"k23", "x":2.75, "y":2}, | ||
43 | {"label":"k24", "x":3.75, "y":2}, | ||
44 | {"label":"k25", "x":4.75, "y":2}, | ||
45 | {"label":"k26", "x":5.75, "y":2}, | ||
46 | {"label":"k27", "x":6.75, "y":2}, | ||
47 | {"label":"k28", "x":7.75, "y":2}, | ||
48 | {"label":"k29", "x":8.75, "y":2}, | ||
49 | {"label":"k2a", "x":9.75, "y":2}, | ||
50 | {"label":"k2b", "x":10.75, "y":2}, | ||
51 | {"label":"k2c", "x":11.75, "y":2}, | ||
52 | {"label":"k2d", "x":12.75, "y":2, "w":2.25}, | ||
53 | {"label":"k2e", "x":15, "y":2}, | ||
54 | {"label":"k31", "x":0, "y":3, "w":2.25}, | ||
55 | {"label":"k32", "x":2.25, "y":3}, | ||
56 | {"label":"k33", "x":3.25, "y":3}, | ||
57 | {"label":"k34", "x":4.25, "y":3}, | ||
58 | {"label":"k35", "x":5.25, "y":3}, | ||
59 | {"label":"k36", "x":6.25, "y":3}, | ||
60 | {"label":"k37", "x":7.25, "y":3}, | ||
61 | {"label":"k38", "x":8.25, "y":3}, | ||
62 | {"label":"k39", "x":9.25, "y":3}, | ||
63 | {"label":"k3a", "x":10.25, "y":3}, | ||
64 | {"label":"k3b", "x":11.25, "y":3}, | ||
65 | {"label":"k3c", "x":12.25, "y":3, "w":1.75}, | ||
66 | {"label":"k3d", "x":14, "y":3}, | ||
67 | {"label":"k3e", "x":15, "y":3}, | ||
68 | {"label":"k40", "x":0, "y":4, "w":1.25}, | ||
69 | {"label":"k41", "x":1.25, "y":4, "w":1.25}, | ||
70 | {"label":"k43", "x":2.5, "y":4, "w":1.25}, | ||
71 | {"label":"k46", "x":3.75, "y":4, "w":6.25}, | ||
72 | {"label":"k49", "x":10, "y":4}, | ||
73 | {"label":"k4a", "x":11, "y":4}, | ||
74 | {"label":"k4b", "x":12, "y":4}, | ||
75 | {"label":"k4c", "x":13, "y":4}, | ||
76 | {"label":"k4d", "x":14, "y":4}, | ||
77 | {"label":"k4e", "x":15, "y":4} | ||
78 | ] | ||
79 | } | ||
80 | } | ||
81 | } | ||
diff --git a/keyboards/crazy_keyboard_68/keymaps/default/keymap.c b/keyboards/crazy_keyboard_68/keymaps/default/keymap.c new file mode 100644 index 000000000..c41916fcd --- /dev/null +++ b/keyboards/crazy_keyboard_68/keymaps/default/keymap.c | |||
@@ -0,0 +1,66 @@ | |||
1 | /* Copyright 2020 chent7 | ||
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 | enum layer_names { | ||
20 | _BASE, | ||
21 | _FN | ||
22 | }; | ||
23 | |||
24 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
25 | /* Keymap _BASE: (Base Layer) Default Layer | ||
26 | * ,----------------------------------------------------------------. | ||
27 | * |Esc | 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backsp |~ ` | | ||
28 | * |----------------------------------------------------------------| | ||
29 | * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \ |PgUp| | ||
30 | * |----------------------------------------------------------------| | ||
31 | * |CAPS | A| S| D| F| G| H| J| K| L| ;| '|Return |PgDn| | ||
32 | * |----------------------------------------------------------------| | ||
33 | * |Shift | Z| X| C| V| B| N| M| ,| .| /|Shift | Up|Del | | ||
34 | * |----------------------------------------------------------------| | ||
35 | * |Ctrl|Win |Alt | Space |Alt|Fn |Ctrl|Lef|Dow|Rig | | ||
36 | * `----------------------------------------------------------------' | ||
37 | */ | ||
38 | [_BASE] = LAYOUT_65_ansi( | ||
39 | 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_GRV, | ||
40 | 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, | ||
41 | 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, | ||
42 | 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_DEL, | ||
43 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(_FN), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
44 | ), | ||
45 | |||
46 | /* Keymap _BASE: (Base Layer) Default Layer | ||
47 | * ,----------------------------------------------------------------. | ||
48 | * | |F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12| |Home| | ||
49 | * |----------------------------------------------------------------| | ||
50 | * | | | | | | | | | | |PSC|SLC|Pau| |End | | ||
51 | * |----------------------------------------------------------------| | ||
52 | * | |TOG|M_P|M_B|M_R|MSW|MSN|M_K|M_X|M_G|M_T| | |Ins | | ||
53 | * |----------------------------------------------------------------| | ||
54 | * | |MOD|HUI|HUD|SAI|SAD|VAI|VAD| | | | | | | | ||
55 | * |----------------------------------------------------------------| | ||
56 | * |Reset| | | | | | | | | | | ||
57 | * `----------------------------------------------------------------' | ||
58 | */ | ||
59 | [_FN] = LAYOUT_65_ansi( | ||
60 | _______, 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, | ||
61 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_PSCR, KC_SLCK, KC_PAUS, _______, KC_END, | ||
62 | _______, RGB_TOG, RGB_M_P, RGB_M_B, RGB_M_R,RGB_M_SW,RGB_M_SN, RGB_M_K, RGB_M_X, RGB_M_G, RGB_M_T, _______, _______, KC_INS, | ||
63 | _______, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, _______, _______, | ||
64 | RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
65 | ) | ||
66 | }; | ||
diff --git a/keyboards/crazy_keyboard_68/keymaps/default/readme.md b/keyboards/crazy_keyboard_68/keymaps/default/readme.md new file mode 100644 index 000000000..21c72142f --- /dev/null +++ b/keyboards/crazy_keyboard_68/keymaps/default/readme.md | |||
@@ -0,0 +1,4 @@ | |||
1 | # The default keymap for crazy_keyboard_68 | ||
2 | ``` | ||
3 | make crazy_keyboard_68:default | ||
4 | ``` | ||
diff --git a/keyboards/crazy_keyboard_68/readme.md b/keyboards/crazy_keyboard_68/readme.md new file mode 100644 index 000000000..3afa9cc60 --- /dev/null +++ b/keyboards/crazy_keyboard_68/readme.md | |||
@@ -0,0 +1,25 @@ | |||
1 | # Crazy Keyboard 68 | ||
2 | |||
3 | \ | ||
4 |  | ||
5 | |||
6 | Obscure 68% hotswap PCB sold on taobao, powered by ATM32U4. RGB key lighting and underglow requires self-soldering. | ||
7 | |||
8 | * Keyboard Maintainer: [chent7](https://github.com/chent7) | ||
9 | * Hardware Supported: crazy keyboard 68 Standard | ||
10 | * Hardware Availability: [taobao.com](https://item.taobao.com/item.htm?spm=a1z09.2.0.0.19422e8dJUzj8d&id=605218560507) | ||
11 | |||
12 | Make example for this keyboard (after setting up your build environment): | ||
13 | |||
14 | make crazy_keyboard_68:default | ||
15 | |||
16 | Flashing example for this keyboard: | ||
17 | |||
18 | make crazy_keyboard_68:default:flash | ||
19 | |||
20 | ## Layouts | ||
21 | |||
22 | ### ANSI | ||
23 |  | ||
24 | |||
25 | 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/crazy_keyboard_68/rules.mk b/keyboards/crazy_keyboard_68/rules.mk new file mode 100644 index 000000000..5a51c94e7 --- /dev/null +++ b/keyboards/crazy_keyboard_68/rules.mk | |||
@@ -0,0 +1,24 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u4 | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = atmel-dfu | ||
6 | |||
7 | # Build Options | ||
8 | # change yes to no to disable | ||
9 | # | ||
10 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
11 | MOUSEKEY_ENABLE = yes # 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 = yes # USB Nkey Rollover | ||
19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
20 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
22 | AUDIO_ENABLE = no # Audio output | ||
23 | |||
24 | LAYOUTS = 65_ansi | ||