diff options
| -rw-r--r-- | keyboards/handwired/fruity60/config.h | 53 | ||||
| -rw-r--r-- | keyboards/handwired/fruity60/fruity60.c | 51 | ||||
| -rw-r--r-- | keyboards/handwired/fruity60/fruity60.h | 42 | ||||
| -rw-r--r-- | keyboards/handwired/fruity60/info.json | 12 | ||||
| -rw-r--r-- | keyboards/handwired/fruity60/keymaps/default/config.h | 19 | ||||
| -rw-r--r-- | keyboards/handwired/fruity60/keymaps/default/keymap.c | 25 | ||||
| -rw-r--r-- | keyboards/handwired/fruity60/keymaps/default/readme.md | 1 | ||||
| -rw-r--r-- | keyboards/handwired/fruity60/readme.md | 15 | ||||
| -rw-r--r-- | keyboards/handwired/fruity60/rules.mk | 38 | ||||
| -rw-r--r-- | users/yanfali/rules.mk | 3 |
10 files changed, 259 insertions, 0 deletions
diff --git a/keyboards/handwired/fruity60/config.h b/keyboards/handwired/fruity60/config.h new file mode 100644 index 000000000..5cccba3dc --- /dev/null +++ b/keyboards/handwired/fruity60/config.h | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2019 Yan-Fa Li | ||
| 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 0xB170 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER yanfali | ||
| 27 | #define PRODUCT fruity60 | ||
| 28 | #define DESCRIPTION An Adafruit BLE 32u4 capable 60 | ||
| 29 | |||
| 30 | /* key matrix size */ | ||
| 31 | #define MATRIX_ROWS 6 | ||
| 32 | #define MATRIX_COLS 11 | ||
| 33 | |||
| 34 | #define MATRIX_ROW_PINS \ | ||
| 35 | { B6, B5, D7, C6, D0, D1 } | ||
| 36 | #define MATRIX_COL_PINS \ | ||
| 37 | { F7, F6, F5, F4, F1, F0, D2, D3, B7, D6, C7 } | ||
| 38 | #define UNUSED_PINS | ||
| 39 | |||
| 40 | /* COL2ROW, ROW2COL*/ | ||
| 41 | #define DIODE_DIRECTION COL2ROW | ||
| 42 | |||
| 43 | |||
| 44 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 45 | #define DEBOUNCE 5 | ||
| 46 | |||
| 47 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 48 | //#define MATRIX_HAS_GHOST | ||
| 49 | |||
| 50 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 51 | #define LOCKING_SUPPORT_ENABLE | ||
| 52 | /* Locking resynchronize hack */ | ||
| 53 | #define LOCKING_RESYNC_ENABLE | ||
diff --git a/keyboards/handwired/fruity60/fruity60.c b/keyboards/handwired/fruity60/fruity60.c new file mode 100644 index 000000000..d68b17955 --- /dev/null +++ b/keyboards/handwired/fruity60/fruity60.c | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | /* Copyright 2019 Yan-Fa Li | ||
| 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 "fruity60.h" | ||
| 17 | |||
| 18 | // Optional override functions below. | ||
| 19 | // You can leave any or all of these undefined. | ||
| 20 | // These are only required if you want to perform custom actions. | ||
| 21 | |||
| 22 | /* | ||
| 23 | |||
| 24 | void matrix_init_kb(void) { | ||
| 25 | // put your keyboard start-up code here | ||
| 26 | // runs once when the firmware starts up | ||
| 27 | |||
| 28 | matrix_init_user(); | ||
| 29 | } | ||
| 30 | |||
| 31 | void matrix_scan_kb(void) { | ||
| 32 | // put your looping keyboard code here | ||
| 33 | // runs every cycle (a lot) | ||
| 34 | |||
| 35 | matrix_scan_user(); | ||
| 36 | } | ||
| 37 | |||
| 38 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | ||
| 39 | // put your per-action keyboard code here | ||
| 40 | // runs for every action, just before processing by the firmware | ||
| 41 | |||
| 42 | return process_record_user(keycode, record); | ||
| 43 | } | ||
| 44 | |||
| 45 | void led_set_kb(uint8_t usb_led) { | ||
| 46 | // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here | ||
| 47 | |||
| 48 | led_set_user(usb_led); | ||
| 49 | } | ||
| 50 | |||
| 51 | */ | ||
diff --git a/keyboards/handwired/fruity60/fruity60.h b/keyboards/handwired/fruity60/fruity60.h new file mode 100644 index 000000000..7eb2e7e6f --- /dev/null +++ b/keyboards/handwired/fruity60/fruity60.h | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | /* Copyright 2019 Yan-Fa Li | ||
| 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 | /* This a shortcut to help you visually see your layout. | ||
| 21 | * | ||
| 22 | * The first section contains all of the arguments representing the physical | ||
| 23 | * layout of the board and position of the keys. | ||
| 24 | * | ||
| 25 | * The second converts the arguments into a two-dimensional array which | ||
| 26 | * represents the switch matrix. | ||
| 27 | */ | ||
| 28 | #define LAYOUT_60_tsangan_hhkb( \ | ||
| 29 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k50, k51, k52, k53, \ | ||
| 30 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k54, k55, k56, \ | ||
| 31 | k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k57, k58, \ | ||
| 32 | k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k59, k5a, \ | ||
| 33 | k40, k41, k42, k45, k48, k49, k4a \ | ||
| 34 | ) \ | ||
| 35 | { \ | ||
| 36 | {k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a}, \ | ||
| 37 | {k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a}, \ | ||
| 38 | {k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a}, \ | ||
| 39 | {k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a}, \ | ||
| 40 | {k40, k41, k42, KC_NO, KC_NO, k45, KC_NO, KC_NO, k48, k49, k4a}, \ | ||
| 41 | {k50, k51, k52, k53, k54, k55, k56, k57, k58, k59, k5a}, \ | ||
| 42 | } | ||
diff --git a/keyboards/handwired/fruity60/info.json b/keyboards/handwired/fruity60/info.json new file mode 100644 index 000000000..7cf5e61d1 --- /dev/null +++ b/keyboards/handwired/fruity60/info.json | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "fruity60", | ||
| 3 | "url": "https://github.com/yanfali/fruity60", | ||
| 4 | "maintainer": "qmk", | ||
| 5 | "width": 15, | ||
| 6 | "height": 5, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [{"label":"~", "x":0, "y":0}, {"label":"!", "x":1, "y":0}, {"label":"@", "x":2, "y":0}, {"label":"#", "x":3, "y":0}, {"label":"$", "x":4, "y":0}, {"label":"%", "x":5, "y":0}, {"label":"^", "x":6, "y":0}, {"label":"&", "x":7, "y":0}, {"label":"*", "x":8, "y":0}, {"label":"(", "x":9, "y":0}, {"label":")", "x":10, "y":0}, {"label":"_", "x":11, "y":0}, {"label":"+", "x":12, "y":0}, {"x":13, "y":0}, {"label":"Backspace", "x":14, "y":0}, {"label":"Tab", "x":0, "y":1, "w":1.5}, {"label":"Q", "x":1.5, "y":1}, {"label":"W", "x":2.5, "y":1}, {"label":"E", "x":3.5, "y":1}, {"label":"R", "x":4.5, "y":1}, {"label":"T", "x":5.5, "y":1}, {"label":"Y", "x":6.5, "y":1}, {"label":"U", "x":7.5, "y":1}, {"label":"I", "x":8.5, "y":1}, {"label":"O", "x":9.5, "y":1}, {"label":"P", "x":10.5, "y":1}, {"label":"{", "x":11.5, "y":1}, {"label":"}", "x":12.5, "y":1}, {"label":"|", "x":13.5, "y":1, "w":1.5}, {"label":"Caps Lock", "x":0, "y":2, "w":1.75}, {"label":"A", "x":1.75, "y":2}, {"label":"S", "x":2.75, "y":2}, {"label":"D", "x":3.75, "y":2}, {"label":"F", "x":4.75, "y":2}, {"label":"G", "x":5.75, "y":2}, {"label":"H", "x":6.75, "y":2}, {"label":"J", "x":7.75, "y":2}, {"label":"K", "x":8.75, "y":2}, {"label":"L", "x":9.75, "y":2}, {"label":":", "x":10.75, "y":2}, {"label":"\"", "x":11.75, "y":2}, {"label":"Enter", "x":12.75, "y":2, "w":2.25}, {"label":"Shift", "x":0, "y":3, "w":2.25}, {"label":"Z", "x":2.25, "y":3}, {"label":"X", "x":3.25, "y":3}, {"label":"C", "x":4.25, "y":3}, {"label":"V", "x":5.25, "y":3}, {"label":"B", "x":6.25, "y":3}, {"label":"N", "x":7.25, "y":3}, {"label":"M", "x":8.25, "y":3}, {"label":"<", "x":9.25, "y":3}, {"label":">", "x":10.25, "y":3}, {"label":"?", "x":11.25, "y":3}, {"label":"Shift", "x":12.25, "y":3, "w":1.75}, {"x":14, "y":3}, {"label":"Ctrl", "x":0, "y":4, "w":1.5}, {"label":"Win", "x":1.5, "y":4}, {"label":"Alt", "x":2.5, "y":4, "w":1.5}, {"x":4, "y":4, "w":7}, {"label":"Alt", "x":11, "y":4, "w":1.5}, {"label":"Win", "x":12.5, "y":4}, {"label":"Menu", "x":13.5, "y":4, "w":1.5}] | ||
| 10 | } | ||
| 11 | } | ||
| 12 | } | ||
diff --git a/keyboards/handwired/fruity60/keymaps/default/config.h b/keyboards/handwired/fruity60/keymaps/default/config.h new file mode 100644 index 000000000..7d7844ac6 --- /dev/null +++ b/keyboards/handwired/fruity60/keymaps/default/config.h | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | /* Copyright 2019 Yan-Fa Li | ||
| 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 | // place overrides here | ||
diff --git a/keyboards/handwired/fruity60/keymaps/default/keymap.c b/keyboards/handwired/fruity60/keymaps/default/keymap.c new file mode 100644 index 000000000..a6cd15f4e --- /dev/null +++ b/keyboards/handwired/fruity60/keymaps/default/keymap.c | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | |||
| 3 | enum layer { | ||
| 4 | BASE, | ||
| 5 | FN, | ||
| 6 | }; | ||
| 7 | |||
| 8 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 9 | [BASE] = LAYOUT_60_tsangan_hhkb( | ||
| 10 | KC_ESC, 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_GRV, KC_BSPC, | ||
| 11 | 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, | ||
| 12 | LCTL_T(KC_ESC), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | ||
| 13 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(FN), | ||
| 14 | KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RGUI, KC_RALT, KC_RCTL | ||
| 15 | ), | ||
| 16 | |||
| 17 | [FN] = LAYOUT_60_tsangan_hhkb( | ||
| 18 | _______, 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_INS, KC_DEL, | ||
| 19 | _______, _______, KC_UP, _______, _______, _______, _______, _______, _______, _______, _______, _______, EEP_RST, RESET, | ||
| 20 | KC_CAPS, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 21 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 22 | _______, _______, _______, _______, _______, _______, _______ | ||
| 23 | ), | ||
| 24 | |||
| 25 | }; | ||
diff --git a/keyboards/handwired/fruity60/keymaps/default/readme.md b/keyboards/handwired/fruity60/keymaps/default/readme.md new file mode 100644 index 000000000..7c01154cd --- /dev/null +++ b/keyboards/handwired/fruity60/keymaps/default/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The default keymap for fruity60 | |||
diff --git a/keyboards/handwired/fruity60/readme.md b/keyboards/handwired/fruity60/readme.md new file mode 100644 index 000000000..ed476d264 --- /dev/null +++ b/keyboards/handwired/fruity60/readme.md | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | # fruity60 | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A 60% tsangan, split bs/rs keyboard designed to support the bluefruit 32u4 ble controller | ||
| 6 | |||
| 7 | Keyboard Maintainer: [Yan-Fa Li](https://github.com/yanfali)<br> | ||
| 8 | Hardware Supported: [github](https://github.com/yanfali/fruity60)<br> | ||
| 9 | Hardware Availability: You can make them yourself by downloading kicad and generating gerbers.<br> | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make fruity60: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/fruity60/rules.mk b/keyboards/handwired/fruity60/rules.mk new file mode 100644 index 000000000..8c9bc95e5 --- /dev/null +++ b/keyboards/handwired/fruity60/rules.mk | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | # Teensy halfkay | ||
| 6 | # Pro Micro caterina | ||
| 7 | # Atmel DFU atmel-dfu | ||
| 8 | # LUFA DFU lufa-dfu | ||
| 9 | # QMK DFU qmk-dfu | ||
| 10 | # ATmega32A bootloadHID | ||
| 11 | # ATmega328P USBasp | ||
| 12 | BOOTLOADER = caterina | ||
| 13 | |||
| 14 | # Processor frequency | ||
| 15 | F_CPU = 8000000 | ||
| 16 | |||
| 17 | # Build Options | ||
| 18 | # change yes to no to disable | ||
| 19 | # | ||
| 20 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000) | ||
| 21 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
| 22 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 23 | CONSOLE_ENABLE = yes # Console for debug(+400) | ||
| 24 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 25 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 26 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 27 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 28 | NKRO_ENABLE = no # USB Nkey Rollover | ||
| 29 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 30 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 31 | MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) | ||
| 32 | UNICODE_ENABLE = no # Unicode | ||
| 33 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 34 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 35 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | ||
| 36 | BLUETOOTH = AdafruitBLE | ||
| 37 | |||
| 38 | LAYOUTS = 60_tsangan_hhkb | ||
diff --git a/users/yanfali/rules.mk b/users/yanfali/rules.mk index b52bd5562..c43f29858 100644 --- a/users/yanfali/rules.mk +++ b/users/yanfali/rules.mk | |||
| @@ -11,3 +11,6 @@ else | |||
| 11 | AUDIO_ENABLE = no | 11 | AUDIO_ENABLE = no |
| 12 | endif | 12 | endif |
| 13 | 13 | ||
| 14 | ifeq ($(strip $(KEYBOARD)), fruity60) | ||
| 15 | COMMAND_ENABLE = no | ||
| 16 | endif | ||
