diff options
| author | Wilba <Jason.S.Williams@gmail.com> | 2020-01-05 19:18:36 +1100 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2020-01-05 00:18:36 -0800 |
| commit | 12c6f9a412a940021e2f98fe29e4cbf62c03ddbd (patch) | |
| tree | 8cd0c46d715be32c9504e3c0e1b27cc3b0315498 | |
| parent | a68f514a8a82a19b078315fd068db592cd811f19 (diff) | |
| download | qmk_firmware-12c6f9a412a940021e2f98fe29e4cbf62c03ddbd.tar.gz qmk_firmware-12c6f9a412a940021e2f98fe29e4cbf62c03ddbd.zip | |
[Keyboard] Added VIA support to Efreet (#7788)
* Added Efreet
* Review changes
| -rw-r--r-- | keyboards/efreet/config.h | 4 | ||||
| -rw-r--r-- | keyboards/efreet/keymaps/via/keymap.c | 43 | ||||
| -rw-r--r-- | keyboards/efreet/keymaps/via/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/efreet/rules.mk | 14 |
4 files changed, 53 insertions, 9 deletions
diff --git a/keyboards/efreet/config.h b/keyboards/efreet/config.h index 2a420b248..c95a6a6b2 100644 --- a/keyboards/efreet/config.h +++ b/keyboards/efreet/config.h | |||
| @@ -20,8 +20,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 20 | #include "config_common.h" | 20 | #include "config_common.h" |
| 21 | 21 | ||
| 22 | /* USB Device descriptor parameter */ | 22 | /* USB Device descriptor parameter */ |
| 23 | #define VENDOR_ID 0xFEED | 23 | #define VENDOR_ID 0x534F // "SO" |
| 24 | #define PRODUCT_ID 0x0000 | 24 | #define PRODUCT_ID 0x0001 |
| 25 | #define DEVICE_VER 0x0001 | 25 | #define DEVICE_VER 0x0001 |
| 26 | #define MANUFACTURER Soran | 26 | #define MANUFACTURER Soran |
| 27 | #define PRODUCT Efreet | 27 | #define PRODUCT Efreet |
diff --git a/keyboards/efreet/keymaps/via/keymap.c b/keyboards/efreet/keymaps/via/keymap.c new file mode 100644 index 000000000..c08e3bbe0 --- /dev/null +++ b/keyboards/efreet/keymaps/via/keymap.c | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | /* Copyright 2020 Wilba | ||
| 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_ortho_4x12( | ||
| 20 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
| 21 | KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 22 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT , | ||
| 23 | BL_TOGG, KC_LCTL, KC_LALT, KC_LGUI, MO(1), KC_SPC, KC_SPC, MO(2), KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | ||
| 24 | ), | ||
| 25 | [1] = LAYOUT_ortho_4x12( | ||
| 26 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
| 27 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, | ||
| 28 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, KC_PGUP, KC_PGDN, _______, | ||
| 29 | _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY | ||
| 30 | ), | ||
| 31 | [2] = LAYOUT_ortho_4x12( | ||
| 32 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, | ||
| 33 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, | ||
| 34 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, S(KC_NUHS), S(KC_NUBS), KC_HOME, KC_END, _______, | ||
| 35 | _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY | ||
| 36 | ), | ||
| 37 | [3] = LAYOUT_ortho_4x12( | ||
| 38 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 39 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 40 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 41 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 42 | ) | ||
| 43 | }; | ||
diff --git a/keyboards/efreet/keymaps/via/rules.mk b/keyboards/efreet/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/efreet/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes | |||
diff --git a/keyboards/efreet/rules.mk b/keyboards/efreet/rules.mk index f3c51f7a6..411c3f7a7 100644 --- a/keyboards/efreet/rules.mk +++ b/keyboards/efreet/rules.mk | |||
| @@ -14,19 +14,19 @@ BOOTLOADER = atmel-dfu | |||
| 14 | # Build Options | 14 | # Build Options |
| 15 | # change yes to no to disable | 15 | # change yes to no to disable |
| 16 | # | 16 | # |
| 17 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) | 17 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration |
| 18 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | 18 | MOUSEKEY_ENABLE = yes # Mouse keys |
| 19 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | 19 | EXTRAKEY_ENABLE = yes # Audio control and System control |
| 20 | CONSOLE_ENABLE = no # Console for debug(+400) | 20 | CONSOLE_ENABLE = no # Console for debug |
| 21 | COMMAND_ENABLE = yes # Commands for debug and configuration | 21 | COMMAND_ENABLE = no # Commands for debug and configuration |
| 22 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 22 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
| 23 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | 23 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality |
| 24 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | 24 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow |
| 25 | MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) | 25 | MIDI_ENABLE = no # MIDI support |
| 26 | UNICODE_ENABLE = no # Unicode | 26 | UNICODE_ENABLE = no # Unicode |
| 27 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | 27 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID |
| 28 | AUDIO_ENABLE = no # Audio output on port C6 | 28 | AUDIO_ENABLE = no # Audio output on port C6 |
| 29 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | 29 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches |
| 30 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400) | 30 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs |
| 31 | 31 | ||
| 32 | LAYOUTS = ortho_4x12 planck_mit | 32 | LAYOUTS = ortho_4x12 planck_mit |
