diff options
| author | yfuku <30647434+yfuku@users.noreply.github.com> | 2021-12-08 04:59:39 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-07 11:59:39 -0800 |
| commit | 7e58ab88ffb5a7ac556e3ca4184628ef41ba8d20 (patch) | |
| tree | 18636eca2978849cd27fd16a0c764ec5dfec0bef | |
| parent | 9df50e8f5bfdce233a5e861ec565b0b5fd467d08 (diff) | |
| download | qmk_firmware-7e58ab88ffb5a7ac556e3ca4184628ef41ba8d20.tar.gz qmk_firmware-7e58ab88ffb5a7ac556e3ca4184628ef41ba8d20.zip | |
[Keyboard] Add stickey4 keyboard (#15396)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
| -rw-r--r-- | keyboards/dailycraft/stickey4/config.h | 156 | ||||
| -rw-r--r-- | keyboards/dailycraft/stickey4/keymaps/default/keymap.c | 43 | ||||
| -rw-r--r-- | keyboards/dailycraft/stickey4/keymaps/default/readme.md | 1 | ||||
| -rw-r--r-- | keyboards/dailycraft/stickey4/keymaps/via/keymap.c | 115 | ||||
| -rw-r--r-- | keyboards/dailycraft/stickey4/keymaps/via/readme.md | 1 | ||||
| -rw-r--r-- | keyboards/dailycraft/stickey4/keymaps/via/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/dailycraft/stickey4/readme.md | 26 | ||||
| -rw-r--r-- | keyboards/dailycraft/stickey4/rules.mk | 20 | ||||
| -rw-r--r-- | keyboards/dailycraft/stickey4/stickey4.c | 17 | ||||
| -rw-r--r-- | keyboards/dailycraft/stickey4/stickey4.h | 36 |
10 files changed, 416 insertions, 0 deletions
diff --git a/keyboards/dailycraft/stickey4/config.h b/keyboards/dailycraft/stickey4/config.h new file mode 100644 index 000000000..85e49bca9 --- /dev/null +++ b/keyboards/dailycraft/stickey4/config.h | |||
| @@ -0,0 +1,156 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 yfuku | ||
| 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 0x5946 // YF | ||
| 24 | #define PRODUCT_ID 0x0010 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER yfuku | ||
| 27 | #define PRODUCT stickey4 | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | #define MATRIX_ROWS 1 | ||
| 31 | #define MATRIX_COLS 8 | ||
| 32 | |||
| 33 | /* | ||
| 34 | * Keyboard Matrix Assignments | ||
| 35 | * | ||
| 36 | * Change this to how you wired your keyboard | ||
| 37 | * COLS: AVR pins used for columns, left to right | ||
| 38 | * ROWS: AVR pins used for rows, top to bottom | ||
| 39 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 40 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 41 | * | ||
| 42 | */ | ||
| 43 | #define DIRECT_PINS { \ | ||
| 44 | { D4, C6, D7, E6, NO_PIN, NO_PIN, NO_PIN, NO_PIN } \ | ||
| 45 | } | ||
| 46 | #define UNUSED_PINS | ||
| 47 | |||
| 48 | /* COL2ROW, ROW2COL */ | ||
| 49 | #define DIODE_DIRECTION COL2ROW | ||
| 50 | |||
| 51 | /* | ||
| 52 | * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN. | ||
| 53 | */ | ||
| 54 | #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 | ||
| 55 | |||
| 56 | //#define LED_NUM_LOCK_PIN B0 | ||
| 57 | //#define LED_CAPS_LOCK_PIN B1 | ||
| 58 | //#define LED_SCROLL_LOCK_PIN B2 | ||
| 59 | //#define LED_COMPOSE_PIN B3 | ||
| 60 | //#define LED_KANA_PIN B4 | ||
| 61 | |||
| 62 | //#define BACKLIGHT_PIN B7 | ||
| 63 | //#define BACKLIGHT_LEVELS 3 | ||
| 64 | //#define BACKLIGHT_BREATHING | ||
| 65 | |||
| 66 | //#define RGB_DI_PIN E2 | ||
| 67 | //#ifdef RGB_DI_PIN | ||
| 68 | //# define RGBLED_NUM 16 | ||
| 69 | //# define RGBLIGHT_HUE_STEP 8 | ||
| 70 | //# define RGBLIGHT_SAT_STEP 8 | ||
| 71 | //# define RGBLIGHT_VAL_STEP 8 | ||
| 72 | //# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 73 | //# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 74 | /*== all animations enable ==*/ | ||
| 75 | //# define RGBLIGHT_ANIMATIONS | ||
| 76 | /*== or choose animations ==*/ | ||
| 77 | //# define RGBLIGHT_EFFECT_BREATHING | ||
| 78 | //# define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 79 | //# define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 80 | //# define RGBLIGHT_EFFECT_SNAKE | ||
| 81 | //# define RGBLIGHT_EFFECT_KNIGHT | ||
| 82 | //# define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 83 | //# define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 84 | //# define RGBLIGHT_EFFECT_RGB_TEST | ||
| 85 | //# define RGBLIGHT_EFFECT_ALTERNATING | ||
| 86 | /*== customize breathing effect ==*/ | ||
| 87 | /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
| 88 | //# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
| 89 | /*==== use exp() and sin() ====*/ | ||
| 90 | //# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
| 91 | //# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
| 92 | //#endif | ||
| 93 | |||
| 94 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 95 | #define DEBOUNCE 5 | ||
| 96 | |||
| 97 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 98 | //#define MATRIX_HAS_GHOST | ||
| 99 | |||
| 100 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 101 | #define LOCKING_SUPPORT_ENABLE | ||
| 102 | /* Locking resynchronize hack */ | ||
| 103 | #define LOCKING_RESYNC_ENABLE | ||
| 104 | |||
| 105 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 106 | * This is useful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 107 | */ | ||
| 108 | //#define GRAVE_ESC_CTRL_OVERRIDE | ||
| 109 | |||
| 110 | /* | ||
| 111 | * Force NKRO | ||
| 112 | * | ||
| 113 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 114 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 115 | * makefile for this to work.) | ||
| 116 | * | ||
| 117 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 118 | * until the next keyboard reset. | ||
| 119 | * | ||
| 120 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 121 | * fully operational during normal computer usage. | ||
| 122 | * | ||
| 123 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 124 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 125 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 126 | * power-up. | ||
| 127 | * | ||
| 128 | */ | ||
| 129 | //#define FORCE_NKRO | ||
| 130 | |||
| 131 | /* | ||
| 132 | * Feature disable options | ||
| 133 | * These options are also useful to firmware size reduction. | ||
| 134 | */ | ||
| 135 | |||
| 136 | /* disable debug print */ | ||
| 137 | //#define NO_DEBUG | ||
| 138 | |||
| 139 | /* disable print */ | ||
| 140 | //#define NO_PRINT | ||
| 141 | |||
| 142 | /* disable action features */ | ||
| 143 | //#define NO_ACTION_LAYER | ||
| 144 | //#define NO_ACTION_TAPPING | ||
| 145 | //#define NO_ACTION_ONESHOT | ||
| 146 | |||
| 147 | /* disable these deprecated features by default */ | ||
| 148 | #define NO_ACTION_MACRO | ||
| 149 | #define NO_ACTION_FUNCTION | ||
| 150 | |||
| 151 | /* Bootmagic Lite key configuration */ | ||
| 152 | //#define BOOTMAGIC_LITE_ROW 0 | ||
| 153 | //#define BOOTMAGIC_LITE_COLUMN 0 | ||
| 154 | |||
| 155 | #define ENCODERS_PAD_A { D4, D7 } | ||
| 156 | #define ENCODERS_PAD_B { C6, E6 } | ||
diff --git a/keyboards/dailycraft/stickey4/keymaps/default/keymap.c b/keyboards/dailycraft/stickey4/keymaps/default/keymap.c new file mode 100644 index 000000000..70de5dca4 --- /dev/null +++ b/keyboards/dailycraft/stickey4/keymaps/default/keymap.c | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | /* Copyright 2021 yfuku | ||
| 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 | // Defines names for use in layer keycodes and the keymap | ||
| 19 | enum layer_names { | ||
| 20 | _BASE, | ||
| 21 | _FN1, | ||
| 22 | _FN2, | ||
| 23 | _FN3 | ||
| 24 | }; | ||
| 25 | |||
| 26 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 27 | [_BASE] = LAYOUT( | ||
| 28 | KC_A, KC_B, KC_C, KC_D, | ||
| 29 | KC_NO, KC_NO, KC_NO, KC_NO // for encoders | ||
| 30 | ), | ||
| 31 | [_FN1] = LAYOUT( | ||
| 32 | KC_NO, KC_NO, KC_NO, KC_NO, | ||
| 33 | KC_NO, KC_NO, KC_NO, KC_NO | ||
| 34 | ), | ||
| 35 | [_FN2] = LAYOUT( | ||
| 36 | KC_NO, KC_NO, KC_NO, KC_NO, | ||
| 37 | KC_NO, KC_NO, KC_NO, KC_NO | ||
| 38 | ), | ||
| 39 | [_FN3] = LAYOUT( | ||
| 40 | KC_NO, KC_NO, KC_NO, KC_NO, | ||
| 41 | KC_NO, KC_NO, KC_NO, KC_NO | ||
| 42 | ) | ||
| 43 | }; | ||
diff --git a/keyboards/dailycraft/stickey4/keymaps/default/readme.md b/keyboards/dailycraft/stickey4/keymaps/default/readme.md new file mode 100644 index 000000000..3b9ed23b9 --- /dev/null +++ b/keyboards/dailycraft/stickey4/keymaps/default/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The default keymap for stickey4 | |||
diff --git a/keyboards/dailycraft/stickey4/keymaps/via/keymap.c b/keyboards/dailycraft/stickey4/keymaps/via/keymap.c new file mode 100644 index 000000000..602d3fb10 --- /dev/null +++ b/keyboards/dailycraft/stickey4/keymaps/via/keymap.c | |||
| @@ -0,0 +1,115 @@ | |||
| 1 | /* Copyright 2021 yfuku | ||
| 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 | // Defines names for use in layer keycodes and the keymap | ||
| 19 | enum layer_names { | ||
| 20 | _BASE, | ||
| 21 | _FN1, | ||
| 22 | _FN2, | ||
| 23 | _FN3 | ||
| 24 | }; | ||
| 25 | |||
| 26 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 27 | [_BASE] = LAYOUT( | ||
| 28 | KC_A, KC_B, KC_C, KC_D, | ||
| 29 | KC_NO, KC_NO, KC_NO, KC_NO // for encoders | ||
| 30 | ), | ||
| 31 | [_FN1] = LAYOUT( | ||
| 32 | KC_NO, KC_NO, KC_NO, KC_NO, | ||
| 33 | KC_NO, KC_NO, KC_NO, KC_NO | ||
| 34 | ), | ||
| 35 | [_FN2] = LAYOUT( | ||
| 36 | KC_NO, KC_NO, KC_NO, KC_NO, | ||
| 37 | KC_NO, KC_NO, KC_NO, KC_NO | ||
| 38 | ), | ||
| 39 | [_FN3] = LAYOUT( | ||
| 40 | KC_NO, KC_NO, KC_NO, KC_NO, | ||
| 41 | KC_NO, KC_NO, KC_NO, KC_NO | ||
| 42 | ) | ||
| 43 | }; | ||
| 44 | |||
| 45 | keyevent_t encoder1_ccw = { | ||
| 46 | .key = (keypos_t){.row = 0, .col = 4}, | ||
| 47 | .pressed = false | ||
| 48 | }; | ||
| 49 | |||
| 50 | keyevent_t encoder1_cw = { | ||
| 51 | .key = (keypos_t){.row = 0, .col = 5}, | ||
| 52 | .pressed = false | ||
| 53 | }; | ||
| 54 | |||
| 55 | keyevent_t encoder2_ccw = { | ||
| 56 | .key = (keypos_t){.row = 0, .col = 6}, | ||
| 57 | .pressed = false | ||
| 58 | }; | ||
| 59 | |||
| 60 | keyevent_t encoder2_cw = { | ||
| 61 | .key = (keypos_t){.row = 0, .col = 7}, | ||
| 62 | .pressed = false | ||
| 63 | }; | ||
| 64 | |||
| 65 | void matrix_scan_user(void) { | ||
| 66 | if (IS_PRESSED(encoder1_ccw)) { | ||
| 67 | encoder1_ccw.pressed = false; | ||
| 68 | encoder1_ccw.time = (timer_read() | 1); | ||
| 69 | action_exec(encoder1_ccw); | ||
| 70 | } | ||
| 71 | |||
| 72 | if (IS_PRESSED(encoder1_cw)) { | ||
| 73 | encoder1_cw.pressed = false; | ||
| 74 | encoder1_cw.time = (timer_read() | 1); | ||
| 75 | action_exec(encoder1_cw); | ||
| 76 | } | ||
| 77 | |||
| 78 | if (IS_PRESSED(encoder2_ccw)) { | ||
| 79 | encoder2_ccw.pressed = false; | ||
| 80 | encoder2_ccw.time = (timer_read() | 1); | ||
| 81 | action_exec(encoder2_ccw); | ||
| 82 | } | ||
| 83 | |||
| 84 | if (IS_PRESSED(encoder2_cw)) { | ||
| 85 | encoder2_cw.pressed = false; | ||
| 86 | encoder2_cw.time = (timer_read() | 1); | ||
| 87 | action_exec(encoder2_cw); | ||
| 88 | } | ||
| 89 | } | ||
| 90 | |||
| 91 | bool encoder_update_user(uint8_t index, bool clockwise) { | ||
| 92 | if (index == 0) { /* First encoder */ | ||
| 93 | if (clockwise) { | ||
| 94 | encoder1_cw.pressed = true; | ||
| 95 | encoder1_cw.time = (timer_read() | 1); | ||
| 96 | action_exec(encoder1_cw); | ||
| 97 | } else { | ||
| 98 | encoder1_ccw.pressed = true; | ||
| 99 | encoder1_ccw.time = (timer_read() | 1); | ||
| 100 | action_exec(encoder1_ccw); | ||
| 101 | } | ||
| 102 | } else if (index == 1) { | ||
| 103 | if (clockwise) { | ||
| 104 | encoder2_cw.pressed = true; | ||
| 105 | encoder2_cw.time = (timer_read() | 1); | ||
| 106 | action_exec(encoder2_cw); | ||
| 107 | } else { | ||
| 108 | encoder2_ccw.pressed = true; | ||
| 109 | encoder2_ccw.time = (timer_read() | 1); | ||
| 110 | action_exec(encoder2_ccw); | ||
| 111 | } | ||
| 112 | } | ||
| 113 | |||
| 114 | return true; | ||
| 115 | } | ||
diff --git a/keyboards/dailycraft/stickey4/keymaps/via/readme.md b/keyboards/dailycraft/stickey4/keymaps/via/readme.md new file mode 100644 index 000000000..202bcb2b9 --- /dev/null +++ b/keyboards/dailycraft/stickey4/keymaps/via/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The via keymap for stickey4 | |||
diff --git a/keyboards/dailycraft/stickey4/keymaps/via/rules.mk b/keyboards/dailycraft/stickey4/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/dailycraft/stickey4/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes | |||
diff --git a/keyboards/dailycraft/stickey4/readme.md b/keyboards/dailycraft/stickey4/readme.md new file mode 100644 index 000000000..e365407f8 --- /dev/null +++ b/keyboards/dailycraft/stickey4/readme.md | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | # stickey4 | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | macropad | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [yfuku](https://github.com/yfuku) | ||
| 8 | * Hardware Supported: stickey4 PCB, Pro Micro | ||
| 9 | * Hardware Availability: https://shop.dailycraft.jp/ | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make dailycraft/stickey4:default | ||
| 14 | |||
| 15 | Flashing example for this keyboard: | ||
| 16 | |||
| 17 | make dailycraft/stickey4:default:flash | ||
| 18 | |||
| 19 | 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). | ||
| 20 | |||
| 21 | ## Bootloader | ||
| 22 | |||
| 23 | Enter the bootloader in 2 ways: | ||
| 24 | |||
| 25 | * **Physical reset button**: Briefly press the button on the PCB | ||
| 26 | * **Keycode in layout**: Press the key mapped to `RESET` if it is available | ||
diff --git a/keyboards/dailycraft/stickey4/rules.mk b/keyboards/dailycraft/stickey4/rules.mk new file mode 100644 index 000000000..284ea23e7 --- /dev/null +++ b/keyboards/dailycraft/stickey4/rules.mk | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = atmel-dfu | ||
| 6 | |||
| 7 | # Build Options | ||
| 8 | # change yes to no to disable | ||
| 9 | # | ||
| 10 | BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | ||
| 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 | NKRO_ENABLE = no # Enable N-Key Rollover | ||
| 16 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 17 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 18 | AUDIO_ENABLE = no # Audio output | ||
| 19 | |||
| 20 | ENCODER_ENABLE = yes | ||
diff --git a/keyboards/dailycraft/stickey4/stickey4.c b/keyboards/dailycraft/stickey4/stickey4.c new file mode 100644 index 000000000..dd0ac4f5f --- /dev/null +++ b/keyboards/dailycraft/stickey4/stickey4.c | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | /* Copyright 2021 yfuku | ||
| 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 "stickey4.h" | ||
diff --git a/keyboards/dailycraft/stickey4/stickey4.h b/keyboards/dailycraft/stickey4/stickey4.h new file mode 100644 index 000000000..6a21a8f99 --- /dev/null +++ b/keyboards/dailycraft/stickey4/stickey4.h | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | /* Copyright 2021 yfuku | ||
| 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 | /* This is a shortcut to help you visually see your layout. | ||
| 22 | * | ||
| 23 | * The first section contains all of the arguments representing the physical | ||
| 24 | * layout of the board and position of the keys. | ||
| 25 | * | ||
| 26 | * The second converts the arguments into a two-dimensional array which | ||
| 27 | * represents the switch matrix. | ||
| 28 | */ | ||
| 29 | |||
| 30 | #define LAYOUT( \ | ||
| 31 | k00, k01, k02, k03, \ | ||
| 32 | k04, k05, k06, k07 \ | ||
| 33 | ) \ | ||
| 34 | { \ | ||
| 35 | {k00, k01, k02, k03, k04, k05, k06, k07 } \ | ||
| 36 | } | ||
