diff options
| author | Blake <blake@ghost7.com> | 2020-08-18 21:45:33 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-18 13:45:33 -0700 |
| commit | 66de3308e5b17c0c59692b2660f2ce3a33c99863 (patch) | |
| tree | d94e748ef89a051e048c475475c321f56546c7ac /keyboards | |
| parent | 0e542b297ddeff908d5b8f4a28730e2189421720 (diff) | |
| download | qmk_firmware-66de3308e5b17c0c59692b2660f2ce3a33c99863.tar.gz qmk_firmware-66de3308e5b17c0c59692b2660f2ce3a33c99863.zip | |
[Keyboard] Bento handwired macro pad (#9973)
* [Keyboard] Add ghostseven/bento
* Correct attribution, Dwin17
* Formatting change
* Markdown formating
* Update keyboards/ghostseven/bento/info.json
* Update keyboards/ghostseven/bento/readme.md
* Update keyboards/ghostseven/bento/rev1/config.h
* Update keyboards/ghostseven/bento/rev1/rules.mk
* Update keyboards/ghostseven/bento/rev1/rules.mk
* Update keyboards/ghostseven/bento/rev1/rules.mk
* Update keyboards/ghostseven/bento/rev1/rules.mk
* Update keyboards/ghostseven/bento/rev1/config.h
* Update keyboards/ghostseven/bento/rev1/rev1.c
* Update keyboards/ghostseven/bento/rev1/rev1.c
* Update keyboards/ghostseven/bento/rev1/config.h
* Update keyboards/ghostseven/bento/rev1/rules.mk
* Update keyboards/ghostseven/bento/readme.md
* Delete config.h
* Delete config.h
* Update rules.mk
* Rename keyboards/ghostseven/bento/readme.md to keyboards/handwired/bento/readme.md
* Rename keyboards/ghostseven/bento/rules.mk to keyboards/handwired/bento/rules.mk
* Rename keyboards/ghostseven/bento/info.json to keyboards/handwired/bento/info.json
* Rename keyboards/ghostseven/bento/bento.h to keyboards/handwired/bento/bento.h
* Rename keyboards/ghostseven/bento/bento.c to keyboards/handwired/bento/bento.c
* Rename keyboards/ghostseven/bento/rev1/rules.mk to keyboards/handwired/bento/rev1/rules.mk
* Rename keyboards/ghostseven/bento/rev1/rev1.h to keyboards/handwired/bento/rev1/rev1.h
* Rename keyboards/ghostseven/bento/rev1/rev1.c to keyboards/handwired/bento/rev1/rev1.c
* Rename keyboards/ghostseven/bento/rev1/config.h to keyboards/handwired/bento/rev1/config.h
* Rename keyboards/ghostseven/bento/keymaps/default/keymap.c to keyboards/handwired/bento/keymaps/default/keymap.c
* Update bento.h
* Change make location to handwired dir.
* added alt keymap submited by cbc02009
* Added mac dev keymap
* Licence updates
Diffstat (limited to 'keyboards')
| -rw-r--r-- | keyboards/handwired/bento/bento.c | 16 | ||||
| -rw-r--r-- | keyboards/handwired/bento/bento.h | 20 | ||||
| -rw-r--r-- | keyboards/handwired/bento/info.json | 19 | ||||
| -rw-r--r-- | keyboards/handwired/bento/keymaps/cbc02009/keymap.c | 41 | ||||
| -rw-r--r-- | keyboards/handwired/bento/keymaps/default/keymap.c | 50 | ||||
| -rw-r--r-- | keyboards/handwired/bento/keymaps/mac/keymap.c | 54 | ||||
| -rw-r--r-- | keyboards/handwired/bento/readme.md | 15 | ||||
| -rw-r--r-- | keyboards/handwired/bento/rev1/config.h | 59 | ||||
| -rw-r--r-- | keyboards/handwired/bento/rev1/rev1.c | 28 | ||||
| -rw-r--r-- | keyboards/handwired/bento/rev1/rev1.h | 36 | ||||
| -rw-r--r-- | keyboards/handwired/bento/rev1/rules.mk | 23 | ||||
| -rw-r--r-- | keyboards/handwired/bento/rules.mk | 1 |
12 files changed, 362 insertions, 0 deletions
diff --git a/keyboards/handwired/bento/bento.c b/keyboards/handwired/bento/bento.c new file mode 100644 index 000000000..904e0e5b6 --- /dev/null +++ b/keyboards/handwired/bento/bento.c | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | /* Copyright 2020 GhostSeven <work@ghost7.com> | ||
| 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 "bento.h" | ||
diff --git a/keyboards/handwired/bento/bento.h b/keyboards/handwired/bento/bento.h new file mode 100644 index 000000000..106882860 --- /dev/null +++ b/keyboards/handwired/bento/bento.h | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | /* Copyright 2020 GhostSeven <work@ghost7.com> | ||
| 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 | #ifdef KEYBOARD_handwired_bento_rev1 | ||
| 19 | #include "rev1.h" | ||
| 20 | #endif | ||
diff --git a/keyboards/handwired/bento/info.json b/keyboards/handwired/bento/info.json new file mode 100644 index 000000000..8339c6da3 --- /dev/null +++ b/keyboards/handwired/bento/info.json | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Bento Macropad", | ||
| 3 | "url": "https://www.thingiverse.com/thing:4416966", | ||
| 4 | "maintainer": "Ghostseven", | ||
| 5 | "width": 3, | ||
| 6 | "height": 2, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [ | ||
| 10 | {"x":0, "y":0}, | ||
| 11 | {"x":1, "y":0}, | ||
| 12 | {"x":2, "y":0}, | ||
| 13 | {"x":0, "y":1}, | ||
| 14 | {"x":1, "y":1}, | ||
| 15 | {"x":2, "y":1} | ||
| 16 | ] | ||
| 17 | } | ||
| 18 | } | ||
| 19 | } | ||
diff --git a/keyboards/handwired/bento/keymaps/cbc02009/keymap.c b/keyboards/handwired/bento/keymaps/cbc02009/keymap.c new file mode 100644 index 000000000..169e0f1dd --- /dev/null +++ b/keyboards/handwired/bento/keymaps/cbc02009/keymap.c | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | /* Copyright 2019 cbc02009 | ||
| 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 | |||
| 19 | /* LAYER 1 | ||
| 20 | * ,---------------+-------. | ||
| 21 | * |KC_MPRV|KC_MNXT|KC_MUTE| | ||
| 22 | * |-------+-------+-------, | ||
| 23 | * |KC_MPLY|KC_MSTP|KC_MUTE| | ||
| 24 | * `-------+-------+-------' | ||
| 25 | */ | ||
| 26 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 27 | [0] = LAYOUT(KC_MPRV, KC_MNXT, KC_MUTE, KC_MPLY, KC_MSTP, KC_MUTE) | ||
| 28 | }; | ||
| 29 | |||
| 30 | #ifdef ENCODER_ENABLE | ||
| 31 | #include "encoder.h" | ||
| 32 | void encoder_update_user(int8_t index, bool clockwise) { | ||
| 33 | if (index == 0) { /* First encoder */ | ||
| 34 | if (clockwise) { | ||
| 35 | tap_code(KC_VOLU); | ||
| 36 | } else { | ||
| 37 | tap_code(KC_VOLD); | ||
| 38 | } | ||
| 39 | } | ||
| 40 | } | ||
| 41 | #endif | ||
diff --git a/keyboards/handwired/bento/keymaps/default/keymap.c b/keyboards/handwired/bento/keymaps/default/keymap.c new file mode 100644 index 000000000..6a2cfa682 --- /dev/null +++ b/keyboards/handwired/bento/keymaps/default/keymap.c | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | /* Copyright 2020 GhostSeven <work@ghost7.com> | ||
| 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 | enum encoder_names { | ||
| 19 | _ENCODER | ||
| 20 | }; | ||
| 21 | |||
| 22 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 23 | /* | ||
| 24 | | | | Knob 1: Vol Dn/Up | | ||
| 25 | | Hold: Layer 2 | Up | Press: Mute | | ||
| 26 | | Left | Down | Right | | ||
| 27 | */ | ||
| 28 | [0] = LAYOUT( | ||
| 29 | MO(1), KC_UP, KC_MUTE, | ||
| 30 | KC_LEFT, KC_DOWN, KC_RGHT | ||
| 31 | ), | ||
| 32 | /* | ||
| 33 | | Held: Layer 2 | Home | RESET | | ||
| 34 | | Media Previous | End | Media Next | | ||
| 35 | */ | ||
| 36 | [1] = LAYOUT( | ||
| 37 | _______, KC_HOME, RESET, | ||
| 38 | KC_MPRV, KC_END , KC_MNXT | ||
| 39 | ), | ||
| 40 | }; | ||
| 41 | |||
| 42 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
| 43 | if (index == _ENCODER) { | ||
| 44 | if (clockwise) { | ||
| 45 | tap_code(KC_VOLU); | ||
| 46 | } else { | ||
| 47 | tap_code(KC_VOLD); | ||
| 48 | } | ||
| 49 | } | ||
| 50 | } | ||
diff --git a/keyboards/handwired/bento/keymaps/mac/keymap.c b/keyboards/handwired/bento/keymaps/mac/keymap.c new file mode 100644 index 000000000..29a7e809f --- /dev/null +++ b/keyboards/handwired/bento/keymaps/mac/keymap.c | |||
| @@ -0,0 +1,54 @@ | |||
| 1 | /* Copyright 2020 GhostSeven <work@ghost7.com> | ||
| 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 | #define _BASE 0 // Base layer | ||
| 18 | #define _CODE 1 // Code layer | ||
| 19 | |||
| 20 | enum encoder_names { | ||
| 21 | _ENCODER | ||
| 22 | }; | ||
| 23 | |||
| 24 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 25 | /* 0: Base Layer | ||
| 26 | * Media Prev / Hold L1 | Media Next | Mute | ||
| 27 | * Move Space Left | Mission Control | Move Space Right */ | ||
| 28 | [_BASE] = LAYOUT( | ||
| 29 | LT(_CODE, KC_MPRV), KC_MNXT, KC_MUTE, | ||
| 30 | C(KC_LEFT), C(KC_UP), C(KC_RIGHT) | ||
| 31 | ), | ||
| 32 | |||
| 33 | |||
| 34 | /* 1: Code layer | ||
| 35 | * ---- | Shift+CMD+B (Build VS Code) | DFU Mode | ||
| 36 | * Shift+CMD+C (FF Console) | Ctrl+Alt+U (Upload PIO) | Ctrl+Alt+S (Serial PIO) */ | ||
| 37 | [_CODE] = LAYOUT( | ||
| 38 | _______, S(G(KC_B)), RESET, | ||
| 39 | G(A(KC_C)), C(A(KC_U)), C(A(KC_S)) | ||
| 40 | ), | ||
| 41 | }; | ||
| 42 | |||
| 43 | |||
| 44 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
| 45 | if (index == _ENCODER) { | ||
| 46 | if (clockwise) { | ||
| 47 | tap_code(KC_VOLU); | ||
| 48 | } else { | ||
| 49 | tap_code(KC_VOLD); | ||
| 50 | } | ||
| 51 | } | ||
| 52 | } | ||
| 53 | |||
| 54 | |||
diff --git a/keyboards/handwired/bento/readme.md b/keyboards/handwired/bento/readme.md new file mode 100644 index 000000000..0c1373414 --- /dev/null +++ b/keyboards/handwired/bento/readme.md | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | # BENTO | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A hand wired 2x3 macropad with a rotary encoder at the upper right corner. | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [Dwin17](https://www.thingiverse.com/dwin17) - Hardware [GhostSeven](https://github.com/ghostseven) - QMK Firmware | ||
| 8 | * Hardware Supported: Pro Micro, Elite-C, Proton C | ||
| 9 | * Hardware Availability: [Thingiverse](https://www.thingiverse.com/thing:4416966) | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make handwired/bento/rev1: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/handwired/bento/rev1/config.h b/keyboards/handwired/bento/rev1/config.h new file mode 100644 index 000000000..9bb7ef666 --- /dev/null +++ b/keyboards/handwired/bento/rev1/config.h | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | /* Copyright 2020 GhostSeven <work@ghost7.com> | ||
| 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 0xFEED | ||
| 23 | #define PRODUCT_ID 0xDAD3 | ||
| 24 | #define DEVICE_VER 0x0100 | ||
| 25 | #define MANUFACTURER GhostSeven | ||
| 26 | #define PRODUCT Bento Macropad Rev. 1 | ||
| 27 | |||
| 28 | /* key matrix size */ | ||
| 29 | #define MATRIX_ROWS 2 | ||
| 30 | #define MATRIX_COLS 3 | ||
| 31 | |||
| 32 | /* Keyboard Matrix Assignments */ | ||
| 33 | #define DIRECT_PINS { \ | ||
| 34 | { D7, B1, D2 }, \ | ||
| 35 | { E6, B4, B2 } \ | ||
| 36 | } | ||
| 37 | |||
| 38 | #define ENCODERS_PAD_A { D1 } | ||
| 39 | #define ENCODERS_PAD_B { D0 } | ||
| 40 | |||
| 41 | #define RGB_DI_PIN D3 | ||
| 42 | #ifdef RGB_DI_PIN | ||
| 43 | #define RGBLED_NUM 4 | ||
| 44 | #define RGBLIGHT_HUE_STEP 8 | ||
| 45 | #define RGBLIGHT_SAT_STEP 8 | ||
| 46 | #define RGBLIGHT_VAL_STEP 8 | ||
| 47 | #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 48 | #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 49 | /*== all animations enable ==*/ | ||
| 50 | #define RGBLIGHT_ANIMATIONS | ||
| 51 | #endif | ||
| 52 | |||
| 53 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 54 | #define DEBOUNCE 5 | ||
| 55 | |||
| 56 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 57 | #define LOCKING_SUPPORT_ENABLE | ||
| 58 | /* Locking resynchronize hack */ | ||
| 59 | #define LOCKING_RESYNC_ENABLE | ||
diff --git a/keyboards/handwired/bento/rev1/rev1.c b/keyboards/handwired/bento/rev1/rev1.c new file mode 100644 index 000000000..8f195d3ef --- /dev/null +++ b/keyboards/handwired/bento/rev1/rev1.c | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | /* Copyright 2020 GhostSeven <work@ghost7.com> | ||
| 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 "rev1.h" | ||
| 17 | |||
| 18 | void eeconfig_init_kb(void) { | ||
| 19 | #ifdef RGBLIGHT_ENABLE | ||
| 20 | rgblight_enable(); // Enable RGB by default | ||
| 21 | rgblight_sethsv(0, 255, 255); // Set default HSV - red hue, full saturation, full brightness | ||
| 22 | #ifdef RGBLIGHT_ANIMATIONS | ||
| 23 | rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default | ||
| 24 | #endif | ||
| 25 | #endif | ||
| 26 | |||
| 27 | eeconfig_init_user(); | ||
| 28 | } | ||
diff --git a/keyboards/handwired/bento/rev1/rev1.h b/keyboards/handwired/bento/rev1/rev1.h new file mode 100644 index 000000000..a0b8ce279 --- /dev/null +++ b/keyboards/handwired/bento/rev1/rev1.h | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | /* Copyright 2020 GhostSeven <work@ghost7.com> | ||
| 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 "bento.h" | ||
| 19 | #include "quantum.h" | ||
| 20 | |||
| 21 | /* This a shortcut to help you visually see your layout. | ||
| 22 | * | ||
| 23 | * The first section contains all of the arguments representing the physical | ||
| 24 | * layout of the board and position of the keys. | ||
| 25 | * | ||
| 26 | * The second converts the arguments into a two-dimensional array which | ||
| 27 | * represents the switch matrix. | ||
| 28 | */ | ||
| 29 | #define LAYOUT( \ | ||
| 30 | KA1, KA2, KA3, \ | ||
| 31 | KB1, KB2, KB3 \ | ||
| 32 | ) \ | ||
| 33 | { \ | ||
| 34 | { KA1, KA2, KA3 }, \ | ||
| 35 | { KB1, KB2, KB3 } \ | ||
| 36 | } | ||
diff --git a/keyboards/handwired/bento/rev1/rules.mk b/keyboards/handwired/bento/rev1/rules.mk new file mode 100644 index 000000000..f7e3ef1e9 --- /dev/null +++ b/keyboards/handwired/bento/rev1/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 = no # Virtual DIP switch configuration | ||
| 11 | MOUSEKEY_ENABLE = no # 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 = yes # Enable keyboard RGB underglow | ||
| 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 22 | AUDIO_ENABLE = no # Audio output | ||
| 23 | ENCODER_ENABLE = yes | ||
diff --git a/keyboards/handwired/bento/rules.mk b/keyboards/handwired/bento/rules.mk new file mode 100644 index 000000000..e160faab8 --- /dev/null +++ b/keyboards/handwired/bento/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| DEFAULT_FOLDER = handwired/bento/rev1 | |||
