diff options
| author | gtips <51393966+gtips@users.noreply.github.com> | 2021-07-07 07:20:20 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-06 15:20:20 -0700 |
| commit | 09c4d536c31c7443c4355e749e72364262fdd454 (patch) | |
| tree | 919c31a5a8b769226c55ef700cf2988710c171de /keyboards/reviung5 | |
| parent | c9c2916829eccab2222dad99c7f599988789ec2f (diff) | |
| download | qmk_firmware-09c4d536c31c7443c4355e749e72364262fdd454.tar.gz qmk_firmware-09c4d536c31c7443c4355e749e72364262fdd454.zip | |
[Keyboard] Add keyboard reviung5 (#13375)
Diffstat (limited to 'keyboards/reviung5')
| -rw-r--r-- | keyboards/reviung5/config.h | 142 | ||||
| -rw-r--r-- | keyboards/reviung5/info.json | 18 | ||||
| -rw-r--r-- | keyboards/reviung5/keymaps/default/keymap.c | 34 | ||||
| -rw-r--r-- | keyboards/reviung5/keymaps/default/readme.md | 1 | ||||
| -rw-r--r-- | keyboards/reviung5/keymaps/default_lre/keymap.c | 55 | ||||
| -rw-r--r-- | keyboards/reviung5/keymaps/default_lre/readme.md | 3 | ||||
| -rw-r--r-- | keyboards/reviung5/keymaps/default_rre/keymap.c | 55 | ||||
| -rw-r--r-- | keyboards/reviung5/keymaps/default_rre/readme.md | 4 | ||||
| -rw-r--r-- | keyboards/reviung5/readme.md | 19 | ||||
| -rw-r--r-- | keyboards/reviung5/reviung5.c | 17 | ||||
| -rw-r--r-- | keyboards/reviung5/reviung5.h | 33 | ||||
| -rw-r--r-- | keyboards/reviung5/rules.mk | 23 |
12 files changed, 404 insertions, 0 deletions
diff --git a/keyboards/reviung5/config.h b/keyboards/reviung5/config.h new file mode 100644 index 000000000..493cc6af9 --- /dev/null +++ b/keyboards/reviung5/config.h | |||
| @@ -0,0 +1,142 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 gtips | ||
| 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 0x5C06 | ||
| 24 | #define PRODUCT_ID 0x4F0D | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER gtips | ||
| 27 | #define PRODUCT reviung5 | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | #define MATRIX_ROWS 1 | ||
| 31 | #define MATRIX_COLS 5 | ||
| 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 MATRIX_ROW_PINS { F4 } | ||
| 44 | #define MATRIX_COL_PINS { D4, C6, D7, E6, B4 } | ||
| 45 | #define UNUSED_PINS | ||
| 46 | |||
| 47 | /* COL2ROW, ROW2COL */ | ||
| 48 | #define DIODE_DIRECTION COL2ROW | ||
| 49 | |||
| 50 | /* Encoder */ | ||
| 51 | #define ENCODERS_PAD_A { D0 } | ||
| 52 | #define ENCODERS_PAD_B { D1 } | ||
| 53 | |||
| 54 | |||
| 55 | #define RGB_DI_PIN D3 | ||
| 56 | #ifdef RGB_DI_PIN | ||
| 57 | # define RGBLED_NUM 4 | ||
| 58 | # define RGBLIGHT_HUE_STEP 16 | ||
| 59 | # define RGBLIGHT_SAT_STEP 16 | ||
| 60 | # define RGBLIGHT_VAL_STEP 16 | ||
| 61 | # define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 62 | # define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 63 | /*== all animations enable ==*/ | ||
| 64 | # define RGBLIGHT_ANIMATIONS | ||
| 65 | /*== or choose animations ==*/ | ||
| 66 | //# define RGBLIGHT_EFFECT_BREATHING | ||
| 67 | //# define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 68 | //# define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 69 | //# define RGBLIGHT_EFFECT_SNAKE | ||
| 70 | //# define RGBLIGHT_EFFECT_KNIGHT | ||
| 71 | //# define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 72 | //# define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 73 | //# define RGBLIGHT_EFFECT_RGB_TEST | ||
| 74 | //# define RGBLIGHT_EFFECT_ALTERNATING | ||
| 75 | /*== customize breathing effect ==*/ | ||
| 76 | /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
| 77 | //# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
| 78 | /*==== use exp() and sin() ====*/ | ||
| 79 | //# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
| 80 | //# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
| 81 | #endif | ||
| 82 | |||
| 83 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 84 | #define DEBOUNCE 5 | ||
| 85 | |||
| 86 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 87 | //#define MATRIX_HAS_GHOST | ||
| 88 | |||
| 89 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 90 | #define LOCKING_SUPPORT_ENABLE | ||
| 91 | /* Locking resynchronize hack */ | ||
| 92 | #define LOCKING_RESYNC_ENABLE | ||
| 93 | |||
| 94 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 95 | * This is useful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 96 | */ | ||
| 97 | //#define GRAVE_ESC_CTRL_OVERRIDE | ||
| 98 | |||
| 99 | /* | ||
| 100 | * Force NKRO | ||
| 101 | * | ||
| 102 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 103 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 104 | * makefile for this to work.) | ||
| 105 | * | ||
| 106 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 107 | * until the next keyboard reset. | ||
| 108 | * | ||
| 109 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 110 | * fully operational during normal computer usage. | ||
| 111 | * | ||
| 112 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 113 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 114 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 115 | * power-up. | ||
| 116 | * | ||
| 117 | */ | ||
| 118 | //#define FORCE_NKRO | ||
| 119 | |||
| 120 | /* | ||
| 121 | * Feature disable options | ||
| 122 | * These options are also useful to firmware size reduction. | ||
| 123 | */ | ||
| 124 | |||
| 125 | /* disable debug print */ | ||
| 126 | //#define NO_DEBUG | ||
| 127 | |||
| 128 | /* disable print */ | ||
| 129 | //#define NO_PRINT | ||
| 130 | |||
| 131 | /* disable action features */ | ||
| 132 | //#define NO_ACTION_LAYER | ||
| 133 | //#define NO_ACTION_TAPPING | ||
| 134 | //#define NO_ACTION_ONESHOT | ||
| 135 | |||
| 136 | /* disable these deprecated features by default */ | ||
| 137 | #define NO_ACTION_MACRO | ||
| 138 | #define NO_ACTION_FUNCTION | ||
| 139 | |||
| 140 | /* Bootmagic Lite key configuration */ | ||
| 141 | //#define BOOTMAGIC_LITE_ROW 0 | ||
| 142 | //#define BOOTMAGIC_LITE_COLUMN 0 | ||
diff --git a/keyboards/reviung5/info.json b/keyboards/reviung5/info.json new file mode 100644 index 000000000..a8dcc4867 --- /dev/null +++ b/keyboards/reviung5/info.json | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "reviung5", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "gtips", | ||
| 5 | "width": 5, | ||
| 6 | "height": 1, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_reviung5": { | ||
| 9 | "layout": [ | ||
| 10 | {"label": "k00", "x": 0, "y": 0}, | ||
| 11 | {"label": "k01", "x": 1, "y": 0.25}, | ||
| 12 | {"label": "k02", "x": 2, "y": 0.25}, | ||
| 13 | {"label": "k03", "x": 3, "y": 0.25}, | ||
| 14 | {"label": "k04", "x": 4, "y": 0} | ||
| 15 | ] | ||
| 16 | } | ||
| 17 | } | ||
| 18 | } | ||
diff --git a/keyboards/reviung5/keymaps/default/keymap.c b/keyboards/reviung5/keymaps/default/keymap.c new file mode 100644 index 000000000..39f6669a5 --- /dev/null +++ b/keyboards/reviung5/keymaps/default/keymap.c | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | /* Copyright 2021 gtips | ||
| 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 | _LOWER, | ||
| 22 | }; | ||
| 23 | |||
| 24 | #define LO_VD LT(_LOWER, KC_VOLD) | ||
| 25 | |||
| 26 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 27 | /* Base */ | ||
| 28 | [_BASE] = LAYOUT_reviung5( | ||
| 29 | LO_VD, KC_MPRV, KC_MPLY, KC_MNXT, KC_VOLU | ||
| 30 | ), | ||
| 31 | [_LOWER] = LAYOUT_reviung5( | ||
| 32 | _______, RGB_HUI, RGB_MOD, RGB_TOG, KC_MUTE | ||
| 33 | ) | ||
| 34 | }; | ||
diff --git a/keyboards/reviung5/keymaps/default/readme.md b/keyboards/reviung5/keymaps/default/readme.md new file mode 100644 index 000000000..babdce579 --- /dev/null +++ b/keyboards/reviung5/keymaps/default/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The default keymap for reviung5 | |||
diff --git a/keyboards/reviung5/keymaps/default_lre/keymap.c b/keyboards/reviung5/keymaps/default_lre/keymap.c new file mode 100644 index 000000000..2e732e72f --- /dev/null +++ b/keyboards/reviung5/keymaps/default_lre/keymap.c | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | /* Copyright 2021 gtips | ||
| 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 | _LOWER, | ||
| 22 | }; | ||
| 23 | |||
| 24 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 25 | /* Base */ | ||
| 26 | [_BASE] = LAYOUT_reviung5( | ||
| 27 | TG(_LOWER), KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE | ||
| 28 | ), | ||
| 29 | [_LOWER] = LAYOUT_reviung5( | ||
| 30 | _______, LCTL(KC_X), LCTL(KC_C), LCTL(KC_V), RGB_TOG | ||
| 31 | ) | ||
| 32 | }; | ||
| 33 | |||
| 34 | bool encoder_update_user(uint8_t index, bool clockwise) { | ||
| 35 | if (index == 0) { | ||
| 36 | if (IS_LAYER_ON(_LOWER)) { | ||
| 37 | tap_code16((clockwise == true) ? KC_WH_D : KC_WH_U); | ||
| 38 | } else { | ||
| 39 | tap_code((clockwise == true) ? KC_VOLD : KC_VOLU); | ||
| 40 | } | ||
| 41 | } | ||
| 42 | return true; | ||
| 43 | } | ||
| 44 | |||
| 45 | layer_state_t layer_state_set_user(layer_state_t state) { | ||
| 46 | switch (get_highest_layer(state)) { | ||
| 47 | case _LOWER: | ||
| 48 | rgblight_setrgb (RGB_GOLD); | ||
| 49 | break; | ||
| 50 | default: // for any other layers, or the default layer | ||
| 51 | rgblight_setrgb (RGB_TEAL); | ||
| 52 | break; | ||
| 53 | } | ||
| 54 | return state; | ||
| 55 | } | ||
diff --git a/keyboards/reviung5/keymaps/default_lre/readme.md b/keyboards/reviung5/keymaps/default_lre/readme.md new file mode 100644 index 000000000..0e3edee7b --- /dev/null +++ b/keyboards/reviung5/keymaps/default_lre/readme.md | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | # The default keymap for reviung5 | ||
| 2 | |||
| 3 | ## Use the Left Rotary Encoder | ||
diff --git a/keyboards/reviung5/keymaps/default_rre/keymap.c b/keyboards/reviung5/keymaps/default_rre/keymap.c new file mode 100644 index 000000000..9ee41cb7e --- /dev/null +++ b/keyboards/reviung5/keymaps/default_rre/keymap.c | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | /* Copyright 2021 gtips | ||
| 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 | _LOWER, | ||
| 22 | }; | ||
| 23 | |||
| 24 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 25 | /* Base */ | ||
| 26 | [_BASE] = LAYOUT_reviung5( | ||
| 27 | KC_MUTE, KC_MPRV, KC_MPLY, KC_MNXT, TG(_LOWER) | ||
| 28 | ), | ||
| 29 | [_LOWER] = LAYOUT_reviung5( | ||
| 30 | RGB_TOG, LCTL(KC_X), LCTL(KC_C), LCTL(KC_V), _______ | ||
| 31 | ) | ||
| 32 | }; | ||
| 33 | |||
| 34 | bool encoder_update_user(uint8_t index, bool clockwise) { | ||
| 35 | if (index == 0) { | ||
| 36 | if (IS_LAYER_ON(_LOWER)) { | ||
| 37 | tap_code16((clockwise == true) ? KC_WH_D : KC_WH_U); | ||
| 38 | } else { | ||
| 39 | tap_code((clockwise == true) ? KC_VOLD : KC_VOLU); | ||
| 40 | } | ||
| 41 | } | ||
| 42 | return true; | ||
| 43 | } | ||
| 44 | |||
| 45 | layer_state_t layer_state_set_user(layer_state_t state) { | ||
| 46 | switch (get_highest_layer(state)) { | ||
| 47 | case _LOWER: | ||
| 48 | rgblight_setrgb (RGB_RED); | ||
| 49 | break; | ||
| 50 | default: // for any other layers, or the default layer | ||
| 51 | rgblight_setrgb (RGB_TEAL); | ||
| 52 | break; | ||
| 53 | } | ||
| 54 | return state; | ||
| 55 | } | ||
diff --git a/keyboards/reviung5/keymaps/default_rre/readme.md b/keyboards/reviung5/keymaps/default_rre/readme.md new file mode 100644 index 000000000..d16e25ce5 --- /dev/null +++ b/keyboards/reviung5/keymaps/default_rre/readme.md | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | # The default keymap for reviung5 | ||
| 2 | |||
| 3 | ## Use the Right Rotary Encoder | ||
| 4 | |||
diff --git a/keyboards/reviung5/readme.md b/keyboards/reviung5/readme.md new file mode 100644 index 000000000..990645649 --- /dev/null +++ b/keyboards/reviung5/readme.md | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | # reviung5 | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | The REVIUNG5 is 5-key (or 4-key + Rotary Encoder) macropad. | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [gtips](https://github.com/gtips) | ||
| 8 | * Hardware Supported: REVIUNG5 PCB. | ||
| 9 | * Hardware Availability: [PCB & Case Data](https://github.com/gtips/reviung/tree/master/reviung5) | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make reviung5:default | ||
| 14 | |||
| 15 | Flashing example for this keyboard: | ||
| 16 | |||
| 17 | make reviung5: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). | ||
diff --git a/keyboards/reviung5/reviung5.c b/keyboards/reviung5/reviung5.c new file mode 100644 index 000000000..a8f98f062 --- /dev/null +++ b/keyboards/reviung5/reviung5.c | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | /* Copyright 2021 gtips | ||
| 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 "reviung5.h" | ||
diff --git a/keyboards/reviung5/reviung5.h b/keyboards/reviung5/reviung5.h new file mode 100644 index 000000000..f5d952ba9 --- /dev/null +++ b/keyboards/reviung5/reviung5.h | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | /* Copyright 2021 gtips | ||
| 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 | #define LAYOUT_reviung5( \ | ||
| 30 | K00, K01, K02, K03, K04 \ | ||
| 31 | ) { \ | ||
| 32 | { K00, K01, K02, K03, K04 } \ | ||
| 33 | } | ||
diff --git a/keyboards/reviung5/rules.mk b/keyboards/reviung5/rules.mk new file mode 100644 index 000000000..f54303802 --- /dev/null +++ b/keyboards/reviung5/rules.mk | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = caterina | ||
| 6 | |||
| 7 | # Build Options | ||
| 8 | # change yes to no to disable | ||
| 9 | # | ||
| 10 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration | ||
| 11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 13 | CONSOLE_ENABLE = no # Console for debug | ||
| 14 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 16 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 17 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 18 | NKRO_ENABLE = no # USB Nkey Rollover | ||
| 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 20 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 22 | AUDIO_ENABLE = no # Audio output | ||
| 23 | ENCODER_ENABLE = yes \ No newline at end of file | ||
