diff options
| -rw-r--r-- | keyboards/pistachio/config.h | 80 | ||||
| -rw-r--r-- | keyboards/pistachio/info.json | 103 | ||||
| -rw-r--r-- | keyboards/pistachio/keymaps/default/keymap.c | 67 | ||||
| -rw-r--r-- | keyboards/pistachio/pistachio.c | 18 | ||||
| -rw-r--r-- | keyboards/pistachio/pistachio.h | 57 | ||||
| -rw-r--r-- | keyboards/pistachio/readme.md | 21 | ||||
| -rw-r--r-- | keyboards/pistachio/rules.mk | 23 |
7 files changed, 369 insertions, 0 deletions
diff --git a/keyboards/pistachio/config.h b/keyboards/pistachio/config.h new file mode 100644 index 000000000..e427f90ec --- /dev/null +++ b/keyboards/pistachio/config.h | |||
| @@ -0,0 +1,80 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 rate | ||
| 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 0xFEED | ||
| 24 | #define PRODUCT_ID 0xD0C2 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER rate | ||
| 27 | #define PRODUCT pistachio | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | #define MATRIX_ROWS 12 | ||
| 31 | #define MATRIX_COLS 9 | ||
| 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 { D4, C6, D7, E6, B4, B5 } | ||
| 44 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, B6, D3} | ||
| 45 | #define UNUSED_PINS | ||
| 46 | |||
| 47 | #define USE_I2C | ||
| 48 | |||
| 49 | /* COL2ROW, ROW2COL */ | ||
| 50 | #define DIODE_DIRECTION COL2ROW | ||
| 51 | |||
| 52 | /* ws2812 RGB LED */ | ||
| 53 | #define RGB_DI_PIN D2 | ||
| 54 | #define RGBLIGHT_SPLIT | ||
| 55 | #define RGBLED_SPLIT { 1, 1 } | ||
| 56 | #define RGBLED_NUM 2 | ||
| 57 | #define RGBLIGHT_LAYERS | ||
| 58 | #define RGBLIGHT_HUE_STEP 10 | ||
| 59 | #define RGBLIGHT_SAT_STEP 17 | ||
| 60 | |||
| 61 | #if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE) | ||
| 62 | #define USB_MAX_POWER_CONSUMPTION 400 | ||
| 63 | #else | ||
| 64 | #define USB_MAX_POWER_CONSUMPTION 100 | ||
| 65 | #endif | ||
| 66 | |||
| 67 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 68 | #define DEBOUNCE 5 | ||
| 69 | |||
| 70 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 71 | #define LOCKING_SUPPORT_ENABLE | ||
| 72 | /* Locking resynchronize hack */ | ||
| 73 | #define LOCKING_RESYNC_ENABLE | ||
| 74 | |||
| 75 | /* nKey Rollover */ | ||
| 76 | #define FORCE_NKRO | ||
| 77 | |||
| 78 | /* disable these deprecated features by default */ | ||
| 79 | #define NO_ACTION_MACRO | ||
| 80 | #define NO_ACTION_FUNCTION | ||
diff --git a/keyboards/pistachio/info.json b/keyboards/pistachio/info.json new file mode 100644 index 000000000..47f953b28 --- /dev/null +++ b/keyboards/pistachio/info.json | |||
| @@ -0,0 +1,103 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Pistachio", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "rate", | ||
| 5 | "width": 19.25, | ||
| 6 | "height": 6.75, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [{"label":"ESC", "x":1.25, "y":0.25}, | ||
| 10 | {"label":"F1", "x":2.75, "y":0.25}, | ||
| 11 | {"label":"F2", "x":3.75, "y":0.25}, | ||
| 12 | {"label":"F3", "x":4.75, "y":0.25}, | ||
| 13 | {"label":"F4", "x":5.75, "y":0.25}, | ||
| 14 | {"label":"DEL", "x":7.25, "y":0.25}, | ||
| 15 | {"label":"F5", "x":9.5, "y":0.25}, | ||
| 16 | {"label":"F6", "x":10.5, "y":0.25}, | ||
| 17 | {"label":"F7", "x":11.5, "y":0.25}, | ||
| 18 | {"label":"F8", "x":12.5, "y":0.25}, | ||
| 19 | {"label":"F9", "x":14, "y":0.25}, | ||
| 20 | {"label":"F10", "x":15, "y":0.25}, | ||
| 21 | {"label":"F11", "x":16, "y":0.25}, | ||
| 22 | {"label":"F12", "x":17, "y":0.25}, | ||
| 23 | {"label":"\u25b6\u25b6|", "x":0, "y":1.75}, | ||
| 24 | {"label":"E/J", "x":1.25, "y":1.75}, | ||
| 25 | {"label":"!", "x":2.25, "y":1.75}, | ||
| 26 | {"label":"\"", "x":3.25, "y":1.75}, | ||
| 27 | {"label":"#", "x":4.25, "y":1.75}, | ||
| 28 | {"label":"$", "x":5.25, "y":1.75}, | ||
| 29 | {"label":"%", "x":6.25, "y":1.75}, | ||
| 30 | {"label":"&", "x":7.25, "y":1.75}, | ||
| 31 | {"label":"'", "x":10, "y":1.75}, | ||
| 32 | {"label":"(", "x":11, "y":1.75}, | ||
| 33 | {"label":")", "x":12, "y":1.75}, | ||
| 34 | {"label":"", "x":13, "y":1.75}, | ||
| 35 | {"label":"=", "x":14, "y":1.75}, | ||
| 36 | {"label":"~", "x":15, "y":1.75}, | ||
| 37 | {"label":"\\", "x":16, "y":1.75}, | ||
| 38 | {"label":"\u2190", "x":17, "y":1.75}, | ||
| 39 | {"label":"Delete", "x":18.25, "y":1.75}, | ||
| 40 | {"label":"\u25b6||", "x":0, "y":2.75}, | ||
| 41 | {"label":"Tab", "x":1.25, "y":2.75, "w":1.5}, | ||
| 42 | {"label":"Q", "x":2.75, "y":2.75}, | ||
| 43 | {"label":"W", "x":3.75, "y":2.75}, | ||
| 44 | {"label":"E", "x":4.75, "y":2.75}, | ||
| 45 | {"label":"R", "x":5.75, "y":2.75}, | ||
| 46 | {"label":"T", "x":6.75, "y":2.75}, | ||
| 47 | {"label":"Y", "x":9.5, "y":2.75}, | ||
| 48 | {"label":"U", "x":10.5, "y":2.75}, | ||
| 49 | {"label":"I", "x":11.5, "y":2.75}, | ||
| 50 | {"label":"O", "x":12.5, "y":2.75}, | ||
| 51 | {"label":"P", "x":13.5, "y":2.75}, | ||
| 52 | {"label":"`", "x":14.5, "y":2.75}, | ||
| 53 | {"label":"{", "x":15.5, "y":2.75}, | ||
| 54 | {"label":"Home", "x":18.25, "y":2.75}, | ||
| 55 | {"label":"\ud83d\udd07", "x":0, "y":3.75}, | ||
| 56 | {"label":"CapsLock", "x":1.25, "y":3.75, "w":1.75}, | ||
| 57 | {"label":"A", "x":3, "y":3.75}, | ||
| 58 | {"label":"S", "x":4, "y":3.75}, | ||
| 59 | {"label":"D", "x":5, "y":3.75}, | ||
| 60 | {"label":"F", "x":6, "y":3.75}, | ||
| 61 | {"label":"G", "x":7, "y":3.75}, | ||
| 62 | {"label":"H", "x":9.75, "y":3.75}, | ||
| 63 | {"label":"J", "x":10.75, "y":3.75}, | ||
| 64 | {"label":"K", "x":11.75, "y":3.75}, | ||
| 65 | {"label":"L", "x":12.75, "y":3.75}, | ||
| 66 | {"label":"+", "x":13.75, "y":3.75}, | ||
| 67 | {"label":"*", "x":14.75, "y":3.75}, | ||
| 68 | {"label":"}", "x":15.75, "y":3.75}, | ||
| 69 | {"label":"Enter", "x":16.75, "y":2.75, "w":1.25, "h":2}, | ||
| 70 | {"label":"End", "x":18.25, "y":3.75}, | ||
| 71 | {"label":"VolUP", "x":0, "y":4.75}, | ||
| 72 | {"label":"Shift", "x":1.25, "y":4.75, "w":2.25}, | ||
| 73 | {"label":"Z", "x":3.5, "y":4.75}, | ||
| 74 | {"label":"X", "x":4.5, "y":4.75}, | ||
| 75 | {"label":"C", "x":5.5, "y":4.75}, | ||
| 76 | {"label":"V", "x":6.5, "y":4.75}, | ||
| 77 | {"label":"B", "x":7.5, "y":4.75}, | ||
| 78 | {"label":"N", "x":10.25, "y":4.75}, | ||
| 79 | {"label":"M", "x":11.25, "y":4.75}, | ||
| 80 | {"label":"<", "x":12.25, "y":4.75}, | ||
| 81 | {"label":">", "x":13.25, "y":4.75}, | ||
| 82 | {"label":"?", "x":14.25, "y":4.75}, | ||
| 83 | {"label":"_", "x":15.25, "y":4.75}, | ||
| 84 | {"label":"Shift", "x":16.25, "y":4.75, "w":1.75}, | ||
| 85 | {"label":"Page", "x":18.25, "y":4.75}, | ||
| 86 | {"label":"VolDW", "x":0, "y":5.75}, | ||
| 87 | {"label":"Ctrl", "x":1.25, "y":5.75, "w":1.25}, | ||
| 88 | {"label":"Win", "x":2.5, "y":5.75}, | ||
| 89 | {"label":"Alt", "x":3.5, "y":5.75, "w":1.25}, | ||
| 90 | {"label":"Enter", "x":4.75, "y":5.75}, | ||
| 91 | {"label":"\u7121\u5909\u63db", "x":5.75, "y":5.75}, | ||
| 92 | {"x":6.75, "y":5.75, "w":1.25}, | ||
| 93 | {"x":10.5, "y":5.75, "w":1.25}, | ||
| 94 | {"label":"\u5909\u63db", "x":11.75, "y":5.75}, | ||
| 95 | {"label":"\u5de6\u30af\u30ea\u30c3\u30af", "x":12.75, "y":5.75}, | ||
| 96 | {"label":"Insert", "x":13.75, "y":5.75}, | ||
| 97 | {"label":"Alt", "x":14.75, "y":5.75}, | ||
| 98 | {"label":"Menu", "x":15.75, "y":5.75}, | ||
| 99 | {"label":"Ctrl", "x":16.75, "y":5.75, "w":1.25}, | ||
| 100 | {"label":"Page", "x":18.25, "y":5.75}] | ||
| 101 | } | ||
| 102 | } | ||
| 103 | } | ||
diff --git a/keyboards/pistachio/keymaps/default/keymap.c b/keyboards/pistachio/keymaps/default/keymap.c new file mode 100644 index 000000000..585807abd --- /dev/null +++ b/keyboards/pistachio/keymaps/default/keymap.c | |||
| @@ -0,0 +1,67 @@ | |||
| 1 | /* Copyright 2020 rate | ||
| 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 | #include "keymap_jp.h" | ||
| 18 | |||
| 19 | extern rgblight_config_t rgblight_config; | ||
| 20 | |||
| 21 | enum layer_names { | ||
| 22 | _QWERTY = 0, | ||
| 23 | _FN | ||
| 24 | }; | ||
| 25 | |||
| 26 | enum custom_keycodes { | ||
| 27 | RGB_RST = SAFE_RANGE | ||
| 28 | }; | ||
| 29 | |||
| 30 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 31 | [_QWERTY] = LAYOUT( | ||
| 32 | KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_DEL, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, | ||
| 33 | KC_MNXT, KC_ZKHK, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, JP_MINS, JP_CIRC, JP_YEN, KC_BSPC, KC_DEL, | ||
| 34 | KC_MPLY, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, JP_AT, JP_LBRC, KC_HOME, | ||
| 35 | KC_MUTE, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, JP_SCLN, JP_COLN, JP_RBRC, KC_ENT, KC_END, | ||
| 36 | KC_VOLU, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, JP_COMM, JP_DOT, JP_SLSH, JP_BSLS, KC_RSFT, KC_PGUP, | ||
| 37 | KC_VOLD, KC_LCTL, KC_LGUI, KC_LALT, KC_ENT, KC_MHEN, LT(_FN,KC_SPC), LT(_FN,KC_SPC), KC_HENK, KC_BTN1, KC_INS, KC_RALT, KC_APP, KC_RCTL, KC_PGDN | ||
| 38 | ), | ||
| 39 | [_FN] = LAYOUT( | ||
| 40 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 41 | RGB_VAI, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 42 | RGB_VAD, _______, _______, _______, _______, KC_UP, _______, KC_HOME, KC_PGUP, KC_END, _______, _______, _______, _______, _______, | ||
| 43 | _______, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, KC_LEFT, KC_UP, KC_DOWN, KC_RGHT, _______, _______, _______, _______, _______, | ||
| 44 | RGB_HUI, _______, _______, _______, _______, _______, _______, KC_PGDN, _______, _______, _______, _______, _______, _______, RGB_SAI, | ||
| 45 | RGB_HUD, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_SAD | ||
| 46 | ) | ||
| 47 | }; | ||
| 48 | |||
| 49 | |||
| 50 | int RGB_current_mode; | ||
| 51 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 52 | bool result = false; | ||
| 53 | switch (keycode) { | ||
| 54 | case RGB_RST: | ||
| 55 | if (record->event.pressed) { | ||
| 56 | eeconfig_update_rgblight_default(); | ||
| 57 | rgblight_enable(); | ||
| 58 | RGB_current_mode = rgblight_config.mode; | ||
| 59 | } | ||
| 60 | break; | ||
| 61 | default: | ||
| 62 | result = true; | ||
| 63 | break; | ||
| 64 | } | ||
| 65 | |||
| 66 | return result; | ||
| 67 | } | ||
diff --git a/keyboards/pistachio/pistachio.c b/keyboards/pistachio/pistachio.c new file mode 100644 index 000000000..2a850f64a --- /dev/null +++ b/keyboards/pistachio/pistachio.c | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | /* Copyright 2020 rate | ||
| 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 "pistachio.h" | ||
| 18 | |||
diff --git a/keyboards/pistachio/pistachio.h b/keyboards/pistachio/pistachio.h new file mode 100644 index 000000000..83196bfa7 --- /dev/null +++ b/keyboards/pistachio/pistachio.h | |||
| @@ -0,0 +1,57 @@ | |||
| 1 | /* Copyright 2020 rate | ||
| 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 | /* | ||
| 22 | * ,------------------------------------------------- ---------------------------------------------------------. | ||
| 23 | * | | L00 | | L01 | L02 | L03 | L04 | | L05 | | R00 | R01 | R02 | R03 | | R04 | R05 | R06 | R07 | | | ||
| 24 | * |-------------------------------------- ---------- ---------------------------------------------------------+ | ||
| 25 | * | L10 || L11 | L12 | L13 | L14 | L15 | L16 | L17 | | R10 | R11 | R12 | R13 | R14 | R15 | R16 | R17 || R18 | | ||
| 26 | * |------------------------------------------------- ---------------------------------------------------------+ | ||
| 27 | * | L20 || L21 | L22 | L23 | L24 | L25 | L26 | | R20 | R21 | R22 | R23 | R24 | R25 | R26 | R27 || R28 | | ||
| 28 | * |--------------------------------------------- ------------------------------------------- ------+ | ||
| 29 | * | L30 || L31 | L32 | L33 | L34 | L35 | L36 | | R30 | R31 | R32 | R33 | R34 | R35 | R36 | || R37 | | ||
| 30 | * |---------------------------------------------- -------------------------------------------------------+ | ||
| 31 | * | L40 || L41 | L42 | L43 | L44 | L45 | L46 | | R40 | R41 | R42 | R43 | R44 | R45 | R46 || R47 | | ||
| 32 | * |----------------------------------------------- -----------------------------------------------------+ | ||
| 33 | * | L50 || L51 | L52 | L53 | L54 | L55 | L56 | | R50 | R51 | R52 | R53 | R54 | R55 | R56 || R57 | | ||
| 34 | * |----------------------------------------------- ---------------------------------------------------- | ||
| 35 | */ | ||
| 36 | #define LAYOUT( \ | ||
| 37 | L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, R06, R07, \ | ||
| 38 | L10, L11, L12, L13, L14, L15, L16, L17, R10, R11, R12, R13, R14, R15, R16, R17, R18, \ | ||
| 39 | L20, L21, L22, L23, L24, L25, L26, R20, R21, R22, R23, R24, R25, R26, R28, \ | ||
| 40 | L30, L31, L32, L33, L34, L35, L36, R30, R31, R32, R33, R34, R35, R36, R27, R37, \ | ||
| 41 | L40, L41, L42, L43, L44, L45, L46, R40, R41, R42, R43, R44, R45, R46, R47, \ | ||
| 42 | L50, L51, L52, L53, L54, L55, L56, R50, R51, R52, R53, R54, R55, R56, R57 \ | ||
| 43 | ) \ | ||
| 44 | { \ | ||
| 45 | { L00, L01, L02, L03, L04, L05, KC_NO, KC_NO, KC_NO }, \ | ||
| 46 | { L10, L11, L12, L13, L14, L15, L16, L17, KC_NO }, \ | ||
| 47 | { L20, L21, L22, L23, L24, L25, L26, KC_NO, KC_NO }, \ | ||
| 48 | { L30, L31, L32, L33, L34, L35, L36, KC_NO, KC_NO }, \ | ||
| 49 | { L40, L41, L42, L43, L44, L45, L46, KC_NO, KC_NO }, \ | ||
| 50 | { L50, L51, L52, L53, L54, L55, L56, KC_NO, KC_NO }, \ | ||
| 51 | { R00, R01, R02, R03, R04, R05, R06, R07, KC_NO }, \ | ||
| 52 | { R10, R11, R12, R13, R14, R15, R16, R17, R18 }, \ | ||
| 53 | { R20, R21, R22, R23, R24, R25, R26, R27, R28 }, \ | ||
| 54 | { R30, R31, R32, R33, R34, R35, R36, R37, KC_NO }, \ | ||
| 55 | { R40, R41, R42, R43, R44, R45, R46, R47, KC_NO }, \ | ||
| 56 | { R50, R51, R52, R53, R54, R55, R56, R57, KC_NO } \ | ||
| 57 | } | ||
diff --git a/keyboards/pistachio/readme.md b/keyboards/pistachio/readme.md new file mode 100644 index 000000000..fa073127f --- /dev/null +++ b/keyboards/pistachio/readme.md | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | # pistachio | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | This is a 92-key split keyboard with JIS layout and spare keys. | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [rate](https://github.com/7-rate) | ||
| 8 | * Hardware Supported: pistachio PCB, Pro Micro | ||
| 9 | * Hardware Availability: [PCB & Case Data](https://github.com/7-rate/Pistachio), [Booth Shop](https://rates.booth.pm/items/2237334) | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make pistachio:default | ||
| 14 | |||
| 15 | Flashing example for this keyboard: | ||
| 16 | |||
| 17 | make pistachio:default:flash | ||
| 18 | |||
| 19 | 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). | ||
| 20 | |||
| 21 | [Build guide](https://ratelog.net/pistachio-build-guide/) \ No newline at end of file | ||
diff --git a/keyboards/pistachio/rules.mk b/keyboards/pistachio/rules.mk new file mode 100644 index 000000000..178866419 --- /dev/null +++ b/keyboards/pistachio/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 = yes # Mouse keys | ||
| 12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 13 | CONSOLE_ENABLE = no # 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 = yes # 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 | SPLIT_KEYBOARD = yes # Enable split keyboard | ||
