aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgtips <51393966+gtips@users.noreply.github.com>2020-09-03 17:42:09 +0900
committerGitHub <noreply@github.com>2020-09-03 01:42:09 -0700
commitbad589ec59ef47e926dbc5b40e2802e3275d4105 (patch)
treeb2d8b8b2b024507c7b54da8335ba17287ca91690
parenteead2c6087d219b55349c11d9a4091a777b5700d (diff)
downloadqmk_firmware-bad589ec59ef47e926dbc5b40e2802e3275d4105.tar.gz
qmk_firmware-bad589ec59ef47e926dbc5b40e2802e3275d4105.zip
[Keyboard] reviung33 (#10162)
* [Keyboard] Add keyboard Reviung41 * Modified files * deleted keyboards/reviung41/keymaps/default/config.h * modified keyboards/rebiung41/keymaps/default/keymap.c * modified keyboards/reviung41/readme.md * modified keyboards/reviung41/readme.md * modified keyboards/reviung41/readme.md * Update readme.md Change the image photo of readme.md. * [Keyboard] Add reviung61 * Update readme.md * fix keyboards/reviung61/ and add keymap default_rgb * fix keyboards/reviung61/info.json * fix keyboards/reviung61/info.json * remove keyboards/reviung61/keymaps/default/config.h * [keyboard] Fixed readme.md for reviung39 and 61. * [keyboard] add keyboard reviung33 * fix keyboards/reviung33/rules.mk * modified: keyboards/reving33/config.h * modified: keyboards/reving33/info.json * modified: keyboards/reving33/keymaps/default/keymap.c
-rw-r--r--keyboards/reviung33/config.h137
-rw-r--r--keyboards/reviung33/info.json49
-rw-r--r--keyboards/reviung33/keymaps/default/keymap.c71
-rw-r--r--keyboards/reviung33/keymaps/default/readme.md1
-rw-r--r--keyboards/reviung33/keymaps/default_jp/keymap.c70
-rw-r--r--keyboards/reviung33/keymaps/default_jp/readme.md1
-rw-r--r--keyboards/reviung33/readme.md15
-rw-r--r--keyboards/reviung33/reviung33.c17
-rw-r--r--keyboards/reviung33/reviung33.h40
-rw-r--r--keyboards/reviung33/rules.mk22
10 files changed, 423 insertions, 0 deletions
diff --git a/keyboards/reviung33/config.h b/keyboards/reviung33/config.h
new file mode 100644
index 000000000..b65d1d7c3
--- /dev/null
+++ b/keyboards/reviung33/config.h
@@ -0,0 +1,137 @@
1/*
2Copyright 2020 gtips
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along 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 0xFEED
24#define PRODUCT_ID 0x516D
25#define DEVICE_VER 0x0001
26#define MANUFACTURER gtips
27#define PRODUCT reviung33
28
29/* key matrix size */
30#define MATRIX_ROWS 4
31#define MATRIX_COLS 10
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, F5, F6, F7}
44#define MATRIX_COL_PINS { D4, C6, D7, E6, B4, B1, B3, B2, B6, B5 }
45#define UNUSED_PINS
46
47/* COL2ROW, ROW2COL */
48#define DIODE_DIRECTION COL2ROW
49
50#define RGB_DI_PIN D3
51#ifdef RGB_DI_PIN
52# define RGBLED_NUM 5
53# define RGBLIGHT_HUE_STEP 16
54# define RGBLIGHT_SAT_STEP 16
55# define RGBLIGHT_VAL_STEP 16
56# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
57# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
58/*== all animations enable ==*/
59# define RGBLIGHT_ANIMATIONS
60/*== or choose animations ==*/
61//# define RGBLIGHT_EFFECT_BREATHING
62//# define RGBLIGHT_EFFECT_RAINBOW_MOOD
63//# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
64//# define RGBLIGHT_EFFECT_SNAKE
65//# define RGBLIGHT_EFFECT_KNIGHT
66//# define RGBLIGHT_EFFECT_CHRISTMAS
67//# define RGBLIGHT_EFFECT_STATIC_GRADIENT
68//# define RGBLIGHT_EFFECT_RGB_TEST
69//# define RGBLIGHT_EFFECT_ALTERNATING
70/*== customize breathing effect ==*/
71/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
72//# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
73/*==== use exp() and sin() ====*/
74//# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
75//# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
76#endif
77
78/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
79#define DEBOUNCE 5
80
81/* define if matrix has ghost (lacks anti-ghosting diodes) */
82//#define MATRIX_HAS_GHOST
83
84/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
85#define LOCKING_SUPPORT_ENABLE
86/* Locking resynchronize hack */
87#define LOCKING_RESYNC_ENABLE
88
89/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
90 * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
91 */
92//#define GRAVE_ESC_CTRL_OVERRIDE
93
94/*
95 * Force NKRO
96 *
97 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
98 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
99 * makefile for this to work.)
100 *
101 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
102 * until the next keyboard reset.
103 *
104 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
105 * fully operational during normal computer usage.
106 *
107 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
108 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
109 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
110 * power-up.
111 *
112 */
113//#define FORCE_NKRO
114
115/*
116 * Feature disable options
117 * These options are also useful to firmware size reduction.
118 */
119
120/* disable debug print */
121//#define NO_DEBUG
122
123/* disable print */
124//#define NO_PRINT
125
126/* disable action features */
127//#define NO_ACTION_LAYER
128//#define NO_ACTION_TAPPING
129//#define NO_ACTION_ONESHOT
130
131/* disable these deprecated features by default */
132#define NO_ACTION_MACRO
133#define NO_ACTION_FUNCTION
134
135/* Bootmagic Lite key configuration */
136//#define BOOTMAGIC_LITE_ROW 0
137//#define BOOTMAGIC_LITE_COLUMN 0
diff --git a/keyboards/reviung33/info.json b/keyboards/reviung33/info.json
new file mode 100644
index 000000000..559c2e014
--- /dev/null
+++ b/keyboards/reviung33/info.json
@@ -0,0 +1,49 @@
1{
2 "keyboard_name": "reviung33",
3 "url": "",
4 "maintainer": "gtips",
5 "width": 3,
6 "height": 2,
7 "layouts": {
8 "LAYOUT_reviung33": {
9 "layout": [
10 {"x":0, "y":0},
11 {"x":1, "y":0},
12 {"x":2, "y":0},
13 {"x":3, "y":0},
14 {"x":4, "y":0},
15 {"x":5, "y":0},
16 {"x":6, "y":0},
17 {"x":7, "y":0},
18 {"x":8, "y":0},
19 {"x":9, "y":0},
20
21 {"x":0, "y":1},
22 {"x":1, "y":1},
23 {"x":2, "y":1},
24 {"x":3, "y":1},
25 {"x":4, "y":1},
26 {"x":5, "y":1},
27 {"x":6, "y":1},
28 {"x":7, "y":1},
29 {"x":8, "y":1},
30 {"x":9, "y":1},
31
32 {"x":0, "y":2},
33 {"x":1, "y":2},
34 {"x":2, "y":2},
35 {"x":3, "y":2},
36 {"x":4, "y":2},
37 {"x":5, "y":2},
38 {"x":6, "y":2},
39 {"x":7, "y":2},
40 {"x":8, "y":2},
41 {"x":9, "y":2},
42
43 {"x":0, "y":3},
44 {"x":2, "y":3, "w":6},
45 {"x":9, "y":3}
46 ]
47 }
48 }
49}
diff --git a/keyboards/reviung33/keymaps/default/keymap.c b/keyboards/reviung33/keymaps/default/keymap.c
new file mode 100644
index 000000000..875df9760
--- /dev/null
+++ b/keyboards/reviung33/keymaps/default/keymap.c
@@ -0,0 +1,71 @@
1/* Copyright 2020 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
19enum layer_names {
20 _BASE,
21 _LOWER,
22 _RAISE,
23 _ADJUST
24};
25
26#define LOWER MO(_LOWER)
27#define RAISE MO(_RAISE)
28
29#define CT_Q LCTL_T(KC_Q)
30#define CT_CM RCTL_T(KC_COMM)
31#define SF_Z LSFT_T(KC_Z)
32#define SF_SS RSFT_T(KC_SLSH)
33#define AL_X LALT_T(KC_X)
34#define AL_DT RALT_T(KC_DOT)
35#define TB_LO LT(LOWER, KC_TAB)
36#define BS_RA LT(RAISE, KC_BSPC)
37
38const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
39 [_BASE] = LAYOUT_reviung33(
40 CT_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
41 KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT,
42 SF_Z, AL_X, KC_C, KC_V, KC_B, KC_N, KC_M, CT_CM, AL_DT, SF_SS,
43 TB_LO, KC_SPC, BS_RA
44 ),
45
46 [_LOWER] = LAYOUT_reviung33(
47 KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN,
48 KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_SCLN,
49 KC_LSFT, KC_ESC, KC_LGUI, KC_LALT, KC_QUOT, KC_HOME, KC_END, KC_PGUP, KC_PGDN, KC_RSFT,
50 _______, _______, _______
51 ),
52
53 [_RAISE] = LAYOUT_reviung33(
54 KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
55 KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, XXXXXXX, XXXXXXX, KC_GRV, KC_TILD, KC_COLN,
56 KC_LSFT, KC_ESC, KC_RGUI, KC_LALT, KC_DQUO, KC_TAB, KC_RALT, KC_RCTL, KC_RALT, KC_RSFT,
57 _______, KC_DEL, _______
58 ),
59
60 [_ADJUST] = LAYOUT_reviung33(
61 RGB_VAI, RGB_SAI, RGB_HUI, RGB_MOD, RGB_TOG, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5,
62 RGB_VAD, RGB_SAD, RGB_HUD, RGB_RMOD,XXXXXXX, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10,
63 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RESET, KC_F11, KC_F12, KC_CAPS, XXXXXXX, KC_PSCR,
64 _______, _______, _______
65 ),
66};
67
68layer_state_t layer_state_set_user(layer_state_t state) {
69 return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
70}
71
diff --git a/keyboards/reviung33/keymaps/default/readme.md b/keyboards/reviung33/keymaps/default/readme.md
new file mode 100644
index 000000000..9121b1429
--- /dev/null
+++ b/keyboards/reviung33/keymaps/default/readme.md
@@ -0,0 +1 @@
# The default keymap for reviung33
diff --git a/keyboards/reviung33/keymaps/default_jp/keymap.c b/keyboards/reviung33/keymaps/default_jp/keymap.c
new file mode 100644
index 000000000..1265a301e
--- /dev/null
+++ b/keyboards/reviung33/keymaps/default_jp/keymap.c
@@ -0,0 +1,70 @@
1/* Copyright 2020 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#include "keymap_jp.h"
18
19enum layer_names {
20 _BASE,
21 _LOWER,
22 _RAISE,
23 _ADJUST
24};
25
26#define LOWER MO(_LOWER)
27#define RAISE MO(_RAISE)
28
29#define CT_Q LCTL_T(JP_Q)
30#define CT_CM RCTL_T(JP_COMM)
31#define SF_Z LSFT_T(JP_Z)
32#define SF_SS RSFT_T(JP_SLSH)
33#define AL_X LALT_T(JP_X)
34#define AL_DT RALT_T(JP_DOT)
35#define TB_LO LT(LOWER, KC_TAB)
36#define BS_RA LT(RAISE, KC_BSPC)
37
38const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
39 [_BASE] = LAYOUT_reviung33(
40 CT_Q, JP_W, JP_E, JP_R, JP_T, JP_Y, JP_U, JP_I, JP_O, JP_P,
41 JP_A, JP_S, JP_D, JP_F, JP_G, JP_H, JP_J, JP_K, JP_L, KC_ENT,
42 SF_Z, AL_X, JP_C, JP_V, JP_B, JP_N, JP_M, CT_CM, AL_DT, SF_SS,
43 TB_LO, KC_SPC, BS_RA
44 ),
45
46 [_LOWER] = LAYOUT_reviung33(
47 JP_EXLM, JP_AT, JP_HASH, JP_DLR, JP_PERC, JP_CIRC, JP_AMPR, JP_ASTR, JP_LPRN, JP_RPRN,
48 JP_UNDS, JP_PLUS, JP_LCBR, JP_RCBR, JP_PIPE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, JP_SCLN,
49 KC_LSFT, KC_ESC, KC_LGUI, KC_LALT, JP_QUOT, KC_HOME, KC_END, KC_PGUP, KC_PGDN, KC_RSFT,
50 _______, _______, _______
51 ),
52
53 [_RAISE] = LAYOUT_reviung33(
54 JP_1, JP_2, JP_3, JP_4, JP_5, JP_6, JP_7, JP_8, JP_9, JP_0,
55 JP_MINS, JP_EQL, JP_LBRC, JP_RBRC, JP_YEN, KC_RO, XXXXXXX, JP_GRV, JP_TILD, JP_COLN,
56 KC_LSFT, KC_ESC, KC_RGUI, KC_LALT, JP_DQUO, KC_TAB, XXXXXXX, KC_RCTL, KC_RALT, KC_RSFT,
57 _______, KC_DEL, _______
58 ),
59
60 [_ADJUST] = LAYOUT_reviung33(
61 RGB_VAI, RGB_SAI, RGB_HUI, RGB_MOD, RGB_TOG, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5,
62 RGB_VAD, RGB_SAD, RGB_HUD, RGB_RMOD,XXXXXXX, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10,
63 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RESET, KC_F11, KC_F12, KC_CAPS, XXXXXXX, KC_PSCR,
64 _______, _______, _______
65 ),
66};
67
68layer_state_t layer_state_set_user(layer_state_t state) {
69 return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
70}
diff --git a/keyboards/reviung33/keymaps/default_jp/readme.md b/keyboards/reviung33/keymaps/default_jp/readme.md
new file mode 100644
index 000000000..d7739a3d8
--- /dev/null
+++ b/keyboards/reviung33/keymaps/default_jp/readme.md
@@ -0,0 +1 @@
# The default_jp keymap for reviung33
diff --git a/keyboards/reviung33/readme.md b/keyboards/reviung33/readme.md
new file mode 100644
index 000000000..64ed4d57f
--- /dev/null
+++ b/keyboards/reviung33/readme.md
@@ -0,0 +1,15 @@
1# reviung33
2
3![REVIUNG33](https://github.com/gtips/reviung/blob/master/reviung33/image/reviung33-01.jpg)
4
5The REVIUNG33 is 33-key ortholinear keyboard.
6
7* Keyboard Maintainer: [gtips](https://github.com/gtips)
8* Hardware Supported: REVIUNG33 PCB.
9* Hardware Availability: [PCB & Case Data](https://github.com/gtips/reviung/tree/master/reviung33)
10
11Make example for this keyboard (after setting up your build environment):
12
13 make reviung33:default
14
15See 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/reviung33/reviung33.c b/keyboards/reviung33/reviung33.c
new file mode 100644
index 000000000..7684cb72c
--- /dev/null
+++ b/keyboards/reviung33/reviung33.c
@@ -0,0 +1,17 @@
1/* Copyright 2020 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 "reviung33.h"
diff --git a/keyboards/reviung33/reviung33.h b/keyboards/reviung33/reviung33.h
new file mode 100644
index 000000000..ea72a4aad
--- /dev/null
+++ b/keyboards/reviung33/reviung33.h
@@ -0,0 +1,40 @@
1/* Copyright 2020 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_reviung33( \
30 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, \
31 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, \
32 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, \
33 K30, K31, K32 \
34) \
35{ \
36 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09 }, \
37 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19 }, \
38 { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29 }, \
39 { K30, K31, K32, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO } \
40}
diff --git a/keyboards/reviung33/rules.mk b/keyboards/reviung33/rules.mk
new file mode 100644
index 000000000..4581b001d
--- /dev/null
+++ b/keyboards/reviung33/rules.mk
@@ -0,0 +1,22 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = atmel-dfu
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
11MOUSEKEY_ENABLE = no # Mouse keys
12EXTRAKEY_ENABLE = no # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16SLEEP_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
18NKRO_ENABLE = no # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output