diff options
| author | Salicylic-acid3 <46864619+Salicylic-acid3@users.noreply.github.com> | 2021-08-31 14:19:21 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-30 22:19:21 -0700 |
| commit | bdd0a6c09789e3e4380f4351f1f83004542d309f (patch) | |
| tree | 49036275e2b6ff5d8818ed8206348496c02841b0 /keyboards/naked60 | |
| parent | f2c9e82e5b3887ed28c3a5c68d27c4efaca54201 (diff) | |
| download | qmk_firmware-bdd0a6c09789e3e4380f4351f1f83004542d309f.tar.gz qmk_firmware-bdd0a6c09789e3e4380f4351f1f83004542d309f.zip | |
[Keyboard] Addition of VIA keymap and a few fixes for naked60 (#14225)
Co-authored-by: Joel Challis <git@zvecr.com>
Diffstat (limited to 'keyboards/naked60')
| -rw-r--r-- | keyboards/naked60/.noci | 0 | ||||
| -rw-r--r-- | keyboards/naked60/config.h | 3 | ||||
| -rw-r--r-- | keyboards/naked60/keymaps/via/config.h | 23 | ||||
| -rw-r--r-- | keyboards/naked60/keymaps/via/keymap.c | 62 | ||||
| -rw-r--r-- | keyboards/naked60/keymaps/via/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/naked60/naked60.c | 17 | ||||
| -rw-r--r-- | keyboards/naked60/naked60.h | 17 | ||||
| -rw-r--r-- | keyboards/naked60/rev1/config.h | 10 | ||||
| -rw-r--r-- | keyboards/naked60/rev1/rev1.c | 19 | ||||
| -rw-r--r-- | keyboards/naked60/rev1/rev1.h | 17 | ||||
| -rw-r--r-- | keyboards/naked60/rules.mk | 30 |
11 files changed, 170 insertions, 29 deletions
diff --git a/keyboards/naked60/.noci b/keyboards/naked60/.noci deleted file mode 100644 index e69de29bb..000000000 --- a/keyboards/naked60/.noci +++ /dev/null | |||
diff --git a/keyboards/naked60/config.h b/keyboards/naked60/config.h index cfb6bf4ff..fae55d19f 100644 --- a/keyboards/naked60/config.h +++ b/keyboards/naked60/config.h | |||
| @@ -1,6 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | Copyright 2012 Jun Wako <wakojun@gmail.com> | 2 | Copyright 2021 Salicylic_Acid |
| 3 | Copyright 2015 Jack Humbert | ||
| 4 | 3 | ||
| 5 | This program is free software: you can redistribute it and/or modify | 4 | This program is free software: you can redistribute it and/or modify |
| 6 | it under the terms of the GNU General Public License as published by | 5 | it under the terms of the GNU General Public License as published by |
diff --git a/keyboards/naked60/keymaps/via/config.h b/keyboards/naked60/keymaps/via/config.h new file mode 100644 index 000000000..32ec5281b --- /dev/null +++ b/keyboards/naked60/keymaps/via/config.h | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | /* Copyright 2021 Salicylic_acid3 | ||
| 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 | /* Select hand configuration */ | ||
| 20 | |||
| 21 | #define TAPPING_FORCE_HOLD | ||
| 22 | #define TAPPING_TERM 180 | ||
| 23 | #define DYNAMIC_KEYMAP_LAYER_COUNT 3 | ||
diff --git a/keyboards/naked60/keymaps/via/keymap.c b/keyboards/naked60/keymaps/via/keymap.c new file mode 100644 index 000000000..992185871 --- /dev/null +++ b/keyboards/naked60/keymaps/via/keymap.c | |||
| @@ -0,0 +1,62 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Salicylic_Acid | ||
| 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 | #include QMK_KEYBOARD_H | ||
| 19 | |||
| 20 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 21 | [0] = LAYOUT( | ||
| 22 | //,-----------------------------------------------------| |-----------------------------------------------------. | ||
| 23 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
| 24 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| | ||
| 25 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, | ||
| 26 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| | ||
| 27 | KC_LSFT, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 28 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| | ||
| 29 | KC_LCTRL, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, | ||
| 30 | //|--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------| | ||
| 31 | KC_TILD,KC_LCTRL, KC_LALT, KC_LGUI, MO(1), KC_SPC, KC_SPC, MO(2), KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | ||
| 32 | //`------------------------------------------------------------------------------------------------------------' | ||
| 33 | ), | ||
| 34 | |||
| 35 | [1] = LAYOUT( | ||
| 36 | //,-----------------------------------------------------| |-----------------------------------------------------. | ||
| 37 | KC_ESC, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, | ||
| 38 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| | ||
| 39 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR,KC_LPRN, KC_RPRN, KC_DEL, | ||
| 40 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| | ||
| 41 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, | ||
| 42 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| | ||
| 43 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,S(KC_NUHS),S(KC_NUBS), _______, _______, _______, | ||
| 44 | //|--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------| | ||
| 45 | _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY | ||
| 46 | //`------------------------------------------------------------------------------------------------------------' | ||
| 47 | ), | ||
| 48 | |||
| 49 | [2] = LAYOUT( | ||
| 50 | //,-----------------------------------------------------| |-----------------------------------------------------. | ||
| 51 | KC_ESC, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, | ||
| 52 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| | ||
| 53 | KC_TILD, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, | ||
| 54 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| | ||
| 55 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, | ||
| 56 | //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| | ||
| 57 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, _______, _______, _______, | ||
| 58 | //|--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------| | ||
| 59 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 60 | //`------------------------------------------------------------------------------------------------------------' | ||
| 61 | ) | ||
| 62 | }; | ||
diff --git a/keyboards/naked60/keymaps/via/rules.mk b/keyboards/naked60/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/naked60/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes | |||
diff --git a/keyboards/naked60/naked60.c b/keyboards/naked60/naked60.c index 1ff159cdb..d1d46394f 100644 --- a/keyboards/naked60/naked60.c +++ b/keyboards/naked60/naked60.c | |||
| @@ -1 +1,18 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Salicylic_Acid | ||
| 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 | |||
| 1 | #include "naked60.h" | 18 | #include "naked60.h" |
diff --git a/keyboards/naked60/naked60.h b/keyboards/naked60/naked60.h index 1b736feec..4952b6b07 100644 --- a/keyboards/naked60/naked60.h +++ b/keyboards/naked60/naked60.h | |||
| @@ -1,3 +1,20 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Salicylic_Acid | ||
| 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 | |||
| 1 | #pragma once | 18 | #pragma once |
| 2 | 19 | ||
| 3 | #include "quantum.h" | 20 | #include "quantum.h" |
diff --git a/keyboards/naked60/rev1/config.h b/keyboards/naked60/rev1/config.h index 710aa059b..b75409501 100644 --- a/keyboards/naked60/rev1/config.h +++ b/keyboards/naked60/rev1/config.h | |||
| @@ -1,6 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | Copyright 2012 Jun Wako <wakojun@gmail.com> | 2 | Copyright 2021 Salicylic_Acid |
| 3 | Copyright 2015 Jack Humbert | ||
| 4 | 3 | ||
| 5 | This program is free software: you can redistribute it and/or modify | 4 | This program is free software: you can redistribute it and/or modify |
| 6 | it under the terms of the GNU General Public License as published by | 5 | it under the terms of the GNU General Public License as published by |
| @@ -18,11 +17,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 18 | 17 | ||
| 19 | #pragma once | 18 | #pragma once |
| 20 | 19 | ||
| 21 | |||
| 22 | /* USB Device descriptor parameter */ | 20 | /* USB Device descriptor parameter */ |
| 23 | #define VENDOR_ID 0xFEED | 21 | #define VENDOR_ID 0x04D8 |
| 24 | #define PRODUCT_ID 0x3060 | 22 | #define PRODUCT_ID 0xEB5C |
| 25 | #define DEVICE_VER 0x0002 | 23 | #define DEVICE_VER 0x0001 |
| 26 | #define MANUFACTURER Salicylic_Acid | 24 | #define MANUFACTURER Salicylic_Acid |
| 27 | #define PRODUCT naked60 | 25 | #define PRODUCT naked60 |
| 28 | 26 | ||
diff --git a/keyboards/naked60/rev1/rev1.c b/keyboards/naked60/rev1/rev1.c index bce48f89c..bef4f1931 100644 --- a/keyboards/naked60/rev1/rev1.c +++ b/keyboards/naked60/rev1/rev1.c | |||
| @@ -1,5 +1,22 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Salicylic_Acid | ||
| 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 | |||
| 1 | #include "naked60.h" | 18 | #include "naked60.h" |
| 2 | 19 | ||
| 3 | void matrix_init_kb(void) { | 20 | void matrix_init_kb(void) { |
| 4 | matrix_init_user(); | 21 | matrix_init_user(); |
| 5 | }; | 22 | }; \ No newline at end of file |
diff --git a/keyboards/naked60/rev1/rev1.h b/keyboards/naked60/rev1/rev1.h index d8ee83c47..12798022e 100644 --- a/keyboards/naked60/rev1/rev1.h +++ b/keyboards/naked60/rev1/rev1.h | |||
| @@ -1,3 +1,20 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Salicylic_Acid | ||
| 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 | |||
| 1 | #pragma once | 18 | #pragma once |
| 2 | 19 | ||
| 3 | #include "naked60.h" | 20 | #include "naked60.h" |
diff --git a/keyboards/naked60/rules.mk b/keyboards/naked60/rules.mk index 0388b5520..2da17b103 100644 --- a/keyboards/naked60/rules.mk +++ b/keyboards/naked60/rules.mk | |||
| @@ -2,34 +2,24 @@ | |||
| 2 | MCU = atmega32u4 | 2 | MCU = atmega32u4 |
| 3 | 3 | ||
| 4 | # Bootloader selection | 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 | 5 | BOOTLOADER = caterina |
| 13 | 6 | ||
| 14 | # Build Options | 7 | # Build Options |
| 15 | # change to "no" to disable the options, or define them in the Makefile in | 8 | # change yes to no to disable |
| 16 | # the appropriate keymap folder that will get included automatically | ||
| 17 | # | 9 | # |
| 18 | BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite | 10 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration |
| 19 | MOUSEKEY_ENABLE = yes # Mouse keys | 11 | MOUSEKEY_ENABLE = yes # Mouse keys |
| 20 | EXTRAKEY_ENABLE = yes # Audio control and System control | 12 | EXTRAKEY_ENABLE = yes # Audio control and System control |
| 21 | CONSOLE_ENABLE = no # Console for debug | 13 | CONSOLE_ENABLE = no # Console for debug |
| 22 | COMMAND_ENABLE = yes # Commands for debug and configuration | 14 | COMMAND_ENABLE = no # Commands for debug and configuration |
| 23 | NKRO_ENABLE = no # 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 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 26 | UNICODE_ENABLE = no # Unicode | ||
| 27 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 28 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. | ||
| 29 | OLED_ENABLE = no | ||
| 30 | USE_I2C = no | ||
| 31 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | 15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE |
| 32 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 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 = no # USB Nkey Rollover | ||
| 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 22 | AUDIO_ENABLE = no # Audio output | ||
| 33 | 23 | ||
| 34 | SPLIT_KEYBOARD = yes | 24 | SPLIT_KEYBOARD = yes |
| 35 | 25 | ||
