diff options
| author | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2019-07-20 13:30:38 -0700 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2019-07-20 13:30:38 -0700 |
| commit | 7afae46ea6075a5410d230fb8c35eaacd1872ba2 (patch) | |
| tree | d6f3bf629d38d42c4f4456b6e5e33324c00fd0be | |
| parent | c6442998208a3e06695ac670ad0786100aee7040 (diff) | |
| download | qmk_firmware-7afae46ea6075a5410d230fb8c35eaacd1872ba2.tar.gz qmk_firmware-7afae46ea6075a5410d230fb8c35eaacd1872ba2.zip | |
[Keyboard] Grid 600 Type 05 "PRESS" Cover Module (#6368)
* add grid600 type 5 press cover module
* Update keyboards/grid600/press/keymaps/default/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* remove unused custom keycode enum
| -rw-r--r-- | keyboards/grid600/press/config.h | 78 | ||||
| -rw-r--r-- | keyboards/grid600/press/info.json | 12 | ||||
| -rw-r--r-- | keyboards/grid600/press/keymaps/default/config.h | 19 | ||||
| -rw-r--r-- | keyboards/grid600/press/keymaps/default/keymap.c | 34 | ||||
| -rw-r--r-- | keyboards/grid600/press/keymaps/default/readme.md | 1 | ||||
| -rw-r--r-- | keyboards/grid600/press/press.c | 16 | ||||
| -rw-r--r-- | keyboards/grid600/press/press.h | 32 | ||||
| -rw-r--r-- | keyboards/grid600/press/readme.md | 18 | ||||
| -rw-r--r-- | keyboards/grid600/press/rules.mk | 80 | ||||
| -rw-r--r-- | keyboards/grid600/readme.md | 7 |
10 files changed, 297 insertions, 0 deletions
diff --git a/keyboards/grid600/press/config.h b/keyboards/grid600/press/config.h new file mode 100644 index 000000000..7c9345700 --- /dev/null +++ b/keyboards/grid600/press/config.h | |||
| @@ -0,0 +1,78 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2019 mechmerlin | ||
| 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 0x7539 | ||
| 25 | #define DEVICE_VER 0x0005 | ||
| 26 | #define MANUFACTURER Grid | ||
| 27 | #define PRODUCT PRESS | ||
| 28 | #define DESCRIPTION Top module for Grid 600 | ||
| 29 | |||
| 30 | /* key matrix size */ | ||
| 31 | #define MATRIX_ROWS 1 | ||
| 32 | #define MATRIX_COLS 4 | ||
| 33 | |||
| 34 | /* | ||
| 35 | * Keyboard Matrix Assignments | ||
| 36 | * | ||
| 37 | * Change this to how you wired your keyboard | ||
| 38 | * COLS: AVR pins used for columns, left to right | ||
| 39 | * ROWS: AVR pins used for rows, top to bottom | ||
| 40 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 41 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 42 | * | ||
| 43 | */ | ||
| 44 | #define MATRIX_ROW_PINS { F0 } | ||
| 45 | #define MATRIX_COL_PINS { F1, F4, F5, F6 } | ||
| 46 | #define UNUSED_PINS | ||
| 47 | |||
| 48 | /* COL2ROW, ROW2COL*/ | ||
| 49 | #define DIODE_DIRECTION COL2ROW | ||
| 50 | |||
| 51 | |||
| 52 | #define RGB_DI_PIN B6 | ||
| 53 | #ifdef RGB_DI_PIN | ||
| 54 | #define RGBLED_NUM 4 | ||
| 55 | #define RGBLIGHT_HUE_STEP 10 | ||
| 56 | #define RGBLIGHT_SAT_STEP 17 | ||
| 57 | #define RGBLIGHT_VAL_STEP 17 | ||
| 58 | #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 59 | #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 60 | #define RGBLIGHT_ANIMATIONS | ||
| 61 | /*== customize breathing effect ==*/ | ||
| 62 | /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
| 63 | #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
| 64 | /*==== use exp() and sin() ====*/ | ||
| 65 | #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
| 66 | #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
| 67 | #endif | ||
| 68 | |||
| 69 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 70 | #define DEBOUNCE 5 | ||
| 71 | |||
| 72 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 73 | //#define MATRIX_HAS_GHOST | ||
| 74 | |||
| 75 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 76 | #define LOCKING_SUPPORT_ENABLE | ||
| 77 | /* Locking resynchronize hack */ | ||
| 78 | #define LOCKING_RESYNC_ENABLE | ||
diff --git a/keyboards/grid600/press/info.json b/keyboards/grid600/press/info.json new file mode 100644 index 000000000..131b094af --- /dev/null +++ b/keyboards/grid600/press/info.json | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Grid 600 Type 05 PRESS Cover Module", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "qmk", | ||
| 5 | "width": 4, | ||
| 6 | "height": 1, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}] | ||
| 10 | } | ||
| 11 | } | ||
| 12 | } \ No newline at end of file | ||
diff --git a/keyboards/grid600/press/keymaps/default/config.h b/keyboards/grid600/press/keymaps/default/config.h new file mode 100644 index 000000000..60dd02a9d --- /dev/null +++ b/keyboards/grid600/press/keymaps/default/config.h | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | /* Copyright 2019 mechmerlin | ||
| 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/grid600/press/keymaps/default/keymap.c b/keyboards/grid600/press/keymaps/default/keymap.c new file mode 100644 index 000000000..f253c6921 --- /dev/null +++ b/keyboards/grid600/press/keymaps/default/keymap.c | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | /* Copyright 2019 mechmerlin | ||
| 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 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 19 | [0] = LAYOUT( /* Base */ | ||
| 20 | KC_G, KC_R, KC_I, KC_D | ||
| 21 | ), | ||
| 22 | }; | ||
| 23 | |||
| 24 | void matrix_init_user(void) { | ||
| 25 | |||
| 26 | } | ||
| 27 | |||
| 28 | void matrix_scan_user(void) { | ||
| 29 | |||
| 30 | } | ||
| 31 | |||
| 32 | void led_set_user(uint8_t usb_led) { | ||
| 33 | |||
| 34 | } | ||
diff --git a/keyboards/grid600/press/keymaps/default/readme.md b/keyboards/grid600/press/keymaps/default/readme.md new file mode 100644 index 000000000..b29ee6786 --- /dev/null +++ b/keyboards/grid600/press/keymaps/default/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The default keymap for grid | |||
diff --git a/keyboards/grid600/press/press.c b/keyboards/grid600/press/press.c new file mode 100644 index 000000000..33935deca --- /dev/null +++ b/keyboards/grid600/press/press.c | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | /* Copyright 2019 mechmerlin | ||
| 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 "press.h" \ No newline at end of file | ||
diff --git a/keyboards/grid600/press/press.h b/keyboards/grid600/press/press.h new file mode 100644 index 000000000..ca9eac9d1 --- /dev/null +++ b/keyboards/grid600/press/press.h | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | /* Copyright 2019 mechmerlin | ||
| 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( \ | ||
| 29 | K00, K01, K02, K03 \ | ||
| 30 | ) { \ | ||
| 31 | { K00, K01, K02, K03 } \ | ||
| 32 | } | ||
diff --git a/keyboards/grid600/press/readme.md b/keyboards/grid600/press/readme.md new file mode 100644 index 000000000..4113b372e --- /dev/null +++ b/keyboards/grid600/press/readme.md | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | # Grid 600 Type 05 "PRESS" Cover Module | ||
| 2 | |||
| 3 | Cover module for Grid 600 Keyboard with 4 keys. | ||
| 4 | |||
| 5 | Code for the module was originally located at [gridishere's QMK fork](https://github.com/gridishere/qmk_firmware/tree/master/keyboards/grid/gridmod5). | ||
| 6 | |||
| 7 | Please keep in mind that this is actually a separate keyboard from the one installed in the Grid 600. | ||
| 8 | Functionality such as layer changes and light modifications triggered on one PCB will not affect the other. | ||
| 9 | |||
| 10 | Keyboard Maintainer: [MechMerlin](https://github.com/mechmerlin) | ||
| 11 | Hardware Supported: Grid 600 Type 05 "PRESS" cover module. | ||
| 12 | Hardware Availability: [zFrontier](https://en.zfrontier.com/products/grid600s) | ||
| 13 | |||
| 14 | Make example for this keyboard (after setting up your build environment): | ||
| 15 | |||
| 16 | make grid600/press:default | ||
| 17 | |||
| 18 | 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/grid600/press/rules.mk b/keyboards/grid600/press/rules.mk new file mode 100644 index 000000000..1fcf3841b --- /dev/null +++ b/keyboards/grid600/press/rules.mk | |||
| @@ -0,0 +1,80 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Processor frequency. | ||
| 5 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
| 6 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
| 7 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
| 8 | # automatically to create a 32-bit value in your source code. | ||
| 9 | # | ||
| 10 | # This will be an integer division of F_USB below, as it is sourced by | ||
| 11 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
| 12 | # does not *change* the processor frequency - it should merely be updated to | ||
| 13 | # reflect the processor speed set externally so that the code can use accurate | ||
| 14 | # software delays. | ||
| 15 | F_CPU = 16000000 | ||
| 16 | |||
| 17 | |||
| 18 | # | ||
| 19 | # LUFA specific | ||
| 20 | # | ||
| 21 | # Target architecture (see library "Board Types" documentation). | ||
| 22 | ARCH = AVR8 | ||
| 23 | |||
| 24 | # Input clock frequency. | ||
| 25 | # This will define a symbol, F_USB, in all source code files equal to the | ||
| 26 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
| 27 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
| 28 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
| 29 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
| 30 | # at the end, this will be done automatically to create a 32-bit value in your | ||
| 31 | # source code. | ||
| 32 | # | ||
| 33 | # If no clock division is performed on the input clock inside the AVR (via the | ||
| 34 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
| 35 | F_USB = $(F_CPU) | ||
| 36 | |||
| 37 | # Interrupt driven control endpoint task(+60) | ||
| 38 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
| 39 | |||
| 40 | |||
| 41 | # Bootloader selection | ||
| 42 | # Teensy halfkay | ||
| 43 | # Pro Micro caterina | ||
| 44 | # Atmel DFU atmel-dfu | ||
| 45 | # LUFA DFU lufa-dfu | ||
| 46 | # QMK DFU qmk-dfu | ||
| 47 | # atmega32a bootloadHID | ||
| 48 | BOOTLOADER = atmel-dfu | ||
| 49 | |||
| 50 | |||
| 51 | # If you don't know the bootloader type, then you can specify the | ||
| 52 | # Boot Section Size in *bytes* by uncommenting out the OPT_DEFS line | ||
| 53 | # Teensy halfKay 512 | ||
| 54 | # Teensy++ halfKay 1024 | ||
| 55 | # Atmel DFU loader 4096 | ||
| 56 | # LUFA bootloader 4096 | ||
| 57 | # USBaspLoader 2048 | ||
| 58 | # OPT_DEFS += -DBOOTLOADER_SIZE=4096 | ||
| 59 | |||
| 60 | |||
| 61 | # Build Options | ||
| 62 | # change yes to no to disable | ||
| 63 | # | ||
| 64 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000) | ||
| 65 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
| 66 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 67 | CONSOLE_ENABLE = yes # Console for debug(+400) | ||
| 68 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 69 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 70 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 71 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 72 | NKRO_ENABLE = no # USB Nkey Rollover | ||
| 73 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 74 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 75 | MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) | ||
| 76 | UNICODE_ENABLE = no # Unicode | ||
| 77 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 78 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 79 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | ||
| 80 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400) | ||
diff --git a/keyboards/grid600/readme.md b/keyboards/grid600/readme.md new file mode 100644 index 000000000..f7fa6a085 --- /dev/null +++ b/keyboards/grid600/readme.md | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | # Grid 600 Cover Modules | ||
| 2 | |||
| 3 | The Grid 600 is a tray mount 60% case supporting most standard 60% PCBs. | ||
| 4 | |||
| 5 | A unique feature of the Grid 600 is that it has five different cover modules that not only include USB C pass through, but also have functions such as RGB or additional macro keys. | ||
| 6 | |||
| 7 | This is a collection of some of the programmable modules available for this enclosure. \ No newline at end of file | ||
