diff options
author | PollyV1 <70621744+PollyV1@users.noreply.github.com> | 2022-01-12 02:08:35 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-11 10:08:35 -0800 |
commit | 1fdc42155a19a415b2d574ccbf61aac45e6543aa (patch) | |
tree | e1a455e406c137f5143cde1b0dc26945aa33ee4a /keyboards/handwired | |
parent | 349ca4b7ff0c98baedbeb9096442231e2267c817 (diff) | |
download | qmk_firmware-1fdc42155a19a415b2d574ccbf61aac45e6543aa.tar.gz qmk_firmware-1fdc42155a19a415b2d574ccbf61aac45e6543aa.zip |
[Keyboard] Carpolly (#15778)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/handwired')
-rw-r--r-- | keyboards/handwired/carpolly/carpolly.c | 20 | ||||
-rw-r--r-- | keyboards/handwired/carpolly/carpolly.h | 36 | ||||
-rw-r--r-- | keyboards/handwired/carpolly/config.h | 49 | ||||
-rw-r--r-- | keyboards/handwired/carpolly/info.json | 55 | ||||
-rw-r--r-- | keyboards/handwired/carpolly/keymaps/default/keymap.c | 53 | ||||
-rw-r--r-- | keyboards/handwired/carpolly/readme.md | 30 | ||||
-rw-r--r-- | keyboards/handwired/carpolly/rules.mk | 22 |
7 files changed, 265 insertions, 0 deletions
diff --git a/keyboards/handwired/carpolly/carpolly.c b/keyboards/handwired/carpolly/carpolly.c new file mode 100644 index 000000000..119dfa962 --- /dev/null +++ b/keyboards/handwired/carpolly/carpolly.c | |||
@@ -0,0 +1,20 @@ | |||
1 | /* Copyright 2021 Paul Enrico N. Viola | ||
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 "carpolly.h" | ||
18 | |||
19 | // generated by KBFirmware JSON to QMK Parser | ||
20 | // https://noroadsleft.github.io/kbf_qmk_converter/ | ||
diff --git a/keyboards/handwired/carpolly/carpolly.h b/keyboards/handwired/carpolly/carpolly.h new file mode 100644 index 000000000..ddcf98fcd --- /dev/null +++ b/keyboards/handwired/carpolly/carpolly.h | |||
@@ -0,0 +1,36 @@ | |||
1 | /* Copyright 2021 Paul Enrico N. Viola | ||
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 XXX KC_NO | ||
22 | |||
23 | #define LAYOUT( \ | ||
24 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \ | ||
25 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1C, \ | ||
26 | K20, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, \ | ||
27 | K30, K31, K32, K36, K3A, K3B, K3C \ | ||
28 | ) { \ | ||
29 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, XXX }, \ | ||
30 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, XXX, K1C }, \ | ||
31 | { K20, XXX, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C }, \ | ||
32 | { K30, K31, K32, XXX, XXX, XXX, K36, XXX, XXX, XXX, K3A, K3B, K3C }, \ | ||
33 | } | ||
34 | |||
35 | // generated by KBFirmware JSON to QMK Parser | ||
36 | // https://noroadsleft.github.io/kbf_qmk_converter/ | ||
diff --git a/keyboards/handwired/carpolly/config.h b/keyboards/handwired/carpolly/config.h new file mode 100644 index 000000000..e0890cf7a --- /dev/null +++ b/keyboards/handwired/carpolly/config.h | |||
@@ -0,0 +1,49 @@ | |||
1 | /* Copyright 2021 Paul Enrico N. Viola | ||
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 | /* USB Device descriptor parameter */ | ||
22 | #define VENDOR_ID 0x6532 | ||
23 | #define PRODUCT_ID 0x0017 | ||
24 | #define DEVICE_VER 0x0001 | ||
25 | #define MANUFACTURER paul | ||
26 | #define PRODUCT Carpolly | ||
27 | |||
28 | /* key matrix size */ | ||
29 | #define MATRIX_ROWS 4 | ||
30 | #define MATRIX_COLS 13 | ||
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 | #define MATRIX_ROW_PINS { B0, B1, B2, B3 } | ||
43 | #define MATRIX_COL_PINS { F0, F1, F4, F5, F6, B6, B5, B4, D7, D6, D4, D5, C7 } | ||
44 | |||
45 | #define DIODE_DIRECTION COL2ROW | ||
46 | |||
47 | |||
48 | // generated by KBFirmware JSON to QMK Parser | ||
49 | // https://noroadsleft.github.io/kbf_qmk_converter/ | ||
diff --git a/keyboards/handwired/carpolly/info.json b/keyboards/handwired/carpolly/info.json new file mode 100644 index 000000000..7a7395e91 --- /dev/null +++ b/keyboards/handwired/carpolly/info.json | |||
@@ -0,0 +1,55 @@ | |||
1 | { | ||
2 | "keyboard_name": "Carpolly", | ||
3 | "url": "https://github.com/PollyV1", | ||
4 | "maintainer": "Paul Enrico N. Viola", | ||
5 | "layouts": { | ||
6 | "LAYOUT": { | ||
7 | "layout": [ | ||
8 | { "label": "K00 (B0,F0)", "x": 0, "y": 0 }, | ||
9 | { "label": "K01 (B0,F1)", "x": 1, "y": 0 }, | ||
10 | { "label": "K02 (B0,F4)", "x": 2, "y": 0 }, | ||
11 | { "label": "K03 (B0,F5)", "x": 3, "y": 0 }, | ||
12 | { "label": "K04 (B0,F6)", "x": 4, "y": 0 }, | ||
13 | { "label": "K05 (B0,B6)", "x": 5, "y": 0 }, | ||
14 | { "label": "K06 (B0,B5)", "x": 6, "y": 0 }, | ||
15 | { "label": "K07 (B0,B4)", "x": 7, "y": 0 }, | ||
16 | { "label": "K08 (B0,D7)", "x": 8, "y": 0 }, | ||
17 | { "label": "K09 (B0,D6)", "x": 9, "y": 0 }, | ||
18 | { "label": "K0A (B0,D4)", "x": 10, "y": 0 }, | ||
19 | { "label": "K0B (B0,D5)", "x": 11, "y": 0, "w": 1.75 }, | ||
20 | { "label": "K10 (B1,F0)", "x": 0, "y": 1, "w": 1.25 }, | ||
21 | { "label": "K11 (B1,F1)", "x": 1.25, "y": 1 }, | ||
22 | { "label": "K12 (B1,F4)", "x": 2.25, "y": 1 }, | ||
23 | { "label": "K13 (B1,F5)", "x": 3.25, "y": 1 }, | ||
24 | { "label": "K14 (B1,F6)", "x": 4.25, "y": 1 }, | ||
25 | { "label": "K15 (B1,B6)", "x": 5.25, "y": 1 }, | ||
26 | { "label": "K16 (B1,B5)", "x": 6.25, "y": 1 }, | ||
27 | { "label": "K17 (B1,B4)", "x": 7.25, "y": 1 }, | ||
28 | { "label": "K18 (B1,D7)", "x": 8.25, "y": 1 }, | ||
29 | { "label": "K19 (B1,D6)", "x": 9.25, "y": 1 }, | ||
30 | { "label": "K1A (B1,D4)", "x": 10.25, "y": 1 }, | ||
31 | { "label": "K1C (B1,C7)", "x": 11.25, "y": 1, "w": 1.5 }, | ||
32 | { "label": "K20 (B2,F0)", "x": 0, "y": 2, "w": 1.75 }, | ||
33 | { "label": "K22 (B2,F4)", "x": 1.75, "y": 2 }, | ||
34 | { "label": "K23 (B2,F5)", "x": 2.75, "y": 2 }, | ||
35 | { "label": "K24 (B2,F6)", "x": 3.75, "y": 2 }, | ||
36 | { "label": "K25 (B2,B6)", "x": 4.75, "y": 2 }, | ||
37 | { "label": "K26 (B2,B5)", "x": 5.75, "y": 2 }, | ||
38 | { "label": "K27 (B2,B4)", "x": 6.75, "y": 2 }, | ||
39 | { "label": "K28 (B2,D7)", "x": 7.75, "y": 2 }, | ||
40 | { "label": "K29 (B2,D6)", "x": 8.75, "y": 2 }, | ||
41 | { "label": "K2A (B2,D4)", "x": 9.75, "y": 2 }, | ||
42 | { "label": "K2B (B2,D5)", "x": 10.75, "y": 2 }, | ||
43 | { "label": "K2C (B2,C7)", "x": 11.75, "y": 2 }, | ||
44 | { "label": "K30 (B3,F0)", "x": 0, "y": 3, "w": 1.25 }, | ||
45 | { "label": "K31 (B3,F1)", "x": 1.25, "y": 3 }, | ||
46 | { "label": "K32 (B3,F4)", "x": 2.25, "y": 3, "w": 1.25 }, | ||
47 | { "label": "K36 (B3,B5)", "x": 3.5, "y": 3, "w": 6.25 }, | ||
48 | { "label": "K3A (B3,D4)", "x": 9.75, "y": 3 }, | ||
49 | { "label": "K3B (B3,D5)", "x": 10.75, "y": 3 }, | ||
50 | { "label": "K3C (B3,C7)", "x": 11.75, "y": 3 } | ||
51 | ] | ||
52 | } | ||
53 | } | ||
54 | ,"meta": "https://noroadsleft.github.io/kbf_qmk_converter/" | ||
55 | } | ||
diff --git a/keyboards/handwired/carpolly/keymaps/default/keymap.c b/keyboards/handwired/carpolly/keymaps/default/keymap.c new file mode 100644 index 000000000..78eb95a77 --- /dev/null +++ b/keyboards/handwired/carpolly/keymaps/default/keymap.c | |||
@@ -0,0 +1,53 @@ | |||
1 | /* Copyright 2021 Paul Enrico N. Vola | ||
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 | #define LT3_TAB LT(3, KC_TAB) | ||
20 | #define LT2_LAL LT(2, KC_LALT) | ||
21 | #define LT1_TAB LT(1, KC_LGUI) | ||
22 | |||
23 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
24 | |||
25 | [0] = LAYOUT( | ||
26 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
27 | LT3_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_COLN, KC_ENT, | ||
28 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_DOT, KC_SLSH, KC_UP, MO(1), | ||
29 | KC_LCTL, KC_LGUI, LT2_LAL, KC_SPC, KC_LEFT, KC_DOWN, KC_RGHT | ||
30 | ), | ||
31 | |||
32 | [1] = LAYOUT( | ||
33 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, | ||
34 | KC_CAPS, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_ENT, | ||
35 | KC_LSFT, KC_MPLY, KC_VOLD, KC_VOLU, _______, _______, _______, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, _______, | ||
36 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_HOME, KC_PGDN, KC_PGUP | ||
37 | ), | ||
38 | |||
39 | [2] = LAYOUT( | ||
40 | RESET, _______, _______, _______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL, KC_INS, | ||
41 | _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_LBRC, KC_RBRC, KC_BSLS, | ||
42 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_RSFT, _______, | ||
43 | _______, _______, _______, _______, _______, KC_DEL, KC_INS | ||
44 | ), | ||
45 | |||
46 | [3] = LAYOUT( | ||
47 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
48 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
49 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
50 | _______, _______, _______, KC_SPC, _______, _______, _______ | ||
51 | ), | ||
52 | |||
53 | }; | ||
diff --git a/keyboards/handwired/carpolly/readme.md b/keyboards/handwired/carpolly/readme.md new file mode 100644 index 000000000..e79bd543e --- /dev/null +++ b/keyboards/handwired/carpolly/readme.md | |||
@@ -0,0 +1,30 @@ | |||
1 | # carpolly | ||
2 | |||
3 |  | ||
4 | |||
5 | * Keyboard Maintainer: Paul Enrico N. Viola (https://github.com/PollyV1) | ||
6 | * Hardware Supported: Teensy 2 controller | ||
7 | * Hardware Availability: [PollyV1] https://github.com/PollyV1/Carpolly | ||
8 | |||
9 | carpolly - a handwired keyboard on a teensy 2 controller | ||
10 | |||
11 | ## Make | ||
12 | |||
13 | Make example for this keyboard (after setting up your build environment): | ||
14 | |||
15 | make handwired/carpolly:default | ||
16 | |||
17 | ## Flashing | ||
18 | |||
19 | Flashing example for this keyboard: | ||
20 | |||
21 | make handwired/carpolly:default:flash | ||
22 | |||
23 | 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). | ||
24 | |||
25 | ## Bootloader | ||
26 | |||
27 | Enter the bootloader in 2 ways: | ||
28 | |||
29 | * **Physical reset button**: Briefly press the RESET button on the controller. | ||
30 | * **Keycode in layout**: Longpress ALT + ESC | ||
diff --git a/keyboards/handwired/carpolly/rules.mk b/keyboards/handwired/carpolly/rules.mk new file mode 100644 index 000000000..a7f3367d8 --- /dev/null +++ b/keyboards/handwired/carpolly/rules.mk | |||
@@ -0,0 +1,22 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u4 | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = atmel-dfu | ||
6 | |||
7 | # Build Options | ||
8 | # change yes to no to disable | ||
9 | # | ||
10 | BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | ||
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 | NKRO_ENABLE = yes # Enable N-Key Rollover | ||
16 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
17 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
18 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
19 | AUDIO_ENABLE = no # Audio output | ||
20 | |||
21 | # generated by KBFirmware JSON to QMK Parser | ||
22 | # https://noroadsleft.github.io/kbf_qmk_converter/ | ||