diff options
| author | null-ll <55067100+null-ll@users.noreply.github.com> | 2020-10-23 16:18:55 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-23 14:18:55 -0700 |
| commit | b5f425b2759283b55a3d4bc1178d82be9304b530 (patch) | |
| tree | 8e8e153b5a036b1e2e48ce657e54087e9c7baf90 /keyboards/basketweave | |
| parent | 47ce1a9ed055da1460388693fb519af298d1aadd (diff) | |
| download | qmk_firmware-b5f425b2759283b55a3d4bc1178d82be9304b530.tar.gz qmk_firmware-b5f425b2759283b55a3d4bc1178d82be9304b530.zip | |
[Keyboard] add Basketweave keyboard (#10729)
* add basketweave keyboard
* Fixed missing key in info.json layout
* Update keyboards/basketweave/rules.mk
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/basketweave/readme.md
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/basketweave')
| -rw-r--r-- | keyboards/basketweave/basketweave.c | 17 | ||||
| -rw-r--r-- | keyboards/basketweave/basketweave.h | 35 | ||||
| -rw-r--r-- | keyboards/basketweave/config.h | 62 | ||||
| -rw-r--r-- | keyboards/basketweave/info.json | 12 | ||||
| -rw-r--r-- | keyboards/basketweave/keymaps/default/keymap.c | 50 | ||||
| -rw-r--r-- | keyboards/basketweave/readme.md | 15 | ||||
| -rw-r--r-- | keyboards/basketweave/rules.mk | 26 |
7 files changed, 217 insertions, 0 deletions
diff --git a/keyboards/basketweave/basketweave.c b/keyboards/basketweave/basketweave.c new file mode 100644 index 000000000..388810c9c --- /dev/null +++ b/keyboards/basketweave/basketweave.c | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | /* Copyright 2020 null-ll | ||
| 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 "basketweave.h" | ||
diff --git a/keyboards/basketweave/basketweave.h b/keyboards/basketweave/basketweave.h new file mode 100644 index 000000000..abceef76e --- /dev/null +++ b/keyboards/basketweave/basketweave.h | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | /* Copyright 2020 null-ll | ||
| 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 | #define ____ KC_NO | ||
| 20 | |||
| 21 | #include "quantum.h" | ||
| 22 | |||
| 23 | #define LAYOUT_default( \ | ||
| 24 | K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, \ | ||
| 25 | K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, \ | ||
| 26 | K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, \ | ||
| 27 | K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314, \ | ||
| 28 | K401, K402, K404, K406, K408, K410, K411, K412, K413, K414 \ | ||
| 29 | ) { \ | ||
| 30 | { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014 }, \ | ||
| 31 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114 }, \ | ||
| 32 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214 }, \ | ||
| 33 | { ____, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314 }, \ | ||
| 34 | { ____, K401, K402, ____, K404, ____, K406, ____, K408, ____, K410, K411, K412, K413, K414 } \ | ||
| 35 | } | ||
diff --git a/keyboards/basketweave/config.h b/keyboards/basketweave/config.h new file mode 100644 index 000000000..dcc4b2fe5 --- /dev/null +++ b/keyboards/basketweave/config.h | |||
| @@ -0,0 +1,62 @@ | |||
| 1 | /* Copyright 2020 null-ll | ||
| 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 | #define VENDOR_ID 0x6B62 | ||
| 22 | #define PRODUCT_ID 0x6869 | ||
| 23 | #define DEVICE_VER 0x0001 | ||
| 24 | #define MANUFACTURER Clackery | ||
| 25 | #define PRODUCT Basketweave | ||
| 26 | |||
| 27 | /* key matrix size */ | ||
| 28 | #define MATRIX_ROWS 5 | ||
| 29 | #define MATRIX_COLS 15 | ||
| 30 | |||
| 31 | #define MATRIX_ROW_PINS { A6, C6, C7, A7, A5 } | ||
| 32 | #define MATRIX_COL_PINS { A0, A1, A2, A3, A4, B0, B1, B2, D5, D6, C5, C4, C3, C2, C1 } | ||
| 33 | #define UNUSED_PINS | ||
| 34 | |||
| 35 | /* COL2ROW, ROW2COL*/ | ||
| 36 | #define DIODE_DIRECTION COL2ROW | ||
| 37 | |||
| 38 | #define USB_MAX_POWER_CONSUMPTION 100 | ||
| 39 | |||
| 40 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 41 | #define DEBOUNCE 5 | ||
| 42 | |||
| 43 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 44 | #define LOCKING_SUPPORT_ENABLE | ||
| 45 | /* Locking resynchronize hack */ | ||
| 46 | #define LOCKING_RESYNC_ENABLE | ||
| 47 | |||
| 48 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 49 | * This is userful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 50 | */ | ||
| 51 | // #define GRAVE_ESC_CTRL_OVERRIDE | ||
| 52 | |||
| 53 | #define ENCODERS_PAD_A { D7 } | ||
| 54 | #define ENCODERS_PAD_B { C0 } | ||
| 55 | #define ENCODER_RESOLUTION 4 | ||
| 56 | #define ENCODER_DIRECTION_FLIP | ||
| 57 | #define TAP_CODE_DELAY 10 | ||
| 58 | |||
| 59 | /* Bootmagic Lite key configuration */ | ||
| 60 | #define BOOTMAGIC_LITE_ROW 0 | ||
| 61 | #define BOOTMAGIC_LITE_COLUMN 0 | ||
| 62 | |||
diff --git a/keyboards/basketweave/info.json b/keyboards/basketweave/info.json new file mode 100644 index 000000000..436823b73 --- /dev/null +++ b/keyboards/basketweave/info.json | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Basketweave", | ||
| 3 | "url": "https://github.com/null-ll/basketweave", | ||
| 4 | "maintainer": "null-ll", | ||
| 5 | "width": 20, | ||
| 6 | "height": 5, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_default": { | ||
| 9 | "layout": [{"label":"Esc", "x":0, "y":0}, {"label":"~", "x":1.5, "y":0}, {"label":"!", "x":2.5, "y":0}, {"label":"@", "x":3.5, "y":0}, {"label":"#", "x":4.5, "y":0}, {"label":"$", "x":5.5, "y":0}, {"label":"%", "x":6.5, "y":0}, {"label":"^", "x":7.5, "y":0}, {"label":"&", "x":10.5, "y":0}, {"label":"*", "x":11.5, "y":0}, {"label":"(", "x":12.5, "y":0}, {"label":")", "x":13.5, "y":0}, {"label":"_", "x":14.5, "y":0}, {"label":"+", "x":15.5, "y":0}, {"label":"Backspace", "x":16.5, "y":0, "w":2}, {"label":"Mute", "x":19, "y":0.5}, {"label":"Delete", "x":0, "y":1}, {"label":"Tab", "x":1.5, "y":1, "w":1.5}, {"label":"Q", "x":3, "y":1}, {"label":"W", "x":4, "y":1}, {"label":"E", "x":5, "y":1}, {"label":"R", "x":6, "y":1}, {"label":"T", "x":7, "y":1}, {"label":"Y", "x":10, "y":1}, {"label":"U", "x":11, "y":1}, {"label":"I", "x":12, "y":1}, {"label":"O", "x":13, "y":1}, {"label":"P", "x":14, "y":1}, {"label":"{", "x":15, "y":1}, {"label":"}", "x":16, "y":1}, {"label":"|", "x":17, "y":1, "w":1.5}, {"label":"Insert", "x":0, "y":2}, {"label":"Caps Lock", "x":1.5, "y":2, "w":1.75}, {"label":"A", "x":3.25, "y":2}, {"label":"S", "x":4.25, "y":2}, {"label":"D", "x":5.25, "y":2}, {"label":"F", "x":6.25, "y":2}, {"label":"G", "x":7.25, "y":2}, {"label":"H", "x":10.25, "y":2}, {"label":"J", "x":11.25, "y":2}, {"label":"K", "x":12.25, "y":2}, {"label":"L", "x":13.25, "y":2}, {"label":":", "x":14.25, "y":2}, {"label":"\"", "x":15.25, "y":2}, {"label":"Enter", "x":16.25, "y":2, "w":2.25}, {"label":"Shift", "x":1.5, "y":3, "w":2.25}, {"label":"Z", "x":3.75, "y":3}, {"label":"X", "x":4.75, "y":3}, {"label":"C", "x":5.75, "y":3}, {"label":"V", "x":6.75, "y":3}, {"label":"B", "x":7.75, "y":3}, {"label":"B", "x":9.75, "y":3}, {"label":"N", "x":10.75, "y":3}, {"label":"M", "x":11.75, "y":3}, {"label":"<", "x":12.75, "y":3}, {"label":">", "x":13.75, "y":3}, {"label":"?", "x":14.75, "y":3}, {"label":"Shift", "x":15.75, "y":3, "w":1.75}, {"label":"\u2191", "x":17.75, "y":3}, {"label":"Ctrl", "x":1.5, "y":4, "w":1.5}, {"label":"Alt", "x":4.5, "y":4, "w":1.5}, {"x":6, "y":4, "w":2}, {"label":"Fn", "x":8, "y":4, "w":1.25}, {"x":9.75, "y":4, "w":2.75}, {"label":"Alt", "x":12.5, "y":4, "w":1.5}, {"label":"Ctrl", "x":15, "y":4, "w":1.5}, {"label":"\u2190", "x":16.75, "y":4}, {"label":"\u2193", "x":17.75, "y":4}, {"label":"\u2192", "x":18.75, "y":4}] | ||
| 10 | } | ||
| 11 | } | ||
| 12 | } \ No newline at end of file | ||
diff --git a/keyboards/basketweave/keymaps/default/keymap.c b/keyboards/basketweave/keymaps/default/keymap.c new file mode 100644 index 000000000..56bc4cbfd --- /dev/null +++ b/keyboards/basketweave/keymaps/default/keymap.c | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | /* Copyright 2020 null-ll | ||
| 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 "basketweave.h" | ||
| 18 | |||
| 19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 20 | |||
| 21 | [0] = LAYOUT_default( /* base */ | ||
| 22 | KC_GESC, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, | ||
| 23 | KC_INS, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, | ||
| 24 | KC_DEL, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_UP, | ||
| 25 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_RIGHT, | ||
| 26 | KC_LCTL, KC_LALT, KC_SPC, MO(1), KC_SPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_MUTE), | ||
| 27 | |||
| 28 | |||
| 29 | [1] = LAYOUT_default( /* fn */ | ||
| 30 | /* esc ` 1 2 3 4 5 6 7 8 9 0 - = bspc */ | ||
| 31 | KC_TRNS, KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_TRNS, | ||
| 32 | /* ins tab Q W E R T Y U I O P [ ] \ */ | ||
| 33 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_INS, KC_TRNS, KC_TRNS, KC_PSCR, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 34 | /* del caps A S D F G H J K L ; ' enter up */ | ||
| 35 | 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_INS, KC_TRNS, KC_PGUP, | ||
| 36 | /* shift Z X C V B B N M , . / shift right */ | ||
| 37 | KC_LSFT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MUTE, KC_TRNS, KC_TRNS, KC_TRNS, KC_RSFT, KC_END, | ||
| 38 | /* ctrl alt space fn space alt ctrl left down rotary */ | ||
| 39 | KC_LCTL, KC_LALT, KC_TRNS, KC_TRNS, KC_TRNS, KC_RALT, KC_RCTL, KC_HOME, KC_PGDN, KC_MPLY) | ||
| 40 | }; | ||
| 41 | |||
| 42 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
| 43 | if (index == 0) { | ||
| 44 | if (clockwise) { | ||
| 45 | tap_code(KC_VOLU); | ||
| 46 | } else { | ||
| 47 | tap_code(KC_VOLD); | ||
| 48 | } | ||
| 49 | } | ||
| 50 | } | ||
diff --git a/keyboards/basketweave/readme.md b/keyboards/basketweave/readme.md new file mode 100644 index 000000000..4523f0431 --- /dev/null +++ b/keyboards/basketweave/readme.md | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | # Basketweave | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A through-hole Alice style keyboard with arrow keys and a rotary encoder | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [null-ll](https://github.com/null-ll) | ||
| 8 | * Hardware Supported: atmega32a | ||
| 9 | * Hardware Availability: [Clackery](https://clackery.com), [Github](https://github.com/null-ll/basketweave) | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make basketweave: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/basketweave/rules.mk b/keyboards/basketweave/rules.mk new file mode 100644 index 000000000..1dfab0792 --- /dev/null +++ b/keyboards/basketweave/rules.mk | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32a | ||
| 3 | |||
| 4 | # Processor frequency | ||
| 5 | F_CPU = 16000000 | ||
| 6 | |||
| 7 | # Bootloader selection | ||
| 8 | BOOTLOADER = USBasp | ||
| 9 | |||
| 10 | # Build Options | ||
| 11 | # change yes to no to disable | ||
| 12 | # | ||
| 13 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
| 14 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 15 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 16 | CONSOLE_ENABLE = no # Console for debug | ||
| 17 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 18 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 19 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 20 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 21 | NKRO_ENABLE = no # USB Nkey Rollover | ||
| 22 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 23 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 24 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 25 | AUDIO_ENABLE = no # Audio output | ||
| 26 | ENCODER_ENABLE = yes | ||
