diff options
| author | ridingqwerty <george.g.koenig@gmail.com> | 2020-10-01 18:58:13 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-01 23:58:13 +0100 |
| commit | 726499553c3ab0324274a66df63571a5a355d5df (patch) | |
| tree | e5c80d36aafafb28e97b125c8841a9658a632b8a /keyboards | |
| parent | 1d7e57ab853c3ee70ea287298b8e0f32ffe54072 (diff) | |
| download | qmk_firmware-726499553c3ab0324274a66df63571a5a355d5df.tar.gz qmk_firmware-726499553c3ab0324274a66df63571a5a355d5df.zip | |
New keyboard: wsk/g4m3ralpha (#10431)
* adding alpha variants
* adding cajal layouts
* adding V2 PCB support
adding additional layouts for new PCB version, and correecting incorrect image in info file
* Cleanup master -- remove alpha9
* Cleanup master -- remove g4m3ralpha
* Cleanup master -- remove cajal & sl40
* Master cleanup -- re-add sl40
* Master cleanup -- correct SL40 image
* Add new keyboard: wsk/g4m3ralpha
* Added license attribution to .{c,h} files
* Update keyboards/wsk/g4m3ralpha/config.h
Co-authored-by: Joel Challis <git@zvecr.com>
* Update keyboards/wsk/g4m3ralpha/rules.mk
Co-authored-by: Joel Challis <git@zvecr.com>
* Update keyboards/wsk/g4m3ralpha/g4m3ralpha.c
Co-authored-by: Joel Challis <git@zvecr.com>
* Update keyboards/wsk/g4m3ralpha/keymaps/default/keymap.c
Co-authored-by: Joel Challis <git@zvecr.com>
* Update keyboards/wsk/g4m3ralpha/config.h
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/wsk/g4m3ralpha/info.json
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/wsk/g4m3ralpha/rules.mk
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: worldspawn00 <mcmancuso@gmail.com>
Co-authored-by: Joel Challis <git@zvecr.com>
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards')
| -rw-r--r-- | keyboards/wsk/g4m3ralpha/config.h | 56 | ||||
| -rw-r--r-- | keyboards/wsk/g4m3ralpha/g4m3ralpha.c | 39 | ||||
| -rw-r--r-- | keyboards/wsk/g4m3ralpha/g4m3ralpha.h | 32 | ||||
| -rw-r--r-- | keyboards/wsk/g4m3ralpha/info.json | 12 | ||||
| -rw-r--r-- | keyboards/wsk/g4m3ralpha/keymaps/default/keymap.c | 81 | ||||
| -rw-r--r-- | keyboards/wsk/g4m3ralpha/readme.md | 19 | ||||
| -rw-r--r-- | keyboards/wsk/g4m3ralpha/rules.mk | 22 |
7 files changed, 261 insertions, 0 deletions
diff --git a/keyboards/wsk/g4m3ralpha/config.h b/keyboards/wsk/g4m3ralpha/config.h new file mode 100644 index 000000000..071b6ac04 --- /dev/null +++ b/keyboards/wsk/g4m3ralpha/config.h | |||
| @@ -0,0 +1,56 @@ | |||
| 1 | /* Copyright 2020 Worldspawn <mcmancuso@gmail.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 0x5753 // "WS" - Worldspawn00 | ||
| 23 | #define PRODUCT_ID 0x56D9 | ||
| 24 | #define DEVICE_VER 0x0001 | ||
| 25 | #define MANUFACTURER Worldspawn00 | ||
| 26 | #define PRODUCT G4M3Ralpha | ||
| 27 | |||
| 28 | /* key matrix size */ | ||
| 29 | #define MATRIX_ROWS 4 | ||
| 30 | #define MATRIX_COLS 10 | ||
| 31 | |||
| 32 | /* key matrix pins */ | ||
| 33 | #define MATRIX_ROW_PINS { D4, B4, B5, D1 } | ||
| 34 | #define MATRIX_COL_PINS { D7, E6, C6, B6, B2, B3, B1, F7, F6, F5 } | ||
| 35 | #define UNUSED_PINS | ||
| 36 | |||
| 37 | /* COL2ROW or ROW2COL */ | ||
| 38 | #define DIODE_DIRECTION COL2ROW | ||
| 39 | |||
| 40 | /* Set 0 if debouncing isn't 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 | |||
| 46 | /* Locking resynchronize hack */ | ||
| 47 | #define LOCKING_RESYNC_ENABLE | ||
| 48 | |||
| 49 | #define RGB_DI_PIN F4 | ||
| 50 | #ifdef RGB_DI_PIN | ||
| 51 | #define RGBLIGHT_ANIMATIONS | ||
| 52 | #define RGBLED_NUM 5 | ||
| 53 | #define RGBLIGHT_HUE_STEP 8 | ||
| 54 | #define RGBLIGHT_SAT_STEP 8 | ||
| 55 | #define RGBLIGHT_VAL_STEP 8 | ||
| 56 | #endif | ||
diff --git a/keyboards/wsk/g4m3ralpha/g4m3ralpha.c b/keyboards/wsk/g4m3ralpha/g4m3ralpha.c new file mode 100644 index 000000000..66652e3dd --- /dev/null +++ b/keyboards/wsk/g4m3ralpha/g4m3ralpha.c | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | /* Copyright 2020 Worldspawn <mcmancuso@gmail.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 | #include "g4m3ralpha.h" | ||
| 18 | |||
| 19 | |||
| 20 | void matrix_init_kb(void) { | ||
| 21 | setPinOutput(D3); | ||
| 22 | writePinLow(D3); | ||
| 23 | setPinOutput(D2); | ||
| 24 | writePinLow(D2); | ||
| 25 | setPinOutput(D0); | ||
| 26 | writePinLow(D0); | ||
| 27 | |||
| 28 | matrix_init_user(); | ||
| 29 | }; | ||
| 30 | |||
| 31 | bool led_update_kb(led_t led_state) { | ||
| 32 | bool res = led_update_user(led_state); | ||
| 33 | if(res) { | ||
| 34 | writePin(D3, led_state.num_lock); | ||
| 35 | writePin(D0, led_state.caps_lock); | ||
| 36 | writePin(D2, led_state.scroll_lock); | ||
| 37 | } | ||
| 38 | return res; | ||
| 39 | } | ||
diff --git a/keyboards/wsk/g4m3ralpha/g4m3ralpha.h b/keyboards/wsk/g4m3ralpha/g4m3ralpha.h new file mode 100644 index 000000000..53da90f9e --- /dev/null +++ b/keyboards/wsk/g4m3ralpha/g4m3ralpha.h | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | /* Copyright 2020 Worldspawn <mcmancuso@gmail.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 "quantum.h" | ||
| 20 | |||
| 21 | #define LAYOUT( \ | ||
| 22 | K00, K01, K02, K03, K04, \ | ||
| 23 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, \ | ||
| 24 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, \ | ||
| 25 | K30, K31, K32, K33, K35, K37, K38, K39 \ | ||
| 26 | ) { \ | ||
| 27 | { K00, K01, K02, K03, K04, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO}, \ | ||
| 28 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19 }, \ | ||
| 29 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29 }, \ | ||
| 30 | { K30, K31, K32, K33, KC_NO, K35, KC_NO, K37, K38, K39 } \ | ||
| 31 | } | ||
| 32 | |||
diff --git a/keyboards/wsk/g4m3ralpha/info.json b/keyboards/wsk/g4m3ralpha/info.json new file mode 100644 index 000000000..c55bc0226 --- /dev/null +++ b/keyboards/wsk/g4m3ralpha/info.json | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "G4M3R Alpha", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "Worldspawn00", | ||
| 5 | "width": 10, | ||
| 6 | "height": 4, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [{"label":"!", "x":0.5, "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":"Q", "x":0, "y":1}, {"label":"W", "x":1, "y":1}, {"label":"E", "x":2, "y":1}, {"label":"R", "x":3, "y":1}, {"label":"T", "x":4, "y":1}, {"label":"Y", "x":5, "y":1}, {"label":"U", "x":6, "y":1}, {"label":"I", "x":7, "y":1}, {"label":"O", "x":8, "y":1}, {"label":"P", "x":9, "y":1}, {"label":"A", "x":0, "y":2}, {"label":"S", "x":1, "y":2}, {"label":"D", "x":2, "y":2}, {"label":"F", "x":3, "y":2}, {"label":"G", "x":4, "y":2}, {"label":"H", "x":5, "y":2}, {"label":"J", "x":6, "y":2}, {"label":"K", "x":7, "y":2}, {"label":"L", "x":8, "y":2}, {"label":"Enter", "x":9, "y":2}, {"label":"Z", "x":0.5, "y":3}, {"label":"X", "x":1.5, "y":3}, {"label":"C", "x":2.5, "y":3}, {"label":"V", "x":3.5, "y":3}, {"x":4.5, "y":3, "w":2}, {"label":"B", "x":6.5, "y":3}, {"label":"N", "x":7.5, "y":3}, {"label":"M", "x":8.5, "y":3}] | ||
| 10 | } | ||
| 11 | } | ||
| 12 | } | ||
diff --git a/keyboards/wsk/g4m3ralpha/keymaps/default/keymap.c b/keyboards/wsk/g4m3ralpha/keymaps/default/keymap.c new file mode 100644 index 000000000..54ff0f9df --- /dev/null +++ b/keyboards/wsk/g4m3ralpha/keymaps/default/keymap.c | |||
| @@ -0,0 +1,81 @@ | |||
| 1 | /* Copyright 2020 Worldspawn <mcmancuso@gmail.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 | #include QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | enum g4m3ralpha_layers { | ||
| 20 | _HOME, | ||
| 21 | _FN, | ||
| 22 | _FNCHAR, | ||
| 23 | _FKEYS, | ||
| 24 | }; | ||
| 25 | |||
| 26 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 27 | [_HOME] = LAYOUT( | ||
| 28 | KC_1, KC_2, KC_3, KC_4, KC_5, | ||
| 29 | KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, | ||
| 30 | KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT, | ||
| 31 | LCTL_T(KC_Z), LALT_T(KC_X), LT(_FN, KC_C), LT(_FNCHAR, KC_V), LSFT_T(KC_SPC), RGUI_T(KC_B), RALT_T(KC_N), RCTL_T(KC_M) | ||
| 32 | ), | ||
| 33 | |||
| 34 | [_FN] = LAYOUT( | ||
| 35 | KC_6, KC_7, KC_8, KC_9, KC_0, | ||
| 36 | KC_ESC, KC_MUTE, KC_VOLD, KC_VOLU, KC_MPLY, KC_HOME, KC_PGDN, KC_PGUP, KC_END, KC_NO, | ||
| 37 | KC_TAB, KC_NO, KC_NO, KC_NO, KC_NO, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_BSPC, | ||
| 38 | KC_LCTL, KC_LALT, KC_TRNS, MO(_FKEYS), LSFT_T(KC_SPC), KC_RGUI, KC_RALT, KC_RCTL | ||
| 39 | ), | ||
| 40 | |||
| 41 | [_FNCHAR] = LAYOUT( | ||
| 42 | RGB_TOG, RGB_VAD, RGB_VAI, RGB_MOD, RGB_SPD, | ||
| 43 | KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, | ||
| 44 | KC_GRV, KC_NO, KC_MINS, KC_EQL, KC_BSLS, KC_LBRC, KC_RBRC, KC_SCLN, KC_QUOT, KC_BSPC, | ||
| 45 | KC_LCTL, KC_LALT, MO(_FKEYS), KC_TRNS, LSFT_T(KC_SPC), KC_COMM, KC_DOT, KC_SLSH | ||
| 46 | ), | ||
| 47 | |||
| 48 | [_FKEYS] = LAYOUT( | ||
| 49 | RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_SPI, | ||
| 50 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, | ||
| 51 | KC_F11, KC_F12, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_DEL, | ||
| 52 | KC_LCTL, KC_LALT, KC_TRNS, KC_TRNS, LSFT_T(KC_SPC), KC_RGUI, KC_RALT, KC_RCTL | ||
| 53 | ), | ||
| 54 | }; | ||
| 55 | |||
| 56 | layer_state_t layer_state_set_user(layer_state_t state) { | ||
| 57 | switch (get_highest_layer(state)) { | ||
| 58 | case _FN: | ||
| 59 | writePinHigh(D3); | ||
| 60 | writePinLow(D2); | ||
| 61 | break; | ||
| 62 | case _FNCHAR: | ||
| 63 | writePinLow(D3); | ||
| 64 | writePinHigh(D2); | ||
| 65 | break; | ||
| 66 | case _FKEYS: | ||
| 67 | writePinHigh(D3); | ||
| 68 | writePinHigh(D2); | ||
| 69 | break; | ||
| 70 | default: // for any other layers, or the default layer | ||
| 71 | writePinLow(D3); | ||
| 72 | writePinLow(D2); | ||
| 73 | break; | ||
| 74 | } | ||
| 75 | return state; | ||
| 76 | } | ||
| 77 | |||
| 78 | bool led_update_user(led_t led_state) { | ||
| 79 | writePin(D0, led_state.caps_lock); | ||
| 80 | return false; | ||
| 81 | } | ||
diff --git a/keyboards/wsk/g4m3ralpha/readme.md b/keyboards/wsk/g4m3ralpha/readme.md new file mode 100644 index 000000000..ae4f0655f --- /dev/null +++ b/keyboards/wsk/g4m3ralpha/readme.md | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | # G4M3R Alpha | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A modification based on the 28-key, semi-ortho keyboard designed by PyroL. | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [Worldspawn00](https://www.github.com/Worldspawn00) | ||
| 8 | * Hardware Supported: G4M3R Alpha PCB, Pro Micro | ||
| 9 | * Hardware Availability: https://www.etsy.com/shop/WorldspawnsKeebs | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make wsk/g4m3ralpha:default | ||
| 14 | |||
| 15 | Flashing example for this keyboard: | ||
| 16 | |||
| 17 | make wsk/g4m3ralpha:default:flash | ||
| 18 | |||
| 19 | See [build environment setup](https://docs.qmk.fm/install-build-tools) then the [make instructions](https://docs.qmk.fm/faq/build-compile-qmk) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). | ||
diff --git a/keyboards/wsk/g4m3ralpha/rules.mk b/keyboards/wsk/g4m3ralpha/rules.mk new file mode 100644 index 000000000..676a400f7 --- /dev/null +++ b/keyboards/wsk/g4m3ralpha/rules.mk | |||
| @@ -0,0 +1,22 @@ | |||
| 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 = full # 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 = no # 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 | ||
