diff options
| author | AlisGraveNil <63020540+AlisGraveNil@users.noreply.github.com> | 2020-10-24 12:17:07 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-24 19:17:07 +0100 |
| commit | 14cb662280852f6cd4d84dae9e46c00fdd971ef4 (patch) | |
| tree | 105e2a7755317e89f82b53f94370d7e0f7790ee4 /keyboards/clawsome | |
| parent | 3d183ed7a0af937279eea5f981be505f0d13dc07 (diff) | |
| download | qmk_firmware-14cb662280852f6cd4d84dae9e46c00fdd971ef4.tar.gz qmk_firmware-14cb662280852f6cd4d84dae9e46c00fdd971ef4.zip | |
[keyboard] Add Roadster support (#10698)
* Roadster
* Update keyboards/clawsome/roadster/rules.mk
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/clawsome/roadster/config.h
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/clawsome')
| -rw-r--r-- | keyboards/clawsome/roadster/config.h | 46 | ||||
| -rw-r--r-- | keyboards/clawsome/roadster/info.json | 58 | ||||
| -rw-r--r-- | keyboards/clawsome/roadster/keymaps/default/keymap.c | 27 | ||||
| -rw-r--r-- | keyboards/clawsome/roadster/readme.md | 13 | ||||
| -rw-r--r-- | keyboards/clawsome/roadster/roadster.c | 16 | ||||
| -rw-r--r-- | keyboards/clawsome/roadster/roadster.h | 30 | ||||
| -rw-r--r-- | keyboards/clawsome/roadster/rules.mk | 22 |
7 files changed, 212 insertions, 0 deletions
diff --git a/keyboards/clawsome/roadster/config.h b/keyboards/clawsome/roadster/config.h new file mode 100644 index 000000000..85f944213 --- /dev/null +++ b/keyboards/clawsome/roadster/config.h | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 AAClawson (AlisGraveNil) | ||
| 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 0x7767 | ||
| 24 | #define PRODUCT_ID 0x0000 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER AlisGraveNil | ||
| 27 | #define PRODUCT Roadster | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | #define MATRIX_ROWS 4 | ||
| 31 | #define MATRIX_COLS 12 | ||
| 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 { D2, D3, D0, D1 } | ||
| 44 | #define MATRIX_COL_PINS { D4, C6, D7, E6, B4, B5, B6, B2, B3, B1, F7, F6 } | ||
| 45 | |||
| 46 | #define DIODE_DIRECTION COL2ROW | ||
diff --git a/keyboards/clawsome/roadster/info.json b/keyboards/clawsome/roadster/info.json new file mode 100644 index 000000000..d48dd64f5 --- /dev/null +++ b/keyboards/clawsome/roadster/info.json | |||
| @@ -0,0 +1,58 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Roadster", | ||
| 3 | "url": "www.clawboards.xyz", | ||
| 4 | "maintainer": "AAClawson (AlisGraveNil)", | ||
| 5 | "width": 12, | ||
| 6 | "height": 4, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [ | ||
| 10 | {"label":"K00 (D2,D4)", "x":0, "y":0}, | ||
| 11 | {"label":"K01 (D2,C6)", "x":1, "y":0}, | ||
| 12 | {"label":"K02 (D2,D7)", "x":2, "y":0}, | ||
| 13 | {"label":"K03 (D2,E6)", "x":3, "y":0}, | ||
| 14 | {"label":"K04 (D2,B4)", "x":4, "y":0}, | ||
| 15 | {"label":"K05 (D2,B5)", "x":5, "y":0}, | ||
| 16 | {"label":"K06 (D2,B6)", "x":6, "y":0}, | ||
| 17 | {"label":"K07 (D2,B2)", "x":7, "y":0}, | ||
| 18 | {"label":"K08 (D2,B3)", "x":8, "y":0}, | ||
| 19 | {"label":"K09 (D2,B1)", "x":9, "y":0}, | ||
| 20 | {"label":"K0A (D2,F7)", "x":10, "y":0}, | ||
| 21 | {"label":"K0B (D2,F6)", "x":11, "y":0}, | ||
| 22 | {"label":"K10 (D3,D4)", "x":0, "y":1, "w":1.25}, | ||
| 23 | {"label":"K11 (D3,C6)", "x":1.25, "y":1}, | ||
| 24 | {"label":"K12 (D3,D7)", "x":2.25, "y":1}, | ||
| 25 | {"label":"K13 (D3,E6)", "x":3.25, "y":1}, | ||
| 26 | {"label":"K14 (D3,B4)", "x":4.25, "y":1}, | ||
| 27 | {"label":"K15 (D3,B5)", "x":5.25, "y":1}, | ||
| 28 | {"label":"K16 (D3,B6)", "x":6.25, "y":1}, | ||
| 29 | {"label":"K17 (D3,B2)", "x":7.25, "y":1}, | ||
| 30 | {"label":"K18 (D3,B3)", "x":8.25, "y":1}, | ||
| 31 | {"label":"K19 (D3,B1)", "x":9.25, "y":1}, | ||
| 32 | {"label":"K1B (D3,F6)", "x":10.25, "y":1, "w":1.75}, | ||
| 33 | {"label":"K20 (D0,D4)", "x":0, "y":2}, | ||
| 34 | {"label":"K21 (D0,C6)", "x":1, "y":2}, | ||
| 35 | {"label":"K22 (D0,D7)", "x":2, "y":2}, | ||
| 36 | {"label":"K23 (D0,E6)", "x":3, "y":2}, | ||
| 37 | {"label":"K24 (D0,B4)", "x":4, "y":2}, | ||
| 38 | {"label":"K25 (D0,B5)", "x":5, "y":2}, | ||
| 39 | {"label":"K26 (D0,B6)", "x":6, "y":2}, | ||
| 40 | {"label":"K27 (D0,B2)", "x":7, "y":2}, | ||
| 41 | {"label":"K28 (D0,B3)", "x":8, "y":2}, | ||
| 42 | {"label":"K29 (D0,B1)", "x":9, "y":2}, | ||
| 43 | {"label":"K2A (D0,F7)", "x":10, "y":2}, | ||
| 44 | {"label":"K2B (D0,F6)", "x":11, "y":2}, | ||
| 45 | {"label":"K30 (D1,D4)", "x":0, "y":3}, | ||
| 46 | {"label":"K31 (D1,C6)", "x":1, "y":3}, | ||
| 47 | {"label":"K32 (D1,D7)", "x":2, "y":3}, | ||
| 48 | {"label":"K34 (D1,B4)", "x":3, "y":3, "w":2}, | ||
| 49 | {"label":"K36 (D1,B6)", "x":5, "y":3, "w":2}, | ||
| 50 | {"label":"K38 (D1,B3)", "x":7, "y":3, "w":2}, | ||
| 51 | {"label":"K39 (D1,B1)", "x":9, "y":3}, | ||
| 52 | {"label":"K3A (D1,F7)", "x":10, "y":3}, | ||
| 53 | {"label":"K3B (D1,F6)", "x":11, "y":3} | ||
| 54 | ] | ||
| 55 | } | ||
| 56 | } | ||
| 57 | } | ||
| 58 | |||
diff --git a/keyboards/clawsome/roadster/keymaps/default/keymap.c b/keyboards/clawsome/roadster/keymaps/default/keymap.c new file mode 100644 index 000000000..55e121313 --- /dev/null +++ b/keyboards/clawsome/roadster/keymaps/default/keymap.c | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | /* Copyright 2020 AAClawson (AlisGraveNil) | ||
| 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 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 19 | [0] = LAYOUT( | ||
| 20 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_DEL, | ||
| 21 | KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT, | ||
| 22 | KC_LSFT, XXXXXXX, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_DOT, KC_UP, KC_LSFT, | ||
| 23 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 24 | ), | ||
| 25 | |||
| 26 | }; | ||
| 27 | |||
diff --git a/keyboards/clawsome/roadster/readme.md b/keyboards/clawsome/roadster/readme.md new file mode 100644 index 000000000..20c0f0ad5 --- /dev/null +++ b/keyboards/clawsome/roadster/readme.md | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | # Roadster | ||
| 2 | |||
| 3 | This is a 4x12 keyboard. | ||
| 4 | |||
| 5 | * Keyboard Maintainer: [AAClawson](https://github.com/AlisGraveNil) | ||
| 6 | * Hardware Supported: Roaster; Pro Micro or Elite-C | ||
| 7 | * Hardware Availability: [Clawsome Boards](https://www.clawboards.xyz/) | ||
| 8 | |||
| 9 | Make example for this keyboard (after setting up your build environment): | ||
| 10 | |||
| 11 | make clawsome/roadster:default | ||
| 12 | |||
| 13 | 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/clawsome/roadster/roadster.c b/keyboards/clawsome/roadster/roadster.c new file mode 100644 index 000000000..be57d7c2f --- /dev/null +++ b/keyboards/clawsome/roadster/roadster.c | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | /* Copyright 2020 AAClawson (AlisGraveNil) | ||
| 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 "roadster.h" \ No newline at end of file | ||
diff --git a/keyboards/clawsome/roadster/roadster.h b/keyboards/clawsome/roadster/roadster.h new file mode 100644 index 000000000..a30608517 --- /dev/null +++ b/keyboards/clawsome/roadster/roadster.h | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | /* Copyright 2020 AAClawson (AlisGraveNil) | ||
| 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 | #define LAYOUT( \ | ||
| 21 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \ | ||
| 22 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1B, \ | ||
| 23 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \ | ||
| 24 | K30, K31, K32, K34, K36, K38, K39, K3A, K3B \ | ||
| 25 | ) { \ | ||
| 26 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \ | ||
| 27 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, KC_NO, K1B }, \ | ||
| 28 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \ | ||
| 29 | { K30, K31, K32, KC_NO, K34, KC_NO, K36, KC_NO, K38, K39, K3A, K3B }, \ | ||
| 30 | } | ||
diff --git a/keyboards/clawsome/roadster/rules.mk b/keyboards/clawsome/roadster/rules.mk new file mode 100644 index 000000000..6b8d1b5f0 --- /dev/null +++ b/keyboards/clawsome/roadster/rules.mk | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = caterina | ||
| 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 = yes # Console for debug | ||
| 14 | COMMAND_ENABLE = yes # 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 = no # USB Nkey Rollover | ||
| 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 22 | AUDIO_ENABLE = no # Audio output | ||
