diff options
| author | Spaceman <rionlion100@gmail.com> | 2020-09-22 03:33:39 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-22 00:33:39 -0700 |
| commit | 207f0b00fa14c853b0015c30b7c5482a19afc25a (patch) | |
| tree | 9f9a1538d4d5ff8ddb261f3b3054c1b51fc07aa2 | |
| parent | 4a37af79e90dbbc7df65d0c8011311c5e54d4d4f (diff) | |
| download | qmk_firmware-207f0b00fa14c853b0015c30b7c5482a19afc25a.tar.gz qmk_firmware-207f0b00fa14c853b0015c30b7c5482a19afc25a.zip | |
[Keyboard] add Handwired/Curiosity (#10369)
* Add curiosity
* Add default keymap
* Update config.h
* Apply suggestions from code review
* Update keyboards/handwired/curiosity/rules.mk
* Update keymap.c
* Apply suggestions from code review
| -rw-r--r-- | keyboards/handwired/curiosity/config.h | 44 | ||||
| -rw-r--r-- | keyboards/handwired/curiosity/curiosity.c | 16 | ||||
| -rw-r--r-- | keyboards/handwired/curiosity/curiosity.h | 41 | ||||
| -rw-r--r-- | keyboards/handwired/curiosity/info.json | 25 | ||||
| -rw-r--r-- | keyboards/handwired/curiosity/keymaps/default/keymap.c | 33 | ||||
| -rw-r--r-- | keyboards/handwired/curiosity/readme.md | 13 | ||||
| -rw-r--r-- | keyboards/handwired/curiosity/rules.mk | 23 |
7 files changed, 195 insertions, 0 deletions
diff --git a/keyboards/handwired/curiosity/config.h b/keyboards/handwired/curiosity/config.h new file mode 100644 index 000000000..8b632a5ec --- /dev/null +++ b/keyboards/handwired/curiosity/config.h | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Spaceman | ||
| 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 0x5342 // "SB" | ||
| 24 | #define PRODUCT_ID 0x4355 // "CU" | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER Spaceman | ||
| 27 | #define PRODUCT Curiosity | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | #define MATRIX_ROWS 4 | ||
| 31 | #define MATRIX_COLS 12 | ||
| 32 | |||
| 33 | /* key matrix pins */ | ||
| 34 | #define MATRIX_ROW_PINS { D0, F7, F6, F5 } | ||
| 35 | #define MATRIX_COL_PINS { D3, D4, F4, C6, D7, E6, B5, B4, B1, B3, B2, B6 } | ||
| 36 | #define UNUSED_PINS | ||
| 37 | |||
| 38 | /* COL2ROW or ROW2COL */ | ||
| 39 | #define DIODE_DIRECTION COL2ROW | ||
| 40 | |||
| 41 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 42 | #define LOCKING_SUPPORT_ENABLE | ||
| 43 | /* Locking resynchronize hack */ | ||
| 44 | #define LOCKING_RESYNC_ENABLE | ||
diff --git a/keyboards/handwired/curiosity/curiosity.c b/keyboards/handwired/curiosity/curiosity.c new file mode 100644 index 000000000..e0a6e130e --- /dev/null +++ b/keyboards/handwired/curiosity/curiosity.c | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | /* Copyright 2020 Spaceman | ||
| 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 "curiosity.h" \ No newline at end of file | ||
diff --git a/keyboards/handwired/curiosity/curiosity.h b/keyboards/handwired/curiosity/curiosity.h new file mode 100644 index 000000000..a79bfa663 --- /dev/null +++ b/keyboards/handwired/curiosity/curiosity.h | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | /* Copyright 2020 Spaceman | ||
| 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_small_mods( \ | ||
| 21 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k3b, \ | ||
| 22 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k3a, \ | ||
| 23 | k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k39, \ | ||
| 24 | k30, k31, k32, k33, k34, k35, k36, k37, k38 \ | ||
| 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, k1a, k1b }, \ | ||
| 28 | { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b }, \ | ||
| 29 | { k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b }, \ | ||
| 30 | } | ||
| 31 | #define LAYOUT_large_mods( \ | ||
| 32 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k3b, \ | ||
| 33 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, \ | ||
| 34 | k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, \ | ||
| 35 | k30, k31, k32, k33, k34, k35, k36, k37, k38 \ | ||
| 36 | ) { \ | ||
| 37 | { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b }, \ | ||
| 38 | { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b }, \ | ||
| 39 | { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b }, \ | ||
| 40 | { k30, k31, k32, k33, k34, k35, k36, k37, k38, KC_NO, KC_NO, k3b }, \ | ||
| 41 | } | ||
diff --git a/keyboards/handwired/curiosity/info.json b/keyboards/handwired/curiosity/info.json new file mode 100644 index 000000000..333868e1a --- /dev/null +++ b/keyboards/handwired/curiosity/info.json | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Curiosity", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "Spaceman", | ||
| 5 | "width": 13.5, | ||
| 6 | "height": 4, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_small_mods": { | ||
| 9 | "layout": [ | ||
| 10 | {"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0}, {"x":6, "y":0}, {"x":7, "y":0}, {"x":8, "y":0}, {"x":9, "y":0}, {"x":10, "y":0}, {"x":11, "y":0}, {"x":12, "y":0, "w":1.5}, | ||
| 11 | {"x":0, "y":1, "w":1.25}, {"x":1.25, "y":1}, {"x":2.25, "y":1}, {"x":3.25, "y":1}, {"x":4.25, "y":1}, {"x":5.25, "y":1}, {"x":6.25, "y":1}, {"x":7.25, "y":1}, {"x":8.25, "y":1}, {"x":9.25, "y":1}, {"x":10.25, "y":1}, {"x":11.25, "y":1}, {"x":12.25, "y":1, "w":1.25}, | ||
| 12 | {"x":0, "y":2, "w":1.5}, {"x":1.5, "y":2}, {"x":2.5, "y":2}, {"x":3.5, "y":2}, {"x":4.5, "y":2}, {"x":5.5, "y":2}, {"x":6.5, "y":2}, {"x":7.5, "y":2}, {"x":8.5, "y":2}, {"x":9.5, "y":2}, {"x":10.5, "y":2}, {"x":11.5, "y":2}, {"x":12.5, "y":2}, | ||
| 13 | {"x":0.75, "y":3, "w":1.25}, {"x":2, "y":3, "w":1.25}, {"x":3.25, "y":3, "w":1.25}, {"x":4.5, "y":3, "w":2}, {"x":6.5, "y":3, "w":2.25}, {"x":8.75, "y":3}, {"x":9.75, "y":3}, {"x":10.75, "y":3}, {"x":11.75, "y":3} | ||
| 14 | ] | ||
| 15 | }, | ||
| 16 | "LAYOUT_large_mods": { | ||
| 17 | "layout": [ | ||
| 18 | {"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0}, {"x":6, "y":0}, {"x":7, "y":0}, {"x":8, "y":0}, {"x":9, "y":0}, {"x":10, "y":0}, {"x":11, "y":0}, {"x":12, "y":0, "w":1.5}, | ||
| 19 | {"x":0, "y":1, "w":1.25}, {"x":1.25, "y":1}, {"x":2.25, "y":1}, {"x":3.25, "y":1}, {"x":4.25, "y":1}, {"x":5.25, "y":1}, {"x":6.25, "y":1}, {"x":7.25, "y":1}, {"x":8.25, "y":1}, {"x":9.25, "y":1}, {"x":10.25, "y":1}, {"x":11.25, "y":1, "w":2.25}, | ||
| 20 | {"x":0, "y":2, "w":1.5}, {"x":1.5, "y":2}, {"x":2.5, "y":2}, {"x":3.5, "y":2}, {"x":4.5, "y":2}, {"x":5.5, "y":2}, {"x":6.5, "y":2}, {"x":7.5, "y":2}, {"x":8.5, "y":2}, {"x":9.5, "y":2}, {"x":10.5, "y":2}, {"x":11.5, "y":2, "w":2}, | ||
| 21 | {"x":0.75, "y":3, "w":1.25}, {"x":2, "y":3, "w":1.25}, {"x":3.25, "y":3, "w":1.25}, {"x":4.5, "y":3, "w":2}, {"x":6.5, "y":3, "w":2.25}, {"x":8.75, "y":3}, {"x":9.75, "y":3}, {"x":10.75, "y":3}, {"x":11.75, "y":3} | ||
| 22 | ] | ||
| 23 | } | ||
| 24 | } | ||
| 25 | } | ||
diff --git a/keyboards/handwired/curiosity/keymaps/default/keymap.c b/keyboards/handwired/curiosity/keymaps/default/keymap.c new file mode 100644 index 000000000..741ad387d --- /dev/null +++ b/keyboards/handwired/curiosity/keymaps/default/keymap.c | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | /* Copyright 2020 Spaceman | ||
| 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 | |||
| 20 | [0] = LAYOUT_small_mods( | ||
| 21 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_DEL, KC_BSPC, | ||
| 22 | KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | ||
| 23 | KC_NO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, MO(1), KC_RSFT, | ||
| 24 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | ||
| 25 | ), | ||
| 26 | |||
| 27 | [1] = LAYOUT_small_mods( | ||
| 28 | KC_TRNS, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_TRNS, KC_TRNS, | ||
| 29 | 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, | ||
| 30 | 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, | ||
| 31 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 32 | ), | ||
| 33 | }; | ||
diff --git a/keyboards/handwired/curiosity/readme.md b/keyboards/handwired/curiosity/readme.md new file mode 100644 index 000000000..eaf608e22 --- /dev/null +++ b/keyboards/handwired/curiosity/readme.md | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | # The Curiosity | ||
| 2 | |||
| 3 | 40% Keyboard | ||
| 4 | |||
| 5 | * Keyboard Maintainer: [Spaceman](https://github.com/Spaceman) | ||
| 6 | * Hardware Supported: Curiosity PCB | ||
| 7 | * Hardware Availability: N/A | ||
| 8 | |||
| 9 | Make example for this keyboard (after setting up your build environment): | ||
| 10 | |||
| 11 | make handwired/curiosity: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/handwired/curiosity/rules.mk b/keyboards/handwired/curiosity/rules.mk new file mode 100644 index 000000000..dace27ef3 --- /dev/null +++ b/keyboards/handwired/curiosity/rules.mk | |||
| @@ -0,0 +1,23 @@ | |||
| 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 = yes # 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 = no # Enable keyboard RGB underglow | ||
| 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 22 | AUDIO_ENABLE = no # Audio output | ||
| 23 | LTO_ENABLE = no # Use link time optimization | ||
