diff options
Diffstat (limited to 'keyboards/handwired/rs60')
| -rw-r--r-- | keyboards/handwired/rs60/README.md | 27 | ||||
| -rw-r--r-- | keyboards/handwired/rs60/config.h | 47 | ||||
| -rw-r--r-- | keyboards/handwired/rs60/keymaps/default/keymap.c | 207 | ||||
| -rw-r--r-- | keyboards/handwired/rs60/keymaps/default/readme.md | 1 | ||||
| -rw-r--r-- | keyboards/handwired/rs60/rs60.c | 18 | ||||
| -rw-r--r-- | keyboards/handwired/rs60/rs60.h | 36 | ||||
| -rw-r--r-- | keyboards/handwired/rs60/rules.mk | 61 |
7 files changed, 397 insertions, 0 deletions
diff --git a/keyboards/handwired/rs60/README.md b/keyboards/handwired/rs60/README.md new file mode 100644 index 000000000..07c967e27 --- /dev/null +++ b/keyboards/handwired/rs60/README.md | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | # rs60: Handwired Slim Preonic Clone | ||
| 2 | |||
| 3 | I wanted a preonic layout but with a very low profile. As Jack is still working on the Preonic PCB for Kailh Choc switches, I figured I could try to handwire one myself. It's my first custom keyboard, so I had a lot to learn. | ||
| 4 | |||
| 5 | First I designed the case in fusion 360. I wanted to build it using acrylic, constrained myself to standard acrylic sheet thickness. | ||
| 6 | |||
| 7 |  | ||
| 8 | |||
| 9 | You can download the model [here](https://a360.co/2OqiKLm). | ||
| 10 | |||
| 11 | To test my design I 3D printed the parts. | ||
| 12 | |||
| 13 |  | ||
| 14 | |||
| 15 | The result was encouraging, so I decided to build a prototype out of the printed plates using Kailh Choc brown switches. I tried to make the handwiring job as flat as possible so it can fit in my design. | ||
| 16 | |||
| 17 |  | ||
| 18 |  | ||
| 19 | |||
| 20 | I designed switch plate and the middle plates so that they would be glued together. The middle plate has inserts to attach the bottom plate using m8 screws. | ||
| 21 | |||
| 22 |  | ||
| 23 | |||
| 24 | The end result is not too bad, but there is a few things I would do differently. Gluing 3D printed plates wasn't a good idea. The switch layer is so thin, that it bends when all the switches are slotted. As a result, the keyboard is not entirely flat. I will replace the bottom plate by a metal one so I get more weight and rigidity. | ||
| 25 | |||
| 26 | Even with acrylic, I think I will have the same issue. I might switch to screws + bolts that go all the way through. | ||
| 27 | |||
diff --git a/keyboards/handwired/rs60/config.h b/keyboards/handwired/rs60/config.h new file mode 100644 index 000000000..371150a79 --- /dev/null +++ b/keyboards/handwired/rs60/config.h | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2018 QMK Contributors | ||
| 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 | #pragma once | ||
| 18 | |||
| 19 | /* USB Device descriptor parameter */ | ||
| 20 | #define VENDOR_ID 0xFEED | ||
| 21 | #define PRODUCT_ID 0x4260 | ||
| 22 | #define DEVICE_VER 0x0001 | ||
| 23 | #define MANUFACTURER rs | ||
| 24 | #define PRODUCT rs60 | ||
| 25 | #define DESCRIPTION Preonic clone based on pro micro | ||
| 26 | |||
| 27 | /* key matrix size */ | ||
| 28 | #define MATRIX_ROWS 5 | ||
| 29 | #define MATRIX_COLS 12 | ||
| 30 | |||
| 31 | /* key matrix pins */ | ||
| 32 | #define MATRIX_ROW_PINS { B5, B6, B4, B2, E6 } | ||
| 33 | #define MATRIX_COL_PINS { C6, D4, D0, D1, D2, D3, F4, F5, F6, F7, B1, B3} | ||
| 34 | #define UNUSED_PINS { } | ||
| 35 | |||
| 36 | #define QMK_ESC_OUTPUT C6 | ||
| 37 | #define QMK_ESC_INPUT B4 | ||
| 38 | #define QMK_LED B0 | ||
| 39 | // #define QMK_SPEAKER C6 | ||
| 40 | |||
| 41 | /* COL2ROW or ROW2COL */ | ||
| 42 | #define DIODE_DIRECTION COL2ROW | ||
| 43 | |||
| 44 | /* key combination for command */ | ||
| 45 | #define IS_COMMAND() ( \ | ||
| 46 | false \ | ||
| 47 | ) | ||
diff --git a/keyboards/handwired/rs60/keymaps/default/keymap.c b/keyboards/handwired/rs60/keymaps/default/keymap.c new file mode 100644 index 000000000..9fea769d0 --- /dev/null +++ b/keyboards/handwired/rs60/keymaps/default/keymap.c | |||
| @@ -0,0 +1,207 @@ | |||
| 1 | /* Copyright 2015-2017 Jack Humbert | ||
| 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 QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | enum layers { | ||
| 20 | _QWERTY, | ||
| 21 | _COLEMAK, | ||
| 22 | _DVORAK, | ||
| 23 | _LOWER, | ||
| 24 | _RAISE, | ||
| 25 | _ADJUST | ||
| 26 | }; | ||
| 27 | |||
| 28 | enum keycodes { | ||
| 29 | QWERTY = SAFE_RANGE, | ||
| 30 | COLEMAK, | ||
| 31 | DVORAK, | ||
| 32 | LOWER, | ||
| 33 | RAISE, | ||
| 34 | }; | ||
| 35 | |||
| 36 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 37 | |||
| 38 | /* Qwerty | ||
| 39 | * ,-----------------------------------------------------------------------------------. | ||
| 40 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | | ||
| 41 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 42 | * | Tab | Q | W | E | R | T | Y | U | I | O | P | Del | | ||
| 43 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 44 | * | Esc | A | S | D | F | G | H | J | K | L | ; | " | | ||
| 45 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 46 | * | Shift| Z | X | C | V | B | N | M | , | . | / |Enter | | ||
| 47 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 48 | * | Brite| Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right | | ||
| 49 | * `-----------------------------------------------------------------------------------' | ||
| 50 | */ | ||
| 51 | [_QWERTY] = LAYOUT( \ | ||
| 52 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \ | ||
| 53 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_DEL, \ | ||
| 54 | KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, \ | ||
| 55 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, \ | ||
| 56 | _______, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \ | ||
| 57 | ), | ||
| 58 | |||
| 59 | /* Colemak | ||
| 60 | * ,-----------------------------------------------------------------------------------. | ||
| 61 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | | ||
| 62 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 63 | * | Tab | Q | W | F | P | G | J | L | U | Y | ; | Del | | ||
| 64 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 65 | * | Esc | A | R | S | T | D | H | N | E | I | O | " | | ||
| 66 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 67 | * | Shift| Z | X | C | V | B | K | M | , | . | / |Enter | | ||
| 68 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 69 | * | Brite| Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right | | ||
| 70 | * `-----------------------------------------------------------------------------------' | ||
| 71 | */ | ||
| 72 | [_COLEMAK] = LAYOUT( \ | ||
| 73 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \ | ||
| 74 | KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_DEL, \ | ||
| 75 | KC_ESC, KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT, \ | ||
| 76 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, \ | ||
| 77 | _______, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \ | ||
| 78 | ), | ||
| 79 | |||
| 80 | /* Dvorak | ||
| 81 | * ,-----------------------------------------------------------------------------------. | ||
| 82 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | | ||
| 83 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 84 | * | Tab | " | , | . | P | Y | F | G | C | R | L | Del | | ||
| 85 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 86 | * | Esc | A | O | E | U | I | D | H | T | N | S | / | | ||
| 87 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 88 | * | Shift| ; | Q | J | K | X | B | M | W | V | Z |Enter | | ||
| 89 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 90 | * | Brite| Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right | | ||
| 91 | * `-----------------------------------------------------------------------------------' | ||
| 92 | */ | ||
| 93 | [_DVORAK] = LAYOUT( \ | ||
| 94 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \ | ||
| 95 | KC_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_DEL, \ | ||
| 96 | KC_ESC, KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_SLSH, \ | ||
| 97 | KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_ENT, \ | ||
| 98 | _______, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \ | ||
| 99 | ), | ||
| 100 | |||
| 101 | /* Lower | ||
| 102 | * ,-----------------------------------------------------------------------------------. | ||
| 103 | * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bksp | | ||
| 104 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 105 | * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Del | | ||
| 106 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 107 | * | Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | | | | ||
| 108 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 109 | * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO ~ |ISO | | | | | | ||
| 110 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 111 | * | | | | | | | | Next | Vol- | Vol+ | Play | | ||
| 112 | * `-----------------------------------------------------------------------------------' | ||
| 113 | */ | ||
| 114 | [_LOWER] = LAYOUT( \ | ||
| 115 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, \ | ||
| 116 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL, \ | ||
| 117 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, \ | ||
| 118 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,S(KC_NUHS),S(KC_NUBS),KC_HOME, KC_END, _______, \ | ||
| 119 | _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY \ | ||
| 120 | ), | ||
| 121 | |||
| 122 | /* Raise | ||
| 123 | * ,-----------------------------------------------------------------------------------. | ||
| 124 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | | ||
| 125 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 126 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Del | | ||
| 127 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 128 | * | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ | | ||
| 129 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 130 | * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO # |ISO / | | | | | ||
| 131 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 132 | * | | | | | | | | Next | Vol- | Vol+ | Play | | ||
| 133 | * `-----------------------------------------------------------------------------------' | ||
| 134 | */ | ||
| 135 | [_RAISE] = LAYOUT( \ | ||
| 136 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \ | ||
| 137 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, \ | ||
| 138 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, \ | ||
| 139 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, KC_PGUP, KC_PGDN, _______, \ | ||
| 140 | _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY \ | ||
| 141 | ), | ||
| 142 | |||
| 143 | /* Adjust (Lower + Raise) | ||
| 144 | * ,-----------------------------------------------------------------------------------. | ||
| 145 | * | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | | ||
| 146 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 147 | * | | Reset| | | | | | | | | | Del | | ||
| 148 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 149 | * | | | |Aud on|AudOff|AGnorm|AGswap|Qwerty|Colemk|Dvorak| | | | ||
| 150 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 151 | * | |Voice-|Voice+|Mus on|MusOff|MidiOn|MidOff| | | | | | | ||
| 152 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 153 | * | | | | | | | | | | | | | ||
| 154 | * `-----------------------------------------------------------------------------------' | ||
| 155 | */ | ||
| 156 | [_ADJUST] = LAYOUT( \ | ||
| 157 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, \ | ||
| 158 | _______, RESET, DEBUG, _______, _______, _______, _______, TERM_ON, TERM_OFF,_______, _______, KC_DEL, \ | ||
| 159 | _______, _______, _______, _______, _______, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, _______, _______, \ | ||
| 160 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ | ||
| 161 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \ | ||
| 162 | ) | ||
| 163 | }; | ||
| 164 | |||
| 165 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 166 | switch (keycode) { | ||
| 167 | case QWERTY: | ||
| 168 | if (record->event.pressed) { | ||
| 169 | set_single_persistent_default_layer(_QWERTY); | ||
| 170 | } | ||
| 171 | return false; | ||
| 172 | break; | ||
| 173 | case COLEMAK: | ||
| 174 | if (record->event.pressed) { | ||
| 175 | set_single_persistent_default_layer(_COLEMAK); | ||
| 176 | } | ||
| 177 | return false; | ||
| 178 | break; | ||
| 179 | case DVORAK: | ||
| 180 | if (record->event.pressed) { | ||
| 181 | set_single_persistent_default_layer(_DVORAK); | ||
| 182 | } | ||
| 183 | return false; | ||
| 184 | break; | ||
| 185 | case LOWER: | ||
| 186 | if (record->event.pressed) { | ||
| 187 | layer_on(_LOWER); | ||
| 188 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 189 | } else { | ||
| 190 | layer_off(_LOWER); | ||
| 191 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 192 | } | ||
| 193 | return false; | ||
| 194 | break; | ||
| 195 | case RAISE: | ||
| 196 | if (record->event.pressed) { | ||
| 197 | layer_on(_RAISE); | ||
| 198 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 199 | } else { | ||
| 200 | layer_off(_RAISE); | ||
| 201 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 202 | } | ||
| 203 | return false; | ||
| 204 | break; | ||
| 205 | } | ||
| 206 | return true; | ||
| 207 | }; | ||
diff --git a/keyboards/handwired/rs60/keymaps/default/readme.md b/keyboards/handwired/rs60/keymaps/default/readme.md new file mode 100644 index 000000000..e911968dd --- /dev/null +++ b/keyboards/handwired/rs60/keymaps/default/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The default Preonic layout - largely based on the Planck's \ No newline at end of file | |||
diff --git a/keyboards/handwired/rs60/rs60.c b/keyboards/handwired/rs60/rs60.c new file mode 100644 index 000000000..f748740cb --- /dev/null +++ b/keyboards/handwired/rs60/rs60.c | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2018 QMK Community | ||
| 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 "rs60.h" | ||
diff --git a/keyboards/handwired/rs60/rs60.h b/keyboards/handwired/rs60/rs60.h new file mode 100644 index 000000000..f2113f05c --- /dev/null +++ b/keyboards/handwired/rs60/rs60.h | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2018 QMK Community | ||
| 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 | #pragma once | ||
| 18 | |||
| 19 | #include "quantum.h" | ||
| 20 | |||
| 21 | #define LAYOUT( \ | ||
| 22 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, \ | ||
| 23 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, \ | ||
| 24 | k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, \ | ||
| 25 | k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, \ | ||
| 26 | k40, k41, k42, k43, k44, k45, k46, k47, k48, k49, k4a, k4b \ | ||
| 27 | ) \ | ||
| 28 | { \ | ||
| 29 | { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b }, \ | ||
| 30 | { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b }, \ | ||
| 31 | { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b }, \ | ||
| 32 | { k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b }, \ | ||
| 33 | { k40, k41, k42, k43, k44, k45, k46, k47, k48, k49, k4a, k4b } \ | ||
| 34 | } | ||
| 35 | |||
| 36 | #define LAYOUT_ortho_5x12 LAYOUT | ||
diff --git a/keyboards/handwired/rs60/rules.mk b/keyboards/handwired/rs60/rules.mk new file mode 100644 index 000000000..7b4ec69d0 --- /dev/null +++ b/keyboards/handwired/rs60/rules.mk | |||
| @@ -0,0 +1,61 @@ | |||
| 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 | # LUFA specific | ||
| 19 | # | ||
| 20 | # Target architecture (see library "Board Types" documentation). | ||
| 21 | ARCH = AVR8 | ||
| 22 | |||
| 23 | # Input clock frequency. | ||
| 24 | # This will define a symbol, F_USB, in all source code files equal to the | ||
| 25 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
| 26 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
| 27 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
| 28 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
| 29 | # at the end, this will be done automatically to create a 32-bit value in your | ||
| 30 | # source code. | ||
| 31 | # | ||
| 32 | # If no clock division is performed on the input clock inside the AVR (via the | ||
| 33 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
| 34 | F_USB = $(F_CPU) | ||
| 35 | |||
| 36 | # Bootloader | ||
| 37 | BOOTLOADER = qmk-dfu | ||
| 38 | |||
| 39 | # Interrupt driven control endpoint task(+60) | ||
| 40 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
| 41 | |||
| 42 | LAYOUTS = ortho_5x12 | ||
| 43 | |||
| 44 | # Boot Section Size in *bytes* | ||
| 45 | #OPT_DEFS += -DBOOTLOADER_SIZE=4096 | ||
| 46 | |||
| 47 | |||
| 48 | # Build Options | ||
| 49 | # comment out to disable the options. | ||
| 50 | # | ||
| 51 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
| 52 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
| 53 | EXTRAKEY_ENABLE = no # Audio control and System control(+450) | ||
| 54 | CONSOLE_ENABLE = yes # Console for debug(+400) | ||
| 55 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 56 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 57 | NKRO_ENABLE = no # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 58 | BACKLIGHT_ENABLE = no # Custom backlighting code is used, so this should not be enabled | ||
| 59 | AUDIO_ENABLE = no # This can be enabled if a speaker is connected to the expansion port. Not compatible with RGBLIGHT below | ||
| 60 | RGBLIGHT_ENABLE = no # This can be enabled if a ws2812 strip is connected to the expansion port. | ||
| 61 | |||
