diff options
| -rw-r--r-- | keyboards/redscarf_i/config.h | 45 | ||||
| -rw-r--r-- | keyboards/redscarf_i/info.json | 114 | ||||
| -rw-r--r-- | keyboards/redscarf_i/keymaps/default/keymap.c | 28 | ||||
| -rw-r--r-- | keyboards/redscarf_i/keymaps/ortho_5x4/keymap.c | 49 | ||||
| -rw-r--r-- | keyboards/redscarf_i/keymaps/ortho_6x4/keymap.c | 36 | ||||
| -rw-r--r-- | keyboards/redscarf_i/readme.md | 15 | ||||
| -rw-r--r-- | keyboards/redscarf_i/redscarf_i.c | 54 | ||||
| -rw-r--r-- | keyboards/redscarf_i/redscarf_i.h | 85 | ||||
| -rw-r--r-- | keyboards/redscarf_i/rules.mk | 33 |
9 files changed, 459 insertions, 0 deletions
diff --git a/keyboards/redscarf_i/config.h b/keyboards/redscarf_i/config.h new file mode 100644 index 000000000..9e35e902a --- /dev/null +++ b/keyboards/redscarf_i/config.h | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2019 Ben Weakley | ||
| 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 | |||
| 23 | /* USB Device descriptor parameter */ | ||
| 24 | #define VENDOR_ID 0xFEED | ||
| 25 | #define PRODUCT_ID 0x5959 | ||
| 26 | #define DEVICE_VER 0x0001 | ||
| 27 | #define MANUFACTURER Red Scarf | ||
| 28 | #define PRODUCT Red Scarf I | ||
| 29 | #define DESCRIPTION QMK for Red Scarf I number pads | ||
| 30 | |||
| 31 | /* Matrix */ | ||
| 32 | #define MATRIX_ROWS 6 | ||
| 33 | #define MATRIX_COLS 4 | ||
| 34 | #define MATRIX_ROW_PINS { D0, D1, D2, D3, D4, D5 } | ||
| 35 | #define MATRIX_COL_PINS { F0, F1, E6, C7 } | ||
| 36 | #define UNUSED_PINS | ||
| 37 | #define DIODE_DIRECTION COL2ROW | ||
| 38 | |||
| 39 | /* Backlight */ | ||
| 40 | #define BACKLIGHT_PIN B5 | ||
| 41 | #define BACKLIGHT_LEVELS 3 | ||
| 42 | //#define BACKLIGHT_BREATHING | ||
| 43 | |||
| 44 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 45 | #define DEBOUNCE 5 \ No newline at end of file | ||
diff --git a/keyboards/redscarf_i/info.json b/keyboards/redscarf_i/info.json new file mode 100644 index 000000000..a2ea71f3a --- /dev/null +++ b/keyboards/redscarf_i/info.json | |||
| @@ -0,0 +1,114 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Red Scarf I", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "qmk, defying", | ||
| 5 | "width": 4, | ||
| 6 | "layouts": { | ||
| 7 | "LAYOUT_ortho_5x4": { | ||
| 8 | "height": 5, | ||
| 9 | "key_count": 20, | ||
| 10 | "layout": [ | ||
| 11 | {"x":0, "y":0}, | ||
| 12 | {"x":1, "y":0}, | ||
| 13 | {"x":2, "y":0}, | ||
| 14 | {"x":3, "y":0}, | ||
| 15 | {"x":0, "y":1}, | ||
| 16 | {"x":1, "y":1}, | ||
| 17 | {"x":2, "y":1}, | ||
| 18 | {"x":3, "y":1}, | ||
| 19 | {"x":0, "y":2}, | ||
| 20 | {"x":1, "y":2}, | ||
| 21 | {"x":2, "y":2}, | ||
| 22 | {"x":3, "y":2}, | ||
| 23 | {"x":0, "y":3}, | ||
| 24 | {"x":1, "y":3}, | ||
| 25 | {"x":2, "y":3}, | ||
| 26 | {"x":3, "y":3}, | ||
| 27 | {"x":0, "y":4}, | ||
| 28 | {"x":1, "y":4}, | ||
| 29 | {"x":2, "y":4}, | ||
| 30 | {"x":3, "y":4} | ||
| 31 | ] | ||
| 32 | }, | ||
| 33 | "LAYOUT_ortho_6x4": { | ||
| 34 | "height": 6, | ||
| 35 | "key_count": 24, | ||
| 36 | "layout": [ | ||
| 37 | {"x":0, "y":0}, | ||
| 38 | {"x":1, "y":0}, | ||
| 39 | {"x":2, "y":0}, | ||
| 40 | {"x":3, "y":0}, | ||
| 41 | {"x":0, "y":1}, | ||
| 42 | {"x":1, "y":1}, | ||
| 43 | {"x":2, "y":1}, | ||
| 44 | {"x":3, "y":1}, | ||
| 45 | {"x":0, "y":2}, | ||
| 46 | {"x":1, "y":2}, | ||
| 47 | {"x":2, "y":2}, | ||
| 48 | {"x":3, "y":2}, | ||
| 49 | {"x":0, "y":3}, | ||
| 50 | {"x":1, "y":3}, | ||
| 51 | {"x":2, "y":3}, | ||
| 52 | {"x":3, "y":3}, | ||
| 53 | {"x":0, "y":4}, | ||
| 54 | {"x":1, "y":4}, | ||
| 55 | {"x":2, "y":4}, | ||
| 56 | {"x":3, "y":4}, | ||
| 57 | {"x":0, "y":5}, | ||
| 58 | {"x":1, "y":5}, | ||
| 59 | {"x":2, "y":5}, | ||
| 60 | {"x":3, "y":5} | ||
| 61 | ] | ||
| 62 | }, | ||
| 63 | "LAYOUT_numpad_5x4": { | ||
| 64 | "height": 5, | ||
| 65 | "key_count": 17, | ||
| 66 | "layout": [ | ||
| 67 | {"x":0, "y":0}, | ||
| 68 | {"x":1, "y":0}, | ||
| 69 | {"x":2, "y":0}, | ||
| 70 | {"x":3, "y":0}, | ||
| 71 | {"x":0, "y":1}, | ||
| 72 | {"x":1, "y":1}, | ||
| 73 | {"x":2, "y":1}, | ||
| 74 | {"x":0, "y":2}, | ||
| 75 | {"x":1, "y":2}, | ||
| 76 | {"x":2, "y":2}, | ||
| 77 | {"x":3, "y":1, "h":2}, | ||
| 78 | {"x":0, "y":3}, | ||
| 79 | {"x":1, "y":3}, | ||
| 80 | {"x":2, "y":3}, | ||
| 81 | {"x":0, "y":4, "w":2}, | ||
| 82 | {"x":2, "y":4}, | ||
| 83 | {"x":3, "y":3, "h":2} | ||
| 84 | ] | ||
| 85 | }, | ||
| 86 | "LAYOUT_numpad_6x4": { | ||
| 87 | "height": 6, | ||
| 88 | "key_count": 21, | ||
| 89 | "layout": [ | ||
| 90 | {"x":0, "y":0}, | ||
| 91 | {"x":1, "y":0}, | ||
| 92 | {"x":2, "y":0}, | ||
| 93 | {"x":3, "y":0}, | ||
| 94 | {"x":0, "y":1}, | ||
| 95 | {"x":1, "y":1}, | ||
| 96 | {"x":2, "y":1}, | ||
| 97 | {"x":3, "y":1}, | ||
| 98 | {"x":0, "y":2}, | ||
| 99 | {"x":1, "y":2}, | ||
| 100 | {"x":2, "y":2}, | ||
| 101 | {"x":0, "y":3}, | ||
| 102 | {"x":1, "y":3}, | ||
| 103 | {"x":2, "y":3}, | ||
| 104 | {"x":3, "y":2, "h":2}, | ||
| 105 | {"x":0, "y":4}, | ||
| 106 | {"x":1, "y":4}, | ||
| 107 | {"x":2, "y":4}, | ||
| 108 | {"x":0, "y":5, "w":2}, | ||
| 109 | {"x":2, "y":5}, | ||
| 110 | {"x":3, "y":4, "h":2} | ||
| 111 | ] | ||
| 112 | } | ||
| 113 | } | ||
| 114 | } | ||
diff --git a/keyboards/redscarf_i/keymaps/default/keymap.c b/keyboards/redscarf_i/keymaps/default/keymap.c new file mode 100644 index 000000000..9a693fabb --- /dev/null +++ b/keyboards/redscarf_i/keymaps/default/keymap.c | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | /* Copyright 2019 Ben Weakley | ||
| 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 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 20 | [0] = LAYOUT_ortho_6x4( // Base | ||
| 21 | KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, | ||
| 22 | KC_P7, KC_P8, KC_P9, KC_PPLS, | ||
| 23 | KC_P4, KC_P5, KC_P6, KC_PEQL, | ||
| 24 | KC_P1, KC_P2, KC_P3, KC_ENT, | ||
| 25 | KC_P0, KC_UP, KC_PDOT, KC_BSPC, | ||
| 26 | KC_LEFT, KC_DOWN, KC_RGHT, BL_TOGG | ||
| 27 | ) | ||
| 28 | }; | ||
diff --git a/keyboards/redscarf_i/keymaps/ortho_5x4/keymap.c b/keyboards/redscarf_i/keymaps/ortho_5x4/keymap.c new file mode 100644 index 000000000..57df87858 --- /dev/null +++ b/keyboards/redscarf_i/keymaps/ortho_5x4/keymap.c | |||
| @@ -0,0 +1,49 @@ | |||
| 1 | /* Copyright 2019 Ben Weakley | ||
| 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 custom_keycodes { | ||
| 20 | KC_P00 = SAFE_RANGE | ||
| 21 | }; | ||
| 22 | |||
| 23 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 24 | [0] = LAYOUT_ortho_5x4( // Base | ||
| 25 | KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, | ||
| 26 | KC_P7, KC_P8, KC_P9, KC_PPLS, | ||
| 27 | KC_P4, KC_P5, KC_P6, KC_PEQL, | ||
| 28 | KC_P1, KC_P2, KC_P3, KC_ENT, | ||
| 29 | KC_P0, KC_P00, KC_PDOT, MO(1) | ||
| 30 | ), | ||
| 31 | [1] = LAYOUT_ortho_5x4( // Function 1 | ||
| 32 | _______, _______, _______, _______, | ||
| 33 | _______, _______, _______, _______, | ||
| 34 | BL_TOGG, BL_STEP, BL_BRTG, _______, | ||
| 35 | KC_MUTE, KC_VOLD, KC_VOLU, _______, | ||
| 36 | KC_MPRV, KC_MPLY, KC_MNXT, _______ | ||
| 37 | ) | ||
| 38 | }; | ||
| 39 | |||
| 40 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 41 | switch (keycode) { | ||
| 42 | case KC_P00: | ||
| 43 | if (record->event.pressed) { | ||
| 44 | SEND_STRING("00"); | ||
| 45 | } | ||
| 46 | break; | ||
| 47 | } | ||
| 48 | return true; | ||
| 49 | } | ||
diff --git a/keyboards/redscarf_i/keymaps/ortho_6x4/keymap.c b/keyboards/redscarf_i/keymaps/ortho_6x4/keymap.c new file mode 100644 index 000000000..54bf68ce4 --- /dev/null +++ b/keyboards/redscarf_i/keymaps/ortho_6x4/keymap.c | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | /* Copyright 2019 Ben Weakley | ||
| 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 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 20 | [0] = LAYOUT_ortho_6x4( // Base | ||
| 21 | KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, | ||
| 22 | KC_P7, KC_P8, KC_P9, KC_PPLS, | ||
| 23 | KC_P4, KC_P5, KC_P6, KC_PEQL, | ||
| 24 | KC_P1, KC_P2, KC_P3, KC_ENT, | ||
| 25 | KC_P0, KC_UP, KC_PDOT, KC_BSPC, | ||
| 26 | KC_LEFT, KC_DOWN, KC_RGHT, MO(1) | ||
| 27 | ), | ||
| 28 | [1] = LAYOUT_ortho_6x4( // Function 1 | ||
| 29 | _______, _______, _______, _______, | ||
| 30 | _______, _______, _______, _______, | ||
| 31 | _______, _______, _______, _______, | ||
| 32 | BL_TOGG, BL_STEP, BL_BRTG, _______, | ||
| 33 | KC_MUTE, KC_VOLD, KC_VOLU, _______, | ||
| 34 | KC_MPRV, KC_MPLY, KC_MNXT, _______ | ||
| 35 | ) | ||
| 36 | }; | ||
diff --git a/keyboards/redscarf_i/readme.md b/keyboards/redscarf_i/readme.md new file mode 100644 index 000000000..a5c5468d2 --- /dev/null +++ b/keyboards/redscarf_i/readme.md | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | # Red Scarf I | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | Port of QMK for Red Scarf I number pads, a five- or six-row number pad with support for in-switch single-color LEDs. | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [The QMK Community](https://github.com/qmk), [Ben Weakley](https://github.com/defying) | ||
| 8 | * Hardware Supported: Red Scarf I PCBs | ||
| 9 | * Hardware Availability: no longer available | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make redscarf_i:default | ||
| 14 | |||
| 15 | 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/redscarf_i/redscarf_i.c b/keyboards/redscarf_i/redscarf_i.c new file mode 100644 index 000000000..a8a685b13 --- /dev/null +++ b/keyboards/redscarf_i/redscarf_i.c | |||
| @@ -0,0 +1,54 @@ | |||
| 1 | /* Copyright 2019 Ben Weakley | ||
| 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 "redscarf_i.h" | ||
| 18 | |||
| 19 | void keyboard_pre_init_kb(void) { | ||
| 20 | // initialize top row leds | ||
| 21 | setPinOutput(F7); | ||
| 22 | setPinOutput(F6); | ||
| 23 | setPinOutput(F5); | ||
| 24 | // and then turn them off | ||
| 25 | writePinHigh(F7); | ||
| 26 | writePinHigh(F6); | ||
| 27 | writePinHigh(F5); | ||
| 28 | } | ||
| 29 | |||
| 30 | bool led_update_kb(led_t led_state) { | ||
| 31 | bool res = led_update_user(led_state); | ||
| 32 | if(res) { | ||
| 33 | writePin(F7, !led_state.num_lock); | ||
| 34 | } | ||
| 35 | return res; | ||
| 36 | } | ||
| 37 | |||
| 38 | layer_state_t layer_state_set_kb(layer_state_t state) { | ||
| 39 | switch (biton32(state)) { | ||
| 40 | case 1: | ||
| 41 | writePinHigh(F6); | ||
| 42 | writePinLow(F5); | ||
| 43 | break; | ||
| 44 | case 2: | ||
| 45 | writePinLow(F6); | ||
| 46 | writePinHigh(F5); | ||
| 47 | break; | ||
| 48 | default: | ||
| 49 | writePinHigh(F6); | ||
| 50 | writePinHigh(F5); | ||
| 51 | break; | ||
| 52 | } | ||
| 53 | return state; | ||
| 54 | } | ||
diff --git a/keyboards/redscarf_i/redscarf_i.h b/keyboards/redscarf_i/redscarf_i.h new file mode 100644 index 000000000..44e468934 --- /dev/null +++ b/keyboards/redscarf_i/redscarf_i.h | |||
| @@ -0,0 +1,85 @@ | |||
| 1 | /* Copyright 2019 Ben Weakley | ||
| 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 LAYOUT_ortho_6x4( \ | ||
| 22 | k00, k01, k02, k03, \ | ||
| 23 | k10, k11, k12, k13, \ | ||
| 24 | k20, k21, k22, k23, \ | ||
| 25 | k30, k31, k32, k33, \ | ||
| 26 | k40, k41, k42, k43, \ | ||
| 27 | k50, k51, k52, k53 \ | ||
| 28 | ) \ | ||
| 29 | { \ | ||
| 30 | { k00, k01, k02, k03 }, \ | ||
| 31 | { k10, k11, k12, k13 }, \ | ||
| 32 | { k20, k21, k22, k23 }, \ | ||
| 33 | { k30, k31, k32, k33 }, \ | ||
| 34 | { k40, k41, k42, k43 }, \ | ||
| 35 | { k50, k51, k52, k53 } \ | ||
| 36 | } | ||
| 37 | |||
| 38 | #define LAYOUT_ortho_5x4( \ | ||
| 39 | k00, k01, k02, k03, \ | ||
| 40 | k10, k11, k12, k13, \ | ||
| 41 | k20, k21, k22, k23, \ | ||
| 42 | k30, k31, k32, k33, \ | ||
| 43 | k40, k41, k42, k43 \ | ||
| 44 | ) \ | ||
| 45 | { \ | ||
| 46 | { k00, k01, k02, k03 }, \ | ||
| 47 | { k10, k11, k12, k13 }, \ | ||
| 48 | { k20, k21, k22, k23 }, \ | ||
| 49 | { k30, k31, k32, k33 }, \ | ||
| 50 | { k40, k41, k42, k43 }, \ | ||
| 51 | { KC_NO, KC_NO, KC_NO, KC_NO } \ | ||
| 52 | } | ||
| 53 | |||
| 54 | #define LAYOUT_numpad_6x4( \ | ||
| 55 | k00, k01, k02, k03, \ | ||
| 56 | k10, k11, k12, k13, \ | ||
| 57 | k20, k21, k22, \ | ||
| 58 | k30, k31, k32, k23, \ | ||
| 59 | k40, k41, k42, \ | ||
| 60 | k50, k52, k43 \ | ||
| 61 | ) \ | ||
| 62 | { \ | ||
| 63 | { k00, k01, k02, k03 }, \ | ||
| 64 | { k10, k11, k12, k13 }, \ | ||
| 65 | { k20, k21, k22, k23 }, \ | ||
| 66 | { k30, k31, k32, KC_NO }, \ | ||
| 67 | { k40, k41, k42, k43 }, \ | ||
| 68 | { k50, KC_NO, k52, KC_NO } \ | ||
| 69 | } | ||
| 70 | |||
| 71 | #define LAYOUT_numpad_5x4( \ | ||
| 72 | k00, k01, k02, k03, \ | ||
| 73 | k10, k11, k12, \ | ||
| 74 | k20, k21, k22, k13, \ | ||
| 75 | k30, k31, k32, \ | ||
| 76 | k40, k42, k33 \ | ||
| 77 | ) \ | ||
| 78 | { \ | ||
| 79 | { k00, k01, k02, k03 }, \ | ||
| 80 | { k10, k11, k12, k13 }, \ | ||
| 81 | { k20, k21, k22, KC_NO }, \ | ||
| 82 | { k30, k31, k32, k33 }, \ | ||
| 83 | { k40, KC_NO, k42, KC_NO }, \ | ||
| 84 | { KC_NO, KC_NO, KC_NO, KC_NO } \ | ||
| 85 | } | ||
diff --git a/keyboards/redscarf_i/rules.mk b/keyboards/redscarf_i/rules.mk new file mode 100644 index 000000000..2724fe6db --- /dev/null +++ b/keyboards/redscarf_i/rules.mk | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | # Teensy halfkay | ||
| 6 | # Pro Micro caterina | ||
| 7 | # Atmel DFU atmel-dfu | ||
| 8 | # LUFA DFU lufa-dfu | ||
| 9 | # QMK DFU qmk-dfu | ||
| 10 | # ATmega32A bootloadHID | ||
| 11 | # ATmega328P USBasp | ||
| 12 | BOOTLOADER = atmel-dfu | ||
| 13 | |||
| 14 | # Build Options | ||
| 15 | # change yes to no to disable | ||
| 16 | # | ||
| 17 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration | ||
| 18 | MOUSEKEY_ENABLE = no # Mouse keys | ||
| 19 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 20 | CONSOLE_ENABLE = no # Console for debug | ||
| 21 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 22 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 23 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 24 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
| 25 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 26 | MIDI_ENABLE = no # MIDI support | ||
| 27 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 28 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 29 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | ||
| 30 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs | ||
| 31 | UNICODE_ENABLE = no # Unicode | ||
| 32 | |||
| 33 | LAYOUTS = ortho_5x4 ortho_6x4 numpad_5x4 numpad_6x4 | ||
