diff options
23 files changed, 670 insertions, 37 deletions
diff --git a/keyboards/s7_elephant/readme.md b/keyboards/s7_elephant/readme.md index 466e3f731..76838be21 100644 --- a/keyboards/s7_elephant/readme.md +++ b/keyboards/s7_elephant/readme.md | |||
| @@ -4,13 +4,16 @@ | |||
| 4 | 4 | ||
| 5 | A high-end 70% custom keyboard designed and produced by [jacky](https://geekhack.org/index.php?action=profile;u=63864) from Geekhack. | 5 | A high-end 70% custom keyboard designed and produced by [jacky](https://geekhack.org/index.php?action=profile;u=63864) from Geekhack. |
| 6 | 6 | ||
| 7 | Keyboard Maintainer: QMK Community | 7 | **Firmware files are SPECIFIC to each revision. Firmware files from rev1 will not work on rev2 and vice versa.** Please use the `.hex` appropriate for your board. |
| 8 | Hardware Supported: S7 Elephant | 8 | |
| 9 | Hardware Availability: [The GB has ended with little chance to run again.](https://geekhack.org/index.php?topic=96434.0) | 9 | * Keyboard Maintainer: QMK Community |
| 10 | * Hardware Supported: S7 Elephant rev1, rev2 | ||
| 11 | * Hardware Availability: [The GB has had 2 rounds with little chance to run again.](https://geekhack.org/index.php?topic=96434.0) | ||
| 10 | 12 | ||
| 11 | Make example for this keyboard (after setting up your build environment): | 13 | Make example for this keyboard (after setting up your build environment): |
| 12 | 14 | ||
| 13 | make s7_elephant:default:dfu | 15 | make s7_elephant/rev1:default # 2018 run |
| 16 | make s7_elephant/rev2:default # 2019 run | ||
| 14 | 17 | ||
| 15 | To enter the bootloader, either short the pins on the PCB or the RESET button on the FN layer. | 18 | To enter the bootloader, either short the pins on the PCB or the RESET button on the FN layer. |
| 16 | 19 | ||
diff --git a/keyboards/s7_elephant/config.h b/keyboards/s7_elephant/rev1/config.h index c4f57178d..d2770d117 100644 --- a/keyboards/s7_elephant/config.h +++ b/keyboards/s7_elephant/rev1/config.h | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | #include "config_common.h" | 3 | #include "config_common.h" |
| 4 | 4 | ||
| 5 | /* USB Device descriptor parameter */ | 5 | /* USB Device descriptor parameter */ |
| 6 | #define VENDOR_ID 0xFEED | 6 | #define VENDOR_ID 0xA13B // Hexidecimal A13B will be Jacky's vendor ID |
| 7 | #define PRODUCT_ID 0x0007 | 7 | #define PRODUCT_ID 0x0007 |
| 8 | #define DEVICE_VER 0x0001 | 8 | #define DEVICE_VER 0x0001 |
| 9 | #define MANUFACTURER jacky | 9 | #define MANUFACTURER jacky |
| @@ -22,9 +22,6 @@ | |||
| 22 | /* COL2ROW or ROW2COL */ | 22 | /* COL2ROW or ROW2COL */ |
| 23 | #define DIODE_DIRECTION COL2ROW | 23 | #define DIODE_DIRECTION COL2ROW |
| 24 | 24 | ||
| 25 | /* Set 0 if debouncing isn't needed */ | ||
| 26 | #define DEBOUNCE 5 | ||
| 27 | |||
| 28 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 25 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
| 29 | #define LOCKING_SUPPORT_ENABLE | 26 | #define LOCKING_SUPPORT_ENABLE |
| 30 | 27 | ||
| @@ -40,3 +37,12 @@ | |||
| 40 | #define RGBLIGHT_VAL_STEP 8 | 37 | #define RGBLIGHT_VAL_STEP 8 |
| 41 | #define RGBLIGHT_SLEEP | 38 | #define RGBLIGHT_SLEEP |
| 42 | #endif | 39 | #endif |
| 40 | |||
| 41 | /* Set 0 if debouncing isn't needed */ | ||
| 42 | #define DEBOUNCE 5 | ||
| 43 | |||
| 44 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 45 | #define LOCKING_SUPPORT_ENABLE | ||
| 46 | |||
| 47 | /* Locking resynchronize hack */ | ||
| 48 | #define LOCKING_RESYNC_ENABLE | ||
diff --git a/keyboards/s7_elephant/info.json b/keyboards/s7_elephant/rev1/info.json index 3d45f0b09..3d45f0b09 100644 --- a/keyboards/s7_elephant/info.json +++ b/keyboards/s7_elephant/rev1/info.json | |||
diff --git a/keyboards/s7_elephant/keymaps/default/config.h b/keyboards/s7_elephant/rev1/keymaps/default/config.h index 85f62371e..85f62371e 100644 --- a/keyboards/s7_elephant/keymaps/default/config.h +++ b/keyboards/s7_elephant/rev1/keymaps/default/config.h | |||
diff --git a/keyboards/s7_elephant/keymaps/default/keymap.c b/keyboards/s7_elephant/rev1/keymaps/default/keymap.c index 339f2d379..339f2d379 100644 --- a/keyboards/s7_elephant/keymaps/default/keymap.c +++ b/keyboards/s7_elephant/rev1/keymaps/default/keymap.c | |||
diff --git a/keyboards/s7_elephant/keymaps/default/readme.md b/keyboards/s7_elephant/rev1/keymaps/default/readme.md index c4fe30acd..c4fe30acd 100644 --- a/keyboards/s7_elephant/keymaps/default/readme.md +++ b/keyboards/s7_elephant/rev1/keymaps/default/readme.md | |||
diff --git a/keyboards/s7_elephant/rev1/readme.md b/keyboards/s7_elephant/rev1/readme.md new file mode 100644 index 000000000..702be4c3a --- /dev/null +++ b/keyboards/s7_elephant/rev1/readme.md | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | # S7 Elephant | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A high-end 70% custom keyboard designed and produced by [jacky](https://geekhack.org/index.php?action=profile;u=63864) from Geekhack. | ||
| 6 | |||
| 7 | * Keyboard Maintainer: QMK Community | ||
| 8 | * Hardware Supported: S7 Elephant | ||
| 9 | * Hardware Availability: [The GB has ended with little chance to run again.](https://geekhack.org/index.php?topic=96434.0) | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make s7_elephant/rev1:default | ||
| 14 | |||
| 15 | To enter the bootloader, either short the pins on the PCB or the RESET button on the FN layer. | ||
| 16 | |||
| 17 | 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/s7_elephant/rev1/rev1.c b/keyboards/s7_elephant/rev1/rev1.c new file mode 100644 index 000000000..520a869e5 --- /dev/null +++ b/keyboards/s7_elephant/rev1/rev1.c | |||
| @@ -0,0 +1 @@ | |||
| #include "rev1.h" | |||
diff --git a/keyboards/s7_elephant/s7_elephant.h b/keyboards/s7_elephant/rev1/rev1.h index c351ffdb9..958ba0fae 100644 --- a/keyboards/s7_elephant/s7_elephant.h +++ b/keyboards/s7_elephant/rev1/rev1.h | |||
| @@ -1,5 +1,4 @@ | |||
| 1 | #ifndef S7_ELEPHANT_H | 1 | #pragma once |
| 2 | #define S7_ELEPHANT_H | ||
| 3 | 2 | ||
| 4 | #include "quantum.h" | 3 | #include "quantum.h" |
| 5 | 4 | ||
| @@ -852,4 +851,3 @@ K400, K401, K402, K403, K407, K410, K4 | |||
| 852 | { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314, K315 }, \ | 851 | { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314, K315 }, \ |
| 853 | { K400, K401, K402, K403, ____, ____, ____, K407, ____, ____, K410, ____, ____, K413, K414, K415 } \ | 852 | { K400, K401, K402, K403, ____, ____, ____, K407, ____, ____, K410, ____, ____, K413, K414, K415 } \ |
| 854 | } | 853 | } |
| 855 | #endif | ||
diff --git a/keyboards/s7_elephant/rev1/rules.mk b/keyboards/s7_elephant/rev1/rules.mk new file mode 100644 index 000000000..91fe85c3d --- /dev/null +++ b/keyboards/s7_elephant/rev1/rules.mk | |||
| @@ -0,0 +1,25 @@ | |||
| 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 = atmel-dfu | ||
| 13 | |||
| 14 | # Build Options | ||
| 15 | # comment out to disable the options. | ||
| 16 | # | ||
| 17 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration | ||
| 18 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 19 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 20 | CONSOLE_ENABLE = no # Console for debug | ||
| 21 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 22 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 23 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 24 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 25 | RGBLIGHT_ENABLE = yes # Enable keyboard underlight functionality | ||
diff --git a/keyboards/s7_elephant/rev2/config.h b/keyboards/s7_elephant/rev2/config.h new file mode 100644 index 000000000..5c5b526aa --- /dev/null +++ b/keyboards/s7_elephant/rev2/config.h | |||
| @@ -0,0 +1,83 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 MudkipMao | ||
| 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 0xA13B // Hexidecimal A13B will be Jacky's vendor ID | ||
| 24 | #define PRODUCT_ID 0x0008 // 8 for S7++ | ||
| 25 | #define DEVICE_VER 0x0002 | ||
| 26 | #define MANUFACTURER Jacky | ||
| 27 | #define PRODUCT Jacky S7 Elephant Rev 2 | ||
| 28 | #define DESCRIPTION A high-end 70% custom keyboard | ||
| 29 | |||
| 30 | /* Don't remove this without also removing LTO_ENABLE=yes in rules.mk */ | ||
| 31 | #define NO_ACTION_MACRO | ||
| 32 | #define NO_ACTION_FUNCTION | ||
| 33 | |||
| 34 | /* key matrix size */ | ||
| 35 | #define MATRIX_ROWS 5 | ||
| 36 | #define MATRIX_COLS 16 | ||
| 37 | |||
| 38 | /* | ||
| 39 | * Keyboard Matrix Assignments | ||
| 40 | * | ||
| 41 | * Change this to how you wired your keyboard | ||
| 42 | * COLS: AVR pins used for columns, left to right | ||
| 43 | * ROWS: AVR pins used for rows, top to bottom | ||
| 44 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 45 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 46 | * | ||
| 47 | * | ||
| 48 | * 0 1 2 3 4 5 6 7 8 9 A B C D E F */ | ||
| 49 | #define MATRIX_ROW_PINS { B0, B1, B2, B3, B7 } | ||
| 50 | #define MATRIX_COL_PINS { D0, D1, D2, D3, D5, D4, D6, D7, B4, F7, F6, F5, F4, F1, F0, E6 } | ||
| 51 | |||
| 52 | /* Setting the matrix value of top left key for bootmagic lite */ | ||
| 53 | #define BOOTMAGIC_LITE_ROW 0 | ||
| 54 | #define BOOTMAGIC_LITE_COLUMN 15 | ||
| 55 | |||
| 56 | #define DIODE_DIRECTION ROW2COL | ||
| 57 | |||
| 58 | #define BACKLIGHT_PIN B6 | ||
| 59 | // #define BACKLIGHT_BREATHING | ||
| 60 | #define BACKLIGHT_LEVELS 15 | ||
| 61 | |||
| 62 | #define RGB_DI_PIN E2 | ||
| 63 | #ifdef RGB_DI_PIN | ||
| 64 | #define RGBLIGHT_ANIMATIONS | ||
| 65 | #define RGBLED_NUM 2 | ||
| 66 | #define RGBLIGHT_HUE_STEP 8 | ||
| 67 | #define RGBLIGHT_SAT_STEP 8 | ||
| 68 | #define RGBLIGHT_VAL_STEP 8 | ||
| 69 | #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 70 | #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 71 | #endif // RGB_DI_PIN | ||
| 72 | |||
| 73 | /* Set 0 if debouncing isn't needed */ | ||
| 74 | #define DEBOUNCE 5 | ||
| 75 | |||
| 76 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 77 | #define LOCKING_SUPPORT_ENABLE | ||
| 78 | |||
| 79 | /* Locking resynchronize hack */ | ||
| 80 | #define LOCKING_RESYNC_ENABLE | ||
| 81 | |||
| 82 | // generated by KBFirmware JSON to QMK Parser | ||
| 83 | // https://noroadsleft.github.io/kbf_qmk_converter/ | ||
diff --git a/keyboards/s7_elephant/rev2/info.json b/keyboards/s7_elephant/rev2/info.json new file mode 100644 index 000000000..5c811cd47 --- /dev/null +++ b/keyboards/s7_elephant/rev2/info.json | |||
| @@ -0,0 +1,167 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "S7 Elephant Rev2", | ||
| 3 | "url": "https://geekhack.org/index.php?topic=103148.0", | ||
| 4 | "maintainer": "qmk", | ||
| 5 | "width": 17.25, | ||
| 6 | "height": 5, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_all": { | ||
| 9 | "key_count": 75, | ||
| 10 | "layout": [ | ||
| 11 | {"label":"K0F (B0,E6)", "x":0, "y":0}, | ||
| 12 | {"label":"K00 (B0,D0)", "x":1.25, "y":0}, | ||
| 13 | {"label":"K01 (B0,D1)", "x":2.25, "y":0}, | ||
| 14 | {"label":"K02 (B0,D2)", "x":3.25, "y":0}, | ||
| 15 | {"label":"K03 (B0,D3)", "x":4.25, "y":0}, | ||
| 16 | {"label":"K04 (B0,D5)", "x":5.25, "y":0}, | ||
| 17 | {"label":"K05 (B0,D4)", "x":6.25, "y":0}, | ||
| 18 | {"label":"K06 (B0,D6)", "x":7.25, "y":0}, | ||
| 19 | {"label":"K07 (B0,D7)", "x":8.25, "y":0}, | ||
| 20 | {"label":"K08 (B0,B4)", "x":9.25, "y":0}, | ||
| 21 | {"label":"K09 (B0,F7)", "x":10.25, "y":0}, | ||
| 22 | {"label":"K0A (B0,F6)", "x":11.25, "y":0}, | ||
| 23 | {"label":"K0B (B0,F5)", "x":12.25, "y":0}, | ||
| 24 | {"label":"K0C (B0,F4)", "x":13.25, "y":0}, | ||
| 25 | {"label":"K0D (B0,F1)", "x":14.25, "y":0}, | ||
| 26 | {"label":"K0E (B0,F0)", "x":15.25, "y":0}, | ||
| 27 | {"label":"K4E (B7,F0)", "x":16.25, "y":0}, | ||
| 28 | {"label":"K1F (B1,E6)", "x":0, "y":1}, | ||
| 29 | {"label":"K10 (B1,D0)", "x":1.25, "y":1, "w":1.5}, | ||
| 30 | {"label":"K11 (B1,D1)", "x":2.75, "y":1}, | ||
| 31 | {"label":"K12 (B1,D2)", "x":3.75, "y":1}, | ||
| 32 | {"label":"K13 (B1,D3)", "x":4.75, "y":1}, | ||
| 33 | {"label":"K14 (B1,D5)", "x":5.75, "y":1}, | ||
| 34 | {"label":"K15 (B1,D4)", "x":6.75, "y":1}, | ||
| 35 | {"label":"K16 (B1,D6)", "x":7.75, "y":1}, | ||
| 36 | {"label":"K17 (B1,D7)", "x":8.75, "y":1}, | ||
| 37 | {"label":"K18 (B1,B4)", "x":9.75, "y":1}, | ||
| 38 | {"label":"K19 (B1,F7)", "x":10.75, "y":1}, | ||
| 39 | {"label":"K1A (B1,F6)", "x":11.75, "y":1}, | ||
| 40 | {"label":"K1B (B1,F5)", "x":12.75, "y":1}, | ||
| 41 | {"label":"K1C (B1,F4)", "x":13.75, "y":1}, | ||
| 42 | {"label":"K2C (B2,F4)", "x":14.75, "y":1, "w":1.5}, | ||
| 43 | {"label":"K1E (B1,F0)", "x":16.25, "y":1}, | ||
| 44 | {"label":"K2F (B2,E6)", "x":0, "y":2}, | ||
| 45 | {"label":"K20 (B2,D0)", "x":1.25, "y":2, "w":1.75}, | ||
| 46 | {"label":"K21 (B2,D1)", "x":3, "y":2}, | ||
| 47 | {"label":"K22 (B2,D2)", "x":4, "y":2}, | ||
| 48 | {"label":"K23 (B2,D3)", "x":5, "y":2}, | ||
| 49 | {"label":"K24 (B2,D5)", "x":6, "y":2}, | ||
| 50 | {"label":"K25 (B2,D4)", "x":7, "y":2}, | ||
| 51 | {"label":"K26 (B2,D6)", "x":8, "y":2}, | ||
| 52 | {"label":"K27 (B2,D7)", "x":9, "y":2}, | ||
| 53 | {"label":"K28 (B2,B4)", "x":10, "y":2}, | ||
| 54 | {"label":"K29 (B2,F7)", "x":11, "y":2}, | ||
| 55 | {"label":"K2A (B2,F6)", "x":12, "y":2}, | ||
| 56 | {"label":"K2B (B2,F5)", "x":13, "y":2}, | ||
| 57 | {"label":"K1D (B1,F1)", "x":14, "y":2, "w":2.25}, | ||
| 58 | {"label":"K2E (B2,F0)", "x":16.25, "y":2}, | ||
| 59 | {"label":"K3F (B3,E6)", "x":0, "y":3}, | ||
| 60 | {"label":"K30 (B3,D0)", "x":1.25, "y":3, "w":1.25}, | ||
| 61 | {"label":"K31 (B3,D1)", "x":2.5, "y":3}, | ||
| 62 | {"label":"K32 (B3,D2)", "x":3.5, "y":3}, | ||
| 63 | {"label":"K33 (B3,D3)", "x":4.5, "y":3}, | ||
| 64 | {"label":"K34 (B3,D5)", "x":5.5, "y":3}, | ||
| 65 | {"label":"K35 (B3,D4)", "x":6.5, "y":3}, | ||
| 66 | {"label":"K36 (B3,D6)", "x":7.5, "y":3}, | ||
| 67 | {"label":"K37 (B3,D7)", "x":8.5, "y":3}, | ||
| 68 | {"label":"K38 (B3,B4)", "x":9.5, "y":3}, | ||
| 69 | {"label":"K39 (B3,F7)", "x":10.5, "y":3}, | ||
| 70 | {"label":"K3A (B3,F6)", "x":11.5, "y":3}, | ||
| 71 | {"label":"K3B (B3,F5)", "x":12.5, "y":3}, | ||
| 72 | {"label":"K3C (B3,F4)", "x":13.5, "y":3, "w":1.75}, | ||
| 73 | {"label":"K3D (B3,F1)", "x":15.25, "y":3}, | ||
| 74 | {"label":"K3E (B3,F0)", "x":16.25, "y":3}, | ||
| 75 | {"label":"K4F (B7,E6)", "x":0, "y":4}, | ||
| 76 | {"label":"K40 (B7,D0)", "x":1.25, "y":4, "w":1.25}, | ||
| 77 | {"label":"K41 (B7,D1)", "x":2.5, "y":4, "w":1.25}, | ||
| 78 | {"label":"K42 (B7,D2)", "x":3.75, "y":4, "w":1.25}, | ||
| 79 | {"label":"K46 (B7,D6)", "x":5, "y":4, "w":6.25}, | ||
| 80 | {"label":"K48 (B7,B4)", "x":11.25, "y":4}, | ||
| 81 | {"label":"K49 (B7,F7)", "x":12.25, "y":4}, | ||
| 82 | {"label":"K4A (B7,F6)", "x":13.25, "y":4}, | ||
| 83 | {"label":"K4B (B7,F5)", "x":14.25, "y":4}, | ||
| 84 | {"label":"K4C (B7,F4)", "x":15.25, "y":4}, | ||
| 85 | {"label":"K4D (B7,F1)", "x":16.25, "y":4} | ||
| 86 | ] | ||
| 87 | }, | ||
| 88 | "LAYOUT_ansi_1u": { | ||
| 89 | "key_count": 73, | ||
| 90 | "layout": [ | ||
| 91 | {"label":"K0F", "x":0, "y":0}, | ||
| 92 | {"label":"K00", "x":1.25, "y":0}, | ||
| 93 | {"label":"K01", "x":2.25, "y":0}, | ||
| 94 | {"label":"K02", "x":3.25, "y":0}, | ||
| 95 | {"label":"K03", "x":4.25, "y":0}, | ||
| 96 | {"label":"K04", "x":5.25, "y":0}, | ||
| 97 | {"label":"K05", "x":6.25, "y":0}, | ||
| 98 | {"label":"K06", "x":7.25, "y":0}, | ||
| 99 | {"label":"K07", "x":8.25, "y":0}, | ||
| 100 | {"label":"K08", "x":9.25, "y":0}, | ||
| 101 | {"label":"K09", "x":10.25, "y":0}, | ||
| 102 | {"label":"K0A", "x":11.25, "y":0}, | ||
| 103 | {"label":"K0B", "x":12.25, "y":0}, | ||
| 104 | {"label":"K0C", "x":13.25, "y":0}, | ||
| 105 | {"label":"K0E", "x":14.25, "y":0, "w":2}, | ||
| 106 | {"label":"K4E", "x":16.25, "y":0}, | ||
| 107 | {"label":"K1F", "x":0, "y":1}, | ||
| 108 | {"label":"K10", "x":1.25, "y":1, "w":1.5}, | ||
| 109 | {"label":"K11", "x":2.75, "y":1}, | ||
| 110 | {"label":"K12", "x":3.75, "y":1}, | ||
| 111 | {"label":"K13", "x":4.75, "y":1}, | ||
| 112 | {"label":"K14", "x":5.75, "y":1}, | ||
| 113 | {"label":"K15", "x":6.75, "y":1}, | ||
| 114 | {"label":"K16", "x":7.75, "y":1}, | ||
| 115 | {"label":"K17", "x":8.75, "y":1}, | ||
| 116 | {"label":"K18", "x":9.75, "y":1}, | ||
| 117 | {"label":"K19", "x":10.75, "y":1}, | ||
| 118 | {"label":"K1A", "x":11.75, "y":1}, | ||
| 119 | {"label":"K1B", "x":12.75, "y":1}, | ||
| 120 | {"label":"K1C", "x":13.75, "y":1}, | ||
| 121 | {"label":"K2C", "x":14.75, "y":1, "w":1.5}, | ||
| 122 | {"label":"K1E", "x":16.25, "y":1}, | ||
| 123 | {"label":"K2F", "x":0, "y":2}, | ||
| 124 | {"label":"K20", "x":1.25, "y":2, "w":1.75}, | ||
| 125 | {"label":"K21", "x":3, "y":2}, | ||
| 126 | {"label":"K22", "x":4, "y":2}, | ||
| 127 | {"label":"K23", "x":5, "y":2}, | ||
| 128 | {"label":"K24", "x":6, "y":2}, | ||
| 129 | {"label":"K25", "x":7, "y":2}, | ||
| 130 | {"label":"K26", "x":8, "y":2}, | ||
| 131 | {"label":"K27", "x":9, "y":2}, | ||
| 132 | {"label":"K28", "x":10, "y":2}, | ||
| 133 | {"label":"K29", "x":11, "y":2}, | ||
| 134 | {"label":"K2A", "x":12, "y":2}, | ||
| 135 | {"label":"K2B", "x":13, "y":2}, | ||
| 136 | {"label":"K1D", "x":14, "y":2, "w":2.25}, | ||
| 137 | {"label":"K2E", "x":16.25, "y":2}, | ||
| 138 | {"label":"K3F", "x":0, "y":3}, | ||
| 139 | {"label":"K30", "x":1.25, "y":3, "w":2.25}, | ||
| 140 | {"label":"K32", "x":3.5, "y":3}, | ||
| 141 | {"label":"K33", "x":4.5, "y":3}, | ||
| 142 | {"label":"K34", "x":5.5, "y":3}, | ||
| 143 | {"label":"K35", "x":6.5, "y":3}, | ||
| 144 | {"label":"K36", "x":7.5, "y":3}, | ||
| 145 | {"label":"K37", "x":8.5, "y":3}, | ||
| 146 | {"label":"K38", "x":9.5, "y":3}, | ||
| 147 | {"label":"K39", "x":10.5, "y":3}, | ||
| 148 | {"label":"K3A", "x":11.5, "y":3}, | ||
| 149 | {"label":"K3B", "x":12.5, "y":3}, | ||
| 150 | {"label":"K3C", "x":13.5, "y":3, "w":1.75}, | ||
| 151 | {"label":"K3D", "x":15.25, "y":3}, | ||
| 152 | {"label":"K3E", "x":16.25, "y":3}, | ||
| 153 | {"label":"K4F", "x":0, "y":4}, | ||
| 154 | {"label":"K40", "x":1.25, "y":4, "w":1.25}, | ||
| 155 | {"label":"K41", "x":2.5, "y":4, "w":1.25}, | ||
| 156 | {"label":"K42", "x":3.75, "y":4, "w":1.25}, | ||
| 157 | {"label":"K46", "x":5, "y":4, "w":6.25}, | ||
| 158 | {"label":"K48", "x":11.25, "y":4}, | ||
| 159 | {"label":"K49", "x":12.25, "y":4}, | ||
| 160 | {"label":"K4A", "x":13.25, "y":4}, | ||
| 161 | {"label":"K4B", "x":14.25, "y":4}, | ||
| 162 | {"label":"K4C", "x":15.25, "y":4}, | ||
| 163 | {"label":"K4D", "x":16.25, "y":4} | ||
| 164 | ] | ||
| 165 | } | ||
| 166 | } | ||
| 167 | } | ||
diff --git a/keyboards/s7_elephant/rev2/keymaps/default/keymap.c b/keyboards/s7_elephant/rev2/keymaps/default/keymap.c new file mode 100644 index 000000000..b1fbd3830 --- /dev/null +++ b/keyboards/s7_elephant/rev2/keymaps/default/keymap.c | |||
| @@ -0,0 +1,65 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | |||
| 3 | enum custom_layers { | ||
| 4 | _QWERTY, | ||
| 5 | _FN | ||
| 6 | }; | ||
| 7 | |||
| 8 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 9 | |||
| 10 | /* Qwerty | ||
| 11 | * ,------. ,-------------------------------------------------------------------------------------------------. | ||
| 12 | * | F1 | | Esc`~ | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | Bkspc | Ins | | ||
| 13 | * |------| |-------------------------------------------------------------------------------------------------| | ||
| 14 | * | F2 | | Tab | Q | W | E | R | T | Y | U | I | O | P | [ | ] | \ | Del | | ||
| 15 | * |------| |-------------------------------------------------------------------------------------------------| | ||
| 16 | * | F3 | | Caps | A | S | D | F | G | H | J | K | L | ; | ' | Enter | Home| | ||
| 17 | * |------| |-------------------------------------------------------------------------------------------------| | ||
| 18 | * | F4 | | Shift | Z | X | C | V | B | N | M | , | . | / | RShift | U | End | | ||
| 19 | * |------| |-------------------------------------------------------------------------------------------------| | ||
| 20 | * | F5 | | Ctrl | Gui | Alt | Space | RAlt | FN | RCtrl | L | D | R | | ||
| 21 | * `------' `-------------------------------------------------------------------------------------------------' | ||
| 22 | */ | ||
| 23 | |||
| 24 | [_QWERTY] = LAYOUT_ansi_1u( | ||
| 25 | KC_F1, KC_GESC, 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_BSPC, KC_INS, | ||
| 26 | KC_F2, 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, KC_DEL, | ||
| 27 | KC_F3, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_HOME, | ||
| 28 | KC_F4, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END, | ||
| 29 | KC_F5, KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(_FN), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 30 | ), | ||
| 31 | |||
| 32 | /* FN | ||
| 33 | * ,------. ,-------------------------------------------------------------------------------------------------. | ||
| 34 | * |Reset | | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | PScr | ScrLck |Pause| | ||
| 35 | * |------| |-------------------------------------------------------------------------------------------------| | ||
| 36 | * | | | | | | | | | | | | | | | | | | | ||
| 37 | * |------| |-------------------------------------------------------------------------------------------------| | ||
| 38 | * | | | |Prev |Play |Next | | | | |VolD |Mute |VolU | | |PgUp | | ||
| 39 | * |------| |-------------------------------------------------------------------------------------------------| | ||
| 40 | * | | | | | | | | | | | | | | | |PgDn | | ||
| 41 | * |------| |-------------------------------------------------------------------------------------------------| | ||
| 42 | * |EEPRST| | | | | | | | | | | | | ||
| 43 | * `------' `-------------------------------------------------------------------------------------------------' | ||
| 44 | */ | ||
| 45 | |||
| 46 | [_FN] = LAYOUT_ansi_1u( | ||
| 47 | RESET, 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_PSCR, KC_SLCK, KC_PAUS, | ||
| 48 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 49 | _______, _______, KC_MPRV, KC_MPLY, KC_MNXT, _______, _______, _______, _______, KC_VOLD, KC_MUTE, KC_VOLU, _______, _______, KC_PGUP, | ||
| 50 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_PGDN, | ||
| 51 | EEP_RST, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 52 | ), | ||
| 53 | }; | ||
| 54 | |||
| 55 | bool led_update_user(led_t led_state) { | ||
| 56 | // Turn LEDs On/Off for Caps Lock | ||
| 57 | if (led_state.caps_lock) { | ||
| 58 | rgblight_enable_noeeprom(); | ||
| 59 | rgblight_sethsv_noeeprom(0, 0, 80); | ||
| 60 | } else { | ||
| 61 | rgblight_sethsv_noeeprom(0, 0, 80); | ||
| 62 | rgblight_disable_noeeprom(); | ||
| 63 | } | ||
| 64 | return false; | ||
| 65 | } | ||
diff --git a/keyboards/s7_elephant/rev2/keymaps/default/readme.md b/keyboards/s7_elephant/rev2/keymaps/default/readme.md new file mode 100644 index 000000000..c4fe30acd --- /dev/null +++ b/keyboards/s7_elephant/rev2/keymaps/default/readme.md | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | # Default keymap for S7 Elephant | ||
| 2 | |||
| 3 | **Features** | ||
| 4 | |||
| 5 | * LEDs are functioning as Caps-Lock indicators | ||
| 6 | |||
| 7 | ## QWERTY (Normal) Layer | ||
| 8 | ``` | ||
| 9 | ,------. ,-------------------------------------------------------------------------------------------------. | ||
| 10 | | F1 | | Esc`~ | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | Bkspc |Home | | ||
| 11 | |------| |-------------------------------------------------------------------------------------------------| | ||
| 12 | | F2 | | Tab | Q | W | E | R | T | Y | U | I | O | P | [ | ] | \ | End | | ||
| 13 | |------| |-------------------------------------------------------------------------------------------------| | ||
| 14 | | F3 | | Caps | A | S | D | F | G | H | J | K | L | ; | ' | Enter | Ins | | ||
| 15 | |------| |-------------------------------------------------------------------------------------------------| | ||
| 16 | | F4 | | Shift | Z | X | C | V | B | N | M | , | . | / | RShift | U | Del | | ||
| 17 | |------| |-------------------------------------------------------------------------------------------------| | ||
| 18 | | F5 | | Ctrl | Gui | Alt | Space | FN | RAlt | RCtrl | L | D | R | | ||
| 19 | `------' `-------------------------------------------------------------------------------------------------' | ||
| 20 | ``` | ||
| 21 | |||
| 22 | ## FN Layer | ||
| 23 | ``` | ||
| 24 | ,------. ,-------------------------------------------------------------------------------------------------. | ||
| 25 | |Reset | | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | PScr | ScrLck |Pause| | ||
| 26 | |------| |-------------------------------------------------------------------------------------------------| | ||
| 27 | | | | | | | | | | | | | | | | | | | | ||
| 28 | |------| |-------------------------------------------------------------------------------------------------| | ||
| 29 | | | | |Prev |Play |Next | | | | |VolD |Mute |VolU | | |PgUp | | ||
| 30 | |------| |-------------------------------------------------------------------------------------------------| | ||
| 31 | | | | | | | | | | | | | | | | |PgDn | | ||
| 32 | |------| |-------------------------------------------------------------------------------------------------| | ||
| 33 | |EPRM | | | | | | | | | | | | | ||
| 34 | `------' `-------------------------------------------------------------------------------------------------' | ||
| 35 | ``` | ||
diff --git a/keyboards/s7_elephant/rev2/keymaps/via/keymap.c b/keyboards/s7_elephant/rev2/keymaps/via/keymap.c new file mode 100644 index 000000000..b81777b12 --- /dev/null +++ b/keyboards/s7_elephant/rev2/keymaps/via/keymap.c | |||
| @@ -0,0 +1,92 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | |||
| 3 | // For readability | ||
| 4 | enum layer_names { | ||
| 5 | _BASE, | ||
| 6 | _FN1, | ||
| 7 | _FN2, | ||
| 8 | _FN3, | ||
| 9 | }; | ||
| 10 | |||
| 11 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 12 | |||
| 13 | /* Default layer | ||
| 14 | * ,------. ,-------------------------------------------------------------------------------------------------. | ||
| 15 | * | F1 | | Esc | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | Bkspc | Ins | | ||
| 16 | * |------| |-------------------------------------------------------------------------------------------------| | ||
| 17 | * | F2 | | Tab | Q | W | E | R | T | Y | U | I | O | P | [ | ] | \ | Del | | ||
| 18 | * |------| |-------------------------------------------------------------------------------------------------| | ||
| 19 | * | F3 | | Caps | A | S | D | F | G | H | J | K | L | ; | ' | Enter |Home | | ||
| 20 | * |------| |-------------------------------------------------------------------------------------------------| | ||
| 21 | * | F4 | | Shift | Z | X | C | V | B | N | M | , | . | / | RShift | U | End | | ||
| 22 | * |------| |-------------------------------------------------------------------------------------------------| | ||
| 23 | * | F5 | | Ctrl | Gui | Alt | Space | RAlt | FN | RCtrl | L | D | R | | ||
| 24 | * `------' `-------------------------------------------------------------------------------------------------' | ||
| 25 | */ | ||
| 26 | [_BASE] = LAYOUT_ansi_1u( | ||
| 27 | KC_F1, 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_BSPC, KC_INS, | ||
| 28 | KC_F2, 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, KC_DEL, | ||
| 29 | KC_F3, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_HOME, | ||
| 30 | KC_F4, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END, | ||
| 31 | KC_F5, KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT), | ||
| 32 | |||
| 33 | /* Fn1 Layer | ||
| 34 | * ,------. ,-------------------------------------------------------------------------------------------------. | ||
| 35 | * | F6 | | `~ | | | | | | | | | | | | | | | | ||
| 36 | * |------| |-------------------------------------------------------------------------------------------------| | ||
| 37 | * | F7 | | | | | | | | | | | | | | | | | | ||
| 38 | * |------| |-------------------------------------------------------------------------------------------------| | ||
| 39 | * | F8 | | |VolD |VolU |Mute | | | | | | | | | |PgUp | | ||
| 40 | * |------| |-------------------------------------------------------------------------------------------------| | ||
| 41 | * | F9 | | |Prev |Play |Next | | | | | | | | | |PgDn | | ||
| 42 | * |------| |-------------------------------------------------------------------------------------------------| | ||
| 43 | * | F10 | | | | | | | | | | | | | ||
| 44 | * `------' `-------------------------------------------------------------------------------------------------' | ||
| 45 | */ | ||
| 46 | [_FN1] = LAYOUT_ansi_1u( | ||
| 47 | KC_F6, KC_GRV, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 48 | KC_F7, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 49 | KC_F8, KC_TRNS, KC_VOLD, KC_VOLU, KC_MUTE, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PGUP, | ||
| 50 | KC_F9, KC_TRNS, KC_MPRV, KC_MPLY, KC_MNXT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PGDN, | ||
| 51 | KC_F10, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| 52 | |||
| 53 | /* Fn2 Layer | ||
| 54 | * ,------. ,-------------------------------------------------------------------------------------------------. | ||
| 55 | * | | | | | | | | | | | | | | | | | | | ||
| 56 | * |------| |-------------------------------------------------------------------------------------------------| | ||
| 57 | * | | | | | | | | | | | | | | | | | | | ||
| 58 | * |------| |-------------------------------------------------------------------------------------------------| | ||
| 59 | * | | | | | | | | | | | | | | | | | | ||
| 60 | * |------| |-------------------------------------------------------------------------------------------------| | ||
| 61 | * | | | | | | | | | | | | | | | | | | ||
| 62 | * |------| |-------------------------------------------------------------------------------------------------| | ||
| 63 | * | | | | | | | | | | | | | | ||
| 64 | * `------' `-------------------------------------------------------------------------------------------------' | ||
| 65 | */ | ||
| 66 | [_FN2] = LAYOUT_ansi_1u( | ||
| 67 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 68 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 69 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 70 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 71 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| 72 | |||
| 73 | /* Fn3 Layer | ||
| 74 | * ,------. ,-------------------------------------------------------------------------------------------------. | ||
| 75 | * | | | | | | | | | | | | | | | | | | | ||
| 76 | * |------| |-------------------------------------------------------------------------------------------------| | ||
| 77 | * | | | | | | | | | | | | | | | | | | | ||
| 78 | * |------| |-------------------------------------------------------------------------------------------------| | ||
| 79 | * | | | | | | | | | | | | | | | | | | ||
| 80 | * |------| |-------------------------------------------------------------------------------------------------| | ||
| 81 | * | | | | | | | | | | | | | | | | | | ||
| 82 | * |------| |-------------------------------------------------------------------------------------------------| | ||
| 83 | * | | | | | | | | | | | | | | ||
| 84 | * `------' `-------------------------------------------------------------------------------------------------' | ||
| 85 | */ | ||
| 86 | [_FN3] = LAYOUT_ansi_1u( | ||
| 87 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 88 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 89 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 90 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 91 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| 92 | }; | ||
diff --git a/keyboards/s7_elephant/rev2/keymaps/via/readme.md b/keyboards/s7_elephant/rev2/keymaps/via/readme.md new file mode 100644 index 000000000..c4fe30acd --- /dev/null +++ b/keyboards/s7_elephant/rev2/keymaps/via/readme.md | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | # Default keymap for S7 Elephant | ||
| 2 | |||
| 3 | **Features** | ||
| 4 | |||
| 5 | * LEDs are functioning as Caps-Lock indicators | ||
| 6 | |||
| 7 | ## QWERTY (Normal) Layer | ||
| 8 | ``` | ||
| 9 | ,------. ,-------------------------------------------------------------------------------------------------. | ||
| 10 | | F1 | | Esc`~ | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | Bkspc |Home | | ||
| 11 | |------| |-------------------------------------------------------------------------------------------------| | ||
| 12 | | F2 | | Tab | Q | W | E | R | T | Y | U | I | O | P | [ | ] | \ | End | | ||
| 13 | |------| |-------------------------------------------------------------------------------------------------| | ||
| 14 | | F3 | | Caps | A | S | D | F | G | H | J | K | L | ; | ' | Enter | Ins | | ||
| 15 | |------| |-------------------------------------------------------------------------------------------------| | ||
| 16 | | F4 | | Shift | Z | X | C | V | B | N | M | , | . | / | RShift | U | Del | | ||
| 17 | |------| |-------------------------------------------------------------------------------------------------| | ||
| 18 | | F5 | | Ctrl | Gui | Alt | Space | FN | RAlt | RCtrl | L | D | R | | ||
| 19 | `------' `-------------------------------------------------------------------------------------------------' | ||
| 20 | ``` | ||
| 21 | |||
| 22 | ## FN Layer | ||
| 23 | ``` | ||
| 24 | ,------. ,-------------------------------------------------------------------------------------------------. | ||
| 25 | |Reset | | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | PScr | ScrLck |Pause| | ||
| 26 | |------| |-------------------------------------------------------------------------------------------------| | ||
| 27 | | | | | | | | | | | | | | | | | | | | ||
| 28 | |------| |-------------------------------------------------------------------------------------------------| | ||
| 29 | | | | |Prev |Play |Next | | | | |VolD |Mute |VolU | | |PgUp | | ||
| 30 | |------| |-------------------------------------------------------------------------------------------------| | ||
| 31 | | | | | | | | | | | | | | | | |PgDn | | ||
| 32 | |------| |-------------------------------------------------------------------------------------------------| | ||
| 33 | |EPRM | | | | | | | | | | | | | ||
| 34 | `------' `-------------------------------------------------------------------------------------------------' | ||
| 35 | ``` | ||
diff --git a/keyboards/s7_elephant/rev2/keymaps/via/rules.mk b/keyboards/s7_elephant/rev2/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/s7_elephant/rev2/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes | |||
diff --git a/keyboards/s7_elephant/rev2/readme.md b/keyboards/s7_elephant/rev2/readme.md new file mode 100644 index 000000000..04cbafd96 --- /dev/null +++ b/keyboards/s7_elephant/rev2/readme.md | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | # S7 Elephant | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A high-end 70% custom keyboard designed and produced by [jacky](https://geekhack.org/index.php?action=profile;u=63864) from Geekhack. | ||
| 6 | |||
| 7 | * Keyboard Maintainer: QMK Community | ||
| 8 | * Hardware Supported: S7 Elephant | ||
| 9 | * Hardware Availability: [The GB has ended with little chance to run again.](https://geekhack.org/index.php?topic=96434.0) | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make s7_elephant/rev2:default | ||
| 14 | |||
| 15 | To enter the bootloader, either short the pins on the PCB next to CAPSLOCK or the press the RESET button on the FN layer. | ||
| 16 | |||
| 17 | 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/s7_elephant/rev2/rev2.c b/keyboards/s7_elephant/rev2/rev2.c new file mode 100644 index 000000000..3e84aedd5 --- /dev/null +++ b/keyboards/s7_elephant/rev2/rev2.c | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | /* Copyright 2020 MudkipMao | ||
| 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 "rev2.h" | ||
| 17 | |||
| 18 | // generated by KBFirmware JSON to QMK Parser | ||
| 19 | // https://noroadsleft.github.io/kbf_qmk_converter/ | ||
diff --git a/keyboards/s7_elephant/rev2/rev2.h b/keyboards/s7_elephant/rev2/rev2.h new file mode 100644 index 000000000..16fe50aad --- /dev/null +++ b/keyboards/s7_elephant/rev2/rev2.h | |||
| @@ -0,0 +1,61 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include "quantum.h" | ||
| 4 | |||
| 5 | #define ___ KC_NO | ||
| 6 | |||
| 7 | /* ALL: This is an odd layout that the JSON file comes preloaded with. Split left-shift and ansi enter | ||
| 8 | * ,------. ,-------------------------------------------------------------------------------------------------. | ||
| 9 | * | | | | | | | | | | | | | | | | | | | ||
| 10 | * |------| |-------------------------------------------------------------------------------------------------| | ||
| 11 | | | | | | | | | | | | | | | | | | | | ||
| 12 | * |------| |-------------------------------------------------------------------------------------------------| | ||
| 13 | * | | | | | | | | | | | | | | | | | | ||
| 14 | * |------| |-------------------------------------------------------------------------------------------------| | ||
| 15 | * | | | | | | | | | | | | | | | | | | | ||
| 16 | * |------| |-------------------------------------------------------------------------------------------------| | ||
| 17 | * | | | | | | | | | | | | | | ||
| 18 | * `------' `-------------------------------------------------------------------------------------------------' | ||
| 19 | */ | ||
| 20 | |||
| 21 | #define LAYOUT_all( \ | ||
| 22 | K0F, K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K4E, \ | ||
| 23 | K1F, K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K2C, K1E, \ | ||
| 24 | K2F, K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K1D, K2E, \ | ||
| 25 | K3F, K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, \ | ||
| 26 | K4F, K40, K41, K42, K46, K48, K49, K4A, K4B, K4C, K4D \ | ||
| 27 | ) { \ | ||
| 28 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F }, \ | ||
| 29 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F }, \ | ||
| 30 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, ___, K2E, K2F }, \ | ||
| 31 | { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, K3F }, \ | ||
| 32 | { K40, K41, K42, ___, ___, ___, K46, ___, K48, K49, K4A, K4B, K4C, K4D, K4E, K4F } \ | ||
| 33 | } | ||
| 34 | |||
| 35 | /* ANSI | ||
| 36 | * ,---. ,---------------------------------------------------------------. | ||
| 37 | * | | | | | | | | | | | | | | | | | | | ||
| 38 | * |---| |---------------------------------------------------------------| | ||
| 39 | * | | | | | | | | | | | | | | | | | | | ||
| 40 | * |---| |---------------------------------------------------------------| | ||
| 41 | * | | | | | | | | | | | | | | | | | | ||
| 42 | * |---| |---------------------------------------------------------------| | ||
| 43 | * | | | | | | | | | | | | | | | | | | ||
| 44 | * |---| |---------------------------------------------------------------| | ||
| 45 | * | | | | | | | | | | | | | | ||
| 46 | * `---' `---------------------------------------------------------------' | ||
| 47 | */ | ||
| 48 | |||
| 49 | #define LAYOUT_ansi_1u( \ | ||
| 50 | K0F, K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0E, K4E, \ | ||
| 51 | K1F, K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K2C, K1E, \ | ||
| 52 | K2F, K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K1D, K2E, \ | ||
| 53 | K3F, K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, \ | ||
| 54 | K4F, K40, K41, K42, K46, K48, K49, K4A, K4B, K4C, K4D \ | ||
| 55 | ) { \ | ||
| 56 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, ___, K0E, K0F }, \ | ||
| 57 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F }, \ | ||
| 58 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, ___, K2E, K2F }, \ | ||
| 59 | { K30, ___, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, K3F }, \ | ||
| 60 | { K40, K41, K42, ___, ___, ___, K46, ___, K48, K49, K4A, K4B, K4C, K4D, K4E, K4F } \ | ||
| 61 | } | ||
diff --git a/keyboards/s7_elephant/rev2/rules.mk b/keyboards/s7_elephant/rev2/rules.mk new file mode 100644 index 000000000..cbf45a2b9 --- /dev/null +++ b/keyboards/s7_elephant/rev2/rules.mk | |||
| @@ -0,0 +1,33 @@ | |||
| 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 = atmel-dfu | ||
| 13 | |||
| 14 | # Build Options | ||
| 15 | # change yes to no to disable | ||
| 16 | # | ||
| 17 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
| 18 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 19 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 20 | CONSOLE_ENABLE = no # Console for debug | ||
| 21 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 22 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 23 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 24 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 25 | NKRO_ENABLE = no # USB Nkey Rollover | ||
| 26 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
| 27 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 28 | MIDI_ENABLE = no # MIDI support | ||
| 29 | UNICODE_ENABLE = no # Unicode | ||
| 30 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 31 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 32 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | ||
| 33 | LTO_ENABLE = yes | ||
diff --git a/keyboards/s7_elephant/rules.mk b/keyboards/s7_elephant/rules.mk index 91fe85c3d..318b6ee20 100644 --- a/keyboards/s7_elephant/rules.mk +++ b/keyboards/s7_elephant/rules.mk | |||
| @@ -1,25 +1 @@ | |||
| 1 | # MCU name | DEFAULT_FOLDER = s7_elephant/rev1 \ No newline at end of file | |
| 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 = atmel-dfu | ||
| 13 | |||
| 14 | # Build Options | ||
| 15 | # comment out to disable the options. | ||
| 16 | # | ||
| 17 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration | ||
| 18 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 19 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 20 | CONSOLE_ENABLE = no # Console for debug | ||
| 21 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 22 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 23 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 24 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 25 | RGBLIGHT_ENABLE = yes # Enable keyboard underlight functionality | ||
diff --git a/keyboards/s7_elephant/s7_elephant.c b/keyboards/s7_elephant/s7_elephant.c deleted file mode 100644 index a869f46db..000000000 --- a/keyboards/s7_elephant/s7_elephant.c +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | #include "s7_elephant.h" | ||
