diff options
Diffstat (limited to 'keyboards/reviung/reviung5')
-rw-r--r-- | keyboards/reviung/reviung5/config.h | 133 | ||||
-rw-r--r-- | keyboards/reviung/reviung5/info.json | 22 | ||||
-rw-r--r-- | keyboards/reviung/reviung5/keymaps/default/keymap.c | 34 | ||||
-rw-r--r-- | keyboards/reviung/reviung5/keymaps/default/readme.md | 1 | ||||
-rw-r--r-- | keyboards/reviung/reviung5/keymaps/default_lre/keymap.c | 55 | ||||
-rw-r--r-- | keyboards/reviung/reviung5/keymaps/default_lre/readme.md | 3 | ||||
-rw-r--r-- | keyboards/reviung/reviung5/keymaps/default_rre/keymap.c | 55 | ||||
-rw-r--r-- | keyboards/reviung/reviung5/keymaps/default_rre/readme.md | 4 | ||||
-rw-r--r-- | keyboards/reviung/reviung5/readme.md | 19 | ||||
-rw-r--r-- | keyboards/reviung/reviung5/reviung5.c | 17 | ||||
-rw-r--r-- | keyboards/reviung/reviung5/reviung5.h | 33 | ||||
-rw-r--r-- | keyboards/reviung/reviung5/rules.mk | 19 |
12 files changed, 0 insertions, 395 deletions
diff --git a/keyboards/reviung/reviung5/config.h b/keyboards/reviung/reviung5/config.h deleted file mode 100644 index 2e28af7a65..0000000000 --- a/keyboards/reviung/reviung5/config.h +++ /dev/null @@ -1,133 +0,0 @@ -/* -Copyright 2021 gtips - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see <http://www.gnu.org/licenses/>. -*/ - -#pragma once - -#include "config_common.h" - -/* key matrix size */ -#define MATRIX_ROWS 1 -#define MATRIX_COLS 5 - -/* - * Keyboard Matrix Assignments - * - * Change this to how you wired your keyboard - * COLS: AVR pins used for columns, left to right - * ROWS: AVR pins used for rows, top to bottom - * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) - * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) - * - */ -#define MATRIX_ROW_PINS \ - { F4 } -#define MATRIX_COL_PINS \ - { D4, C6, D7, E6, B4 } - -/* COL2ROW, ROW2COL */ -#define DIODE_DIRECTION COL2ROW - -/* Encoder */ -#define ENCODERS_PAD_A \ - { D0 } -#define ENCODERS_PAD_B \ - { D1 } - -#define RGB_DI_PIN D3 -#ifdef RGB_DI_PIN -# define RGBLED_NUM 4 -# define RGBLIGHT_HUE_STEP 16 -# define RGBLIGHT_SAT_STEP 16 -# define RGBLIGHT_VAL_STEP 16 -# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ -# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ -/*== all animations enable ==*/ -# define RGBLIGHT_ANIMATIONS -/*== or choose animations ==*/ -//# define RGBLIGHT_EFFECT_BREATHING -//# define RGBLIGHT_EFFECT_RAINBOW_MOOD -//# define RGBLIGHT_EFFECT_RAINBOW_SWIRL -//# define RGBLIGHT_EFFECT_SNAKE -//# define RGBLIGHT_EFFECT_KNIGHT -//# define RGBLIGHT_EFFECT_CHRISTMAS -//# define RGBLIGHT_EFFECT_STATIC_GRADIENT -//# define RGBLIGHT_EFFECT_RGB_TEST -//# define RGBLIGHT_EFFECT_ALTERNATING -/*== customize breathing effect ==*/ -/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ -//# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 -/*==== use exp() and sin() ====*/ -//# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 -//# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 -#endif - -/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ -#define DEBOUNCE 5 - -/* define if matrix has ghost (lacks anti-ghosting diodes) */ -//#define MATRIX_HAS_GHOST - -/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ -#define LOCKING_SUPPORT_ENABLE -/* Locking resynchronize hack */ -#define LOCKING_RESYNC_ENABLE - -/* If defined, GRAVE_ESC will always act as ESC when CTRL is held. - * This is useful for the Windows task manager shortcut (ctrl+shift+esc). - */ -//#define GRAVE_ESC_CTRL_OVERRIDE - -/* - * Force NKRO - * - * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved - * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the - * makefile for this to work.) - * - * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) - * until the next keyboard reset. - * - * NKRO may prevent your keystrokes from being detected in the BIOS, but it is - * fully operational during normal computer usage. - * - * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) - * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by - * bootmagic, NKRO mode will always be enabled until it is toggled again during a - * power-up. - * - */ -//#define FORCE_NKRO - -/* - * Feature disable options - * These options are also useful to firmware size reduction. - */ - -/* disable debug print */ -//#define NO_DEBUG - -/* disable print */ -//#define NO_PRINT - -/* disable action features */ -//#define NO_ACTION_LAYER -//#define NO_ACTION_TAPPING -//#define NO_ACTION_ONESHOT - -/* Bootmagic Lite key configuration */ -//#define BOOTMAGIC_LITE_ROW 0 -//#define BOOTMAGIC_LITE_COLUMN 0 diff --git a/keyboards/reviung/reviung5/info.json b/keyboards/reviung/reviung5/info.json deleted file mode 100644 index 12320d7774..0000000000 --- a/keyboards/reviung/reviung5/info.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "keyboard_name": "reviung5", - "manufacturer": "gtips", - "url": "", - "maintainer": "gtips", - "usb": { - "vid": "0x5C06", - "pid": "0x4F0D", - "device_version": "0.0.1" - }, - "layouts": { - "LAYOUT_reviung5": { - "layout": [ - {"label": "k00", "x": 0, "y": 0}, - {"label": "k01", "x": 1, "y": 0.25}, - {"label": "k02", "x": 2, "y": 0.25}, - {"label": "k03", "x": 3, "y": 0.25}, - {"label": "k04", "x": 4, "y": 0} - ] - } - } -} diff --git a/keyboards/reviung/reviung5/keymaps/default/keymap.c b/keyboards/reviung/reviung5/keymaps/default/keymap.c deleted file mode 100644 index 39f6669a52..0000000000 --- a/keyboards/reviung/reviung5/keymaps/default/keymap.c +++ /dev/null @@ -1,34 +0,0 @@ -/* Copyright 2021 gtips - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ -#include QMK_KEYBOARD_H - -// Defines names for use in layer keycodes and the keymap -enum layer_names { - _BASE, - _LOWER, -}; - -#define LO_VD LT(_LOWER, KC_VOLD) - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - /* Base */ - [_BASE] = LAYOUT_reviung5( - LO_VD, KC_MPRV, KC_MPLY, KC_MNXT, KC_VOLU - ), - [_LOWER] = LAYOUT_reviung5( - _______, RGB_HUI, RGB_MOD, RGB_TOG, KC_MUTE - ) -}; diff --git a/keyboards/reviung/reviung5/keymaps/default/readme.md b/keyboards/reviung/reviung5/keymaps/default/readme.md deleted file mode 100644 index babdce579f..0000000000 --- a/keyboards/reviung/reviung5/keymaps/default/readme.md +++ /dev/null @@ -1 +0,0 @@ -# The default keymap for reviung5 diff --git a/keyboards/reviung/reviung5/keymaps/default_lre/keymap.c b/keyboards/reviung/reviung5/keymaps/default_lre/keymap.c deleted file mode 100644 index 2e732e72fe..0000000000 --- a/keyboards/reviung/reviung5/keymaps/default_lre/keymap.c +++ /dev/null @@ -1,55 +0,0 @@ -/* Copyright 2021 gtips - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ -#include QMK_KEYBOARD_H - -// Defines names for use in layer keycodes and the keymap -enum layer_names { - _BASE, - _LOWER, -}; - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - /* Base */ - [_BASE] = LAYOUT_reviung5( - TG(_LOWER), KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE - ), - [_LOWER] = LAYOUT_reviung5( - _______, LCTL(KC_X), LCTL(KC_C), LCTL(KC_V), RGB_TOG - ) -}; - -bool encoder_update_user(uint8_t index, bool clockwise) { - if (index == 0) { - if (IS_LAYER_ON(_LOWER)) { - tap_code16((clockwise == true) ? KC_WH_D : KC_WH_U); - } else { - tap_code((clockwise == true) ? KC_VOLD : KC_VOLU); - } - } - return true; -} - -layer_state_t layer_state_set_user(layer_state_t state) { - switch (get_highest_layer(state)) { - case _LOWER: - rgblight_setrgb (RGB_GOLD); - break; - default: // for any other layers, or the default layer - rgblight_setrgb (RGB_TEAL); - break; - } - return state; -} diff --git a/keyboards/reviung/reviung5/keymaps/default_lre/readme.md b/keyboards/reviung/reviung5/keymaps/default_lre/readme.md deleted file mode 100644 index 0e3edee7b1..0000000000 --- a/keyboards/reviung/reviung5/keymaps/default_lre/readme.md +++ /dev/null @@ -1,3 +0,0 @@ -# The default keymap for reviung5 - -## Use the Left Rotary Encoder diff --git a/keyboards/reviung/reviung5/keymaps/default_rre/keymap.c b/keyboards/reviung/reviung5/keymaps/default_rre/keymap.c deleted file mode 100644 index 9ee41cb7e9..0000000000 --- a/keyboards/reviung/reviung5/keymaps/default_rre/keymap.c +++ /dev/null @@ -1,55 +0,0 @@ -/* Copyright 2021 gtips - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ -#include QMK_KEYBOARD_H - -// Defines names for use in layer keycodes and the keymap -enum layer_names { - _BASE, - _LOWER, -}; - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - /* Base */ - [_BASE] = LAYOUT_reviung5( - KC_MUTE, KC_MPRV, KC_MPLY, KC_MNXT, TG(_LOWER) - ), - [_LOWER] = LAYOUT_reviung5( - RGB_TOG, LCTL(KC_X), LCTL(KC_C), LCTL(KC_V), _______ - ) -}; - -bool encoder_update_user(uint8_t index, bool clockwise) { - if (index == 0) { - if (IS_LAYER_ON(_LOWER)) { - tap_code16((clockwise == true) ? KC_WH_D : KC_WH_U); - } else { - tap_code((clockwise == true) ? KC_VOLD : KC_VOLU); - } - } - return true; -} - -layer_state_t layer_state_set_user(layer_state_t state) { - switch (get_highest_layer(state)) { - case _LOWER: - rgblight_setrgb (RGB_RED); - break; - default: // for any other layers, or the default layer - rgblight_setrgb (RGB_TEAL); - break; - } - return state; -} diff --git a/keyboards/reviung/reviung5/keymaps/default_rre/readme.md b/keyboards/reviung/reviung5/keymaps/default_rre/readme.md deleted file mode 100644 index d16e25ce50..0000000000 --- a/keyboards/reviung/reviung5/keymaps/default_rre/readme.md +++ /dev/null @@ -1,4 +0,0 @@ -# The default keymap for reviung5 - -## Use the Right Rotary Encoder - diff --git a/keyboards/reviung/reviung5/readme.md b/keyboards/reviung/reviung5/readme.md deleted file mode 100644 index 990645649c..0000000000 --- a/keyboards/reviung/reviung5/readme.md +++ /dev/null @@ -1,19 +0,0 @@ -# reviung5 - -![reviung5](https://github.com/gtips/reviung/blob/master/reviung5/image/reviung5-1.jpg) - -The REVIUNG5 is 5-key (or 4-key + Rotary Encoder) macropad. - -* Keyboard Maintainer: [gtips](https://github.com/gtips) -* Hardware Supported: REVIUNG5 PCB. -* Hardware Availability: [PCB & Case Data](https://github.com/gtips/reviung/tree/master/reviung5) - -Make example for this keyboard (after setting up your build environment): - - make reviung5:default - -Flashing example for this keyboard: - - make reviung5:default:flash - -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/reviung/reviung5/reviung5.c b/keyboards/reviung/reviung5/reviung5.c deleted file mode 100644 index a8f98f0627..0000000000 --- a/keyboards/reviung/reviung5/reviung5.c +++ /dev/null @@ -1,17 +0,0 @@ -/* Copyright 2021 gtips - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -#include "reviung5.h" diff --git a/keyboards/reviung/reviung5/reviung5.h b/keyboards/reviung/reviung5/reviung5.h deleted file mode 100644 index f5d952ba94..0000000000 --- a/keyboards/reviung/reviung5/reviung5.h +++ /dev/null @@ -1,33 +0,0 @@ -/* Copyright 2021 gtips - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -#pragma once - -#include "quantum.h" - -/* This is a shortcut to help you visually see your layout. - * - * The first section contains all of the arguments representing the physical - * layout of the board and position of the keys. - * - * The second converts the arguments into a two-dimensional array which - * represents the switch matrix. - */ -#define LAYOUT_reviung5( \ - K00, K01, K02, K03, K04 \ -) { \ - { K00, K01, K02, K03, K04 } \ -} diff --git a/keyboards/reviung/reviung5/rules.mk b/keyboards/reviung/reviung5/rules.mk deleted file mode 100644 index a72c119315..0000000000 --- a/keyboards/reviung/reviung5/rules.mk +++ /dev/null @@ -1,19 +0,0 @@ -# MCU name -MCU = atmega32u4 - -# Bootloader selection -BOOTLOADER = caterina - -# Build Options -# change yes to no to disable -# -BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite -MOUSEKEY_ENABLE = yes # Mouse keys -EXTRAKEY_ENABLE = yes # Audio control and System control -CONSOLE_ENABLE = no # Console for debug -COMMAND_ENABLE = no # Commands for debug and configuration -NKRO_ENABLE = no # Enable N-Key Rollover -BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality -RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow -AUDIO_ENABLE = no # Audio output -ENCODER_ENABLE = yes
\ No newline at end of file |