diff options
-rw-r--r-- | keyboards/orthocode/config.h | 93 | ||||
-rw-r--r-- | keyboards/orthocode/info.json | 84 | ||||
-rw-r--r-- | keyboards/orthocode/keymaps/default/keymap.c | 159 | ||||
-rw-r--r-- | keyboards/orthocode/orthocode.c | 16 | ||||
-rw-r--r-- | keyboards/orthocode/orthocode.h | 35 | ||||
-rw-r--r-- | keyboards/orthocode/readme.md | 17 | ||||
-rw-r--r-- | keyboards/orthocode/rules.mk | 26 |
7 files changed, 430 insertions, 0 deletions
diff --git a/keyboards/orthocode/config.h b/keyboards/orthocode/config.h new file mode 100644 index 000000000..823a48e36 --- /dev/null +++ b/keyboards/orthocode/config.h | |||
@@ -0,0 +1,93 @@ | |||
1 | /*Copyright 2020 Jrodna | ||
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 | #define VENDOR_ID 0xFEED | ||
22 | #define PRODUCT_ID 0x0000 | ||
23 | #define DEVICE_VER 0x0001 | ||
24 | #define MANUFACTURER Jrodna | ||
25 | #define PRODUCT OrthoCode | ||
26 | |||
27 | |||
28 | /* key matrix size */ | ||
29 | #define MATRIX_ROWS 5 | ||
30 | #define MATRIX_COLS 15 | ||
31 | |||
32 | /* | ||
33 | * Keyboard Matrix Assignments | ||
34 | * | ||
35 | * Change this to how you wired your keyboard | ||
36 | * COLS: AVR pins used for columns, left to right | ||
37 | * ROWS: AVR pins used for rows, top to bottom | ||
38 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
39 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
40 | * | ||
41 | */ | ||
42 | |||
43 | #define MATRIX_ROW_PINS {B0, B1, B2, B3, B4} | ||
44 | #define MATRIX_COL_PINS {C4, C3, C2, C1, C0, D7, D6, A7, A4, A5, A6, A3, A2, A1, A0} | ||
45 | #define UNUSED_PINS | ||
46 | |||
47 | /* COL2ROW, ROW2COL*/ | ||
48 | #define DIODE_DIRECTION COL2ROW | ||
49 | |||
50 | #define USB_MAX_POWER_CONSUMPTION 100 | ||
51 | |||
52 | #define ENCODERS_PAD_A { D1 } | ||
53 | #define ENCODERS_PAD_B { D0 } | ||
54 | #define ENCODER_RESOLUTION 1 | ||
55 | #define TAP_CODE_DELAY 10 | ||
56 | |||
57 | #define RGB_DI_PIN D5 | ||
58 | #ifdef RGB_DI_PIN | ||
59 | #define RGBLED_NUM 10 /*Change for the number of leds on the strip you attach*/ | ||
60 | #define RGBLIGHT_HUE_STEP 8 | ||
61 | #define RGBLIGHT_SAT_STEP 8 | ||
62 | #define RGBLIGHT_VAL_STEP 8 | ||
63 | #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
64 | #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
65 | /*== all animations enable ==*/ | ||
66 | // #define RGBLIGHT_ANIMATIONS | ||
67 | // /*== or choose animations ==*/ | ||
68 | #define RGBLIGHT_EFFECT_BREATHING | ||
69 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
70 | #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
71 | // #define RGBLIGHT_EFFECT_SNAKE | ||
72 | // #define RGBLIGHT_EFFECT_KNIGHT | ||
73 | // #define RGBLIGHT_EFFECT_CHRISTMAS | ||
74 | // #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
75 | // #define RGBLIGHT_EFFECT_RGB_TEST | ||
76 | // #define RGBLIGHT_EFFECT_ALTERNATING | ||
77 | #endif | ||
78 | |||
79 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
80 | // #define DEBOUNCE 5 | ||
81 | #define DEBOUNCE 0 | ||
82 | |||
83 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
84 | //#define MATRIX_HAS_GHOST | ||
85 | |||
86 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
87 | #define LOCKING_SUPPORT_ENABLE | ||
88 | /* Locking resynchronize hack */ | ||
89 | #define LOCKING_RESYNC_ENABLE | ||
90 | |||
91 | /* Bootmagic Lite key configuration */ | ||
92 | #define BOOTMAGIC_LITE_ROW 0 | ||
93 | #define BOOTMAGIC_LITE_COLUMN 0 | ||
diff --git a/keyboards/orthocode/info.json b/keyboards/orthocode/info.json new file mode 100644 index 000000000..fec4da90b --- /dev/null +++ b/keyboards/orthocode/info.json | |||
@@ -0,0 +1,84 @@ | |||
1 | { | ||
2 | "keyboard_name": "OrthoCode", | ||
3 | "url": "https://github.com/Jrodna/OrthoCode", | ||
4 | "maintainer": "Jrodna", | ||
5 | "width": 19, | ||
6 | "height": 6, | ||
7 | "layouts": { | ||
8 | "LAYOUT": { | ||
9 | "layout": [ | ||
10 | {"label":"Game", "x":0.5, "y":1}, | ||
11 | {"label":"Esc", "x":1.75, "y":1}, | ||
12 | {"label":"", "x":3, "y":1}, | ||
13 | {"label":"", "x":4, "y":1}, | ||
14 | {"label":"", "x":5, "y":1}, | ||
15 | {"label":"", "x":6, "y":1}, | ||
16 | {"label":"", "x":7, "y":1}, | ||
17 | {"label":"", "x":10.5, "y":1}, | ||
18 | {"label":"", "x":11.5, "y":1}, | ||
19 | {"label":"", "x":12.5, "y":1}, | ||
20 | {"label":"", "x":13.5, "y":1}, | ||
21 | {"label":"", "x":14.5, "y":1}, | ||
22 | {"label":"_", "x":15.5, "y":1}, | ||
23 | {"label":"+", "x":16.5, "y":1}, | ||
24 | {"label":"Home", "x":17.5, "y":1}, | ||
25 | {"label":"M1", "x":0.25, "y":2}, | ||
26 | {"label":"Tab", "x":1.5, "y":2, "w":1.5}, | ||
27 | {"label":"Q", "x":3, "y":2}, | ||
28 | {"label":"W", "x":4, "y":2}, | ||
29 | {"label":"E", "x":5, "y":2}, | ||
30 | {"label":"R", "x":6, "y":2}, | ||
31 | {"label":"T", "x":7, "y":2}, | ||
32 | {"label":"Y", "x":10.5, "y":2}, | ||
33 | {"label":"U", "x":11.5, "y":2}, | ||
34 | {"label":"I", "x":12.5, "y":2}, | ||
35 | {"label":"O", "x":13.5, "y":2}, | ||
36 | {"label":"P", "x":14.5, "y":2}, | ||
37 | {"label":"|", "x":15.5, "y":2, "w":1.5}, | ||
38 | {"label":"Delete", "x":17, "y":2}, | ||
39 | {"label":"End", "x":18, "y":2}, | ||
40 | {"label":"M2", "x":0, "y":3}, | ||
41 | {"label":"Ctrl", "x":1.25, "y":3, "w":1.75}, | ||
42 | {"label":"A", "x":3, "y":3}, | ||
43 | {"label":"S", "x":4, "y":3}, | ||
44 | {"label":"D", "x":5, "y":3}, | ||
45 | {"label":"F", "x":6, "y":3}, | ||
46 | {"label":"G", "x":7, "y":3}, | ||
47 | {"label":"H", "x":10.5, "y":3}, | ||
48 | {"label":"J", "x":11.5, "y":3}, | ||
49 | {"label":"K", "x":12.5, "y":3}, | ||
50 | {"label":"L", "x":13.5, "y":3}, | ||
51 | {"label":":", "x":14.5, "y":3}, | ||
52 | {"label":"\"", "x":15.5, "y":3}, | ||
53 | {"label":"Enter", "x":16.5, "y":3, "w":2.25}, | ||
54 | {"label":"Rotary", "x":0.5, "y":0}, | ||
55 | {"label":"Layer", "x":0.75, "y":4, "w":2.25}, | ||
56 | {"label":"Z", "x":3, "y":4}, | ||
57 | {"label":"X", "x":4, "y":4}, | ||
58 | {"label":"C", "x":5, "y":4}, | ||
59 | {"label":"V", "x":6, "y":4}, | ||
60 | {"label":"B", "x":7, "y":4}, | ||
61 | {"label":"N", "x":10.5, "y":4}, | ||
62 | {"label":"M", "x":11.5, "y":4}, | ||
63 | {"label":"<", "x":12.5, "y":4}, | ||
64 | {"label":">", "x":13.5, "y":4}, | ||
65 | {"label":"?", "x":14.5, "y":4}, | ||
66 | {"label":"\u2191", "x":17, "y":4}, | ||
67 | {"label":"Ctrl", "x":1.25, "y":5, "w":1.25}, | ||
68 | {"label":"Win", "x":2.5, "y":5, "w":1.25}, | ||
69 | {"label":"Alt", "x":3.75, "y":5, "w":1.25}, | ||
70 | {"label":"Fn", "x":5.5, "y":5, "w":1.25}, | ||
71 | {"label":"th1", "x":6.75, "y":5, "h":2.75}, | ||
72 | {"label":"th2", "x":7.75, "y":5.25, "h":2.25}, | ||
73 | {"label":"th3", "x":9.75, "y":5.25, "h":2.25}, | ||
74 | {"label":"th4", "x":10.75, "y":5, "h":2.75}, | ||
75 | {"label":"Fn", "x":11.75, "y":5, "w":1.25}, | ||
76 | {"label":"Alt", "x":13, "y":5, "w":1.25}, | ||
77 | {"label":"Ctrl", "x":14.25, "y":5, "w":1.25}, | ||
78 | {"label":"\u2190", "x":16, "y":5}, | ||
79 | {"label":"\u2193", "x":17, "y":5}, | ||
80 | {"label":"\u2192", "x":18, "y":5}] | ||
81 | } | ||
82 | } | ||
83 | } | ||
84 | |||
diff --git a/keyboards/orthocode/keymaps/default/keymap.c b/keyboards/orthocode/keymaps/default/keymap.c new file mode 100644 index 000000000..11a20102c --- /dev/null +++ b/keyboards/orthocode/keymaps/default/keymap.c | |||
@@ -0,0 +1,159 @@ | |||
1 | /* Copyright 2020 Jrodna | ||
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_keycodes { | ||
19 | QWERTY = SAFE_RANGE, | ||
20 | SHIFTSPACE, | ||
21 | ILIKEFROG | ||
22 | }; | ||
23 | |||
24 | #define KC_SHSP SHIFTSPACE | ||
25 | #define KC_FROG ILIKEFROG | ||
26 | |||
27 | |||
28 | |||
29 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
30 | [0] = LAYOUT( | ||
31 | TG(2), KC_GESC, 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_HOME, | ||
32 | RGB_TOG, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, KC_DEL, KC_END, | ||
33 | RGB_MOD, KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | ||
34 | KC__MUTE, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_UP, | ||
35 | KC_LCTL, KC_LGUI, KC_LALT, MO(1), KC_RSFT, KC_ENT, KC_BSPC, KC_SHSP, MO(1), KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RIGHT), | ||
36 | |||
37 | [1] = LAYOUT( | ||
38 | /* esc 1 2 3 4 5 6 7 8 9 0 - = home */ | ||
39 | TG(3), KC_GRV, 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, | ||
40 | /* tab Q W E R T Y U I O P \ delete end */ | ||
41 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET, KC_TRNS,KC_TRNS, KC_TRNS, LSFT(KC_LBRC), LSFT(KC_RBRC), KC_TRNS, KC_TRNS, KC_PAUS, KC_TRNS, | ||
42 | /* caps A S D F G H J K L ; ' enter */ | ||
43 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS, KC_LBRC, KC_RBRC, KC_TRNS, KC_TRNS, KC_TRNS, | ||
44 | /* shift Z X C V B N M , . / up */ | ||
45 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS,KC_EQL, LSFT(KC_EQL), LSFT(KC_9), LSFT(KC_0), KC_TRNS, KC_VOLU, | ||
46 | /* ctrl win alt fn th1 th2 th3 th4 fn alt ctrl left down right*/ | ||
47 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MINS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLD, KC_TRNS), | ||
48 | [2] = LAYOUT( | ||
49 | /* esc 1 2 3 4 5 6 7 8 9 0 - = home */ | ||
50 | 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, | ||
51 | /* tab Q W E R T Y U I O P \ delete end */ | ||
52 | 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_PAUS, KC_TRNS, | ||
53 | /* caps A S D F G H J K L ; ' enter */ | ||
54 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_RBRC, KC_TRNS, KC_TRNS, KC_TRNS, | ||
55 | /* Rotary shift Z X C V B N M , . / up */ | ||
56 | KC_TRNS, KC_LSFT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
57 | /* ctrl win alt fn th1 th2 th3 th4 fn alt ctrl left down right*/ | ||
58 | KC_TRNS, KC_NO, KC_TRNS, KC_TRNS, KC_SPC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
59 | [3] = LAYOUT( | ||
60 | /* esc 1 2 3 4 5 6 7 8 9 0 - = home */ | ||
61 | TG(3), KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, | ||
62 | /* tab Q W E R T Y U I O P \ delete end */ | ||
63 | KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, | ||
64 | /* caps A S D F G H J K L ; ' enter */ | ||
65 | KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, | ||
66 | /* Rotary shift Z X C V B N M , . / up */ | ||
67 | KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, | ||
68 | /* ctrl win alt fn th1 th2 th3 th4 fn alt ctrl left down right*/ | ||
69 | KC_FROG, KC_FROG, KC_FROG, MO(1), KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG, KC_FROG), | ||
70 | |||
71 | }; | ||
72 | |||
73 | |||
74 | |||
75 | |||
76 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
77 | static bool shiftspace_mods = false; | ||
78 | static int frogchar = 0; | ||
79 | switch (keycode) { | ||
80 | case SHIFTSPACE: | ||
81 | if (record->event.pressed) { | ||
82 | if(get_mods() & MOD_BIT(KC_RSFT)) { | ||
83 | register_code(KC_MINS); | ||
84 | shiftspace_mods = true; | ||
85 | } | ||
86 | else { | ||
87 | register_code(KC_SPC); | ||
88 | } | ||
89 | } else { | ||
90 | if (shiftspace_mods) { | ||
91 | unregister_code(KC_MINS); | ||
92 | shiftspace_mods = false; | ||
93 | } else { | ||
94 | unregister_code(KC_SPC); | ||
95 | } | ||
96 | } | ||
97 | return false; | ||
98 | break; | ||
99 | case ILIKEFROG: | ||
100 | if (record->event.pressed) { | ||
101 | switch (frogchar) | ||
102 | { | ||
103 | case 0: | ||
104 | SEND_STRING("I"); | ||
105 | break; | ||
106 | case 1: | ||
107 | SEND_STRING(" "); | ||
108 | break; | ||
109 | case 2: | ||
110 | SEND_STRING("L"); | ||
111 | break; | ||
112 | case 3: | ||
113 | SEND_STRING("i"); | ||
114 | break; | ||
115 | case 4: | ||
116 | SEND_STRING("k"); | ||
117 | break; | ||
118 | case 5: | ||
119 | SEND_STRING("e"); | ||
120 | break; | ||
121 | case 6: | ||
122 | SEND_STRING(" "); | ||
123 | break; | ||
124 | case 7: | ||
125 | SEND_STRING("F"); | ||
126 | break; | ||
127 | case 8: | ||
128 | SEND_STRING("r"); | ||
129 | break; | ||
130 | case 9: | ||
131 | SEND_STRING("o"); | ||
132 | break; | ||
133 | case 10: | ||
134 | SEND_STRING("g"); | ||
135 | break; | ||
136 | case 11: | ||
137 | SEND_STRING(" "); | ||
138 | break; | ||
139 | } | ||
140 | frogchar = (frogchar + 1) % 12; | ||
141 | } | ||
142 | break; | ||
143 | } | ||
144 | return true; | ||
145 | |||
146 | } | ||
147 | |||
148 | |||
149 | #ifdef ENCODER_ENABLE | ||
150 | bool encoder_update_user(uint8_t index, bool clockwise) { | ||
151 | // Volume control | ||
152 | if (clockwise) { | ||
153 | tap_code(KC_VOLD); | ||
154 | } else { | ||
155 | tap_code(KC_VOLU); | ||
156 | } | ||
157 | return true; | ||
158 | } | ||
159 | #endif | ||
diff --git a/keyboards/orthocode/orthocode.c b/keyboards/orthocode/orthocode.c new file mode 100644 index 000000000..8de13e2ab --- /dev/null +++ b/keyboards/orthocode/orthocode.c | |||
@@ -0,0 +1,16 @@ | |||
1 | /* Copyright 2020 Jrodna | ||
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 "orthocode.h" \ No newline at end of file | ||
diff --git a/keyboards/orthocode/orthocode.h b/keyboards/orthocode/orthocode.h new file mode 100644 index 000000000..83da04130 --- /dev/null +++ b/keyboards/orthocode/orthocode.h | |||
@@ -0,0 +1,35 @@ | |||
1 | /* Copyright 2020 Jrodna | ||
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 _x_ KC_NO | ||
20 | |||
21 | #include "quantum.h" | ||
22 | |||
23 | #define LAYOUT( \ | ||
24 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, \ | ||
25 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, \ | ||
26 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, \ | ||
27 | K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3D, \ | ||
28 | K41, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B, K4C, K4D, K4E \ | ||
29 | ) { \ | ||
30 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, 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, _x_ }, \ | ||
33 | { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, _x_, K3D, _x_ }, \ | ||
34 | { _x_, K41, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B, K4C, K4D, K4E} \ | ||
35 | } | ||
diff --git a/keyboards/orthocode/readme.md b/keyboards/orthocode/readme.md new file mode 100644 index 000000000..4a2dfc01b --- /dev/null +++ b/keyboards/orthocode/readme.md | |||
@@ -0,0 +1,17 @@ | |||
1 | # ORTHOCODE | ||
2 | |||
3 | An ortholinear keyboard with thumb clusters that can be assembled with only through hole components, including usb type-c and compatibility for standard keysets. | ||
4 | |||
5 | * Keyboard Maintainer: [Jrodna](https://github.com/Jrodna) | ||
6 | * Hardware Supported: OrthoCode, atmega32a | ||
7 | * Hardware Availability: [GitHub](https://github.com/Jrodna/OrthoCode) | ||
8 | |||
9 | Make example for this keyboard (after setting up your build environment): | ||
10 | |||
11 | make orthocode:default | ||
12 | |||
13 | Flashing example for this keyboard: | ||
14 | |||
15 | make orthocode:default:flash | ||
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). \ No newline at end of file | ||
diff --git a/keyboards/orthocode/rules.mk b/keyboards/orthocode/rules.mk new file mode 100644 index 000000000..2a8d321a5 --- /dev/null +++ b/keyboards/orthocode/rules.mk | |||
@@ -0,0 +1,26 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32a | ||
3 | |||
4 | # Processor frequency | ||
5 | F_CPU = 16000000 | ||
6 | |||
7 | # Bootloader selection | ||
8 | BOOTLOADER = USBasp | ||
9 | |||
10 | # Build Options | ||
11 | # change yes to no to disable | ||
12 | # | ||
13 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
14 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
15 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
16 | CONSOLE_ENABLE = no # Console for debug | ||
17 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
18 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
19 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
20 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
21 | NKRO_ENABLE = no # USB Nkey Rollover | ||
22 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
23 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
24 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
25 | AUDIO_ENABLE = no # Audio output | ||
26 | ENCODER_ENABLE = yes # Enables the use of one or more encoders | ||