aboutsummaryrefslogtreecommitdiff
path: root/keyboards/zinc
diff options
context:
space:
mode:
authorToshihiro Suzuki <t.suzuki326@gmail.com>2019-10-30 07:41:37 +0900
committerDrashna Jaelre <drashna@live.com>2019-10-29 15:41:37 -0700
commitd62469013512cf8ffe775ec8aa941f32e1d7c7d3 (patch)
treea6afcc9ba67abfca2c220e3d38b161f61ae5a6a2 /keyboards/zinc
parentf1640165667bd416cd9b0680d4852988df686edc (diff)
downloadqmk_firmware-d62469013512cf8ffe775ec8aa941f32e1d7c7d3.tar.gz
qmk_firmware-d62469013512cf8ffe775ec8aa941f32e1d7c7d3.zip
[Keymap] Add keymaps for myself (#7141)
* [zinc] add toshi0383 qwerty layout * Add dvorak like keymap * update keymap * update keymap * update * Add my keymap for reviung39 * cleanup * fix RESET button position * add rgb_mod to raise * Update keyboards/reviung39/keymaps/toshi0383/readme.md Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com> * Update keyboards/zinc/keymaps/toshi0383/keymap.c Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com> * Update keyboards/zinc/keymaps/toshi0383/keymap.c Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com> * remove unnecessary code * improve comment * Update keyboards/reviung39/keymaps/toshi0383/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/zinc/keymaps/toshi0383/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * remove unused function * cleanup * refactor using MO
Diffstat (limited to 'keyboards/zinc')
-rw-r--r--keyboards/zinc/keymaps/toshi0383/config.h39
-rw-r--r--keyboards/zinc/keymaps/toshi0383/keymap.c89
-rw-r--r--keyboards/zinc/keymaps/toshi0383/rules.mk95
3 files changed, 223 insertions, 0 deletions
diff --git a/keyboards/zinc/keymaps/toshi0383/config.h b/keyboards/zinc/keymaps/toshi0383/config.h
new file mode 100644
index 000000000..33108a29e
--- /dev/null
+++ b/keyboards/zinc/keymaps/toshi0383/config.h
@@ -0,0 +1,39 @@
1/*
2This is the c configuration file for the keymap
3
4Copyright 2019 Toshihiro Suzuki
5Copyright 2018 monksoffunk
6Copyright 2012 Jun Wako <wakojun@gmail.com>
7Copyright 2015 Jack Humbert
8
9This program is free software: you can redistribute it and/or modify
10it under the terms of the GNU General Public License as published by
11the Free Software Foundation, either version 2 of the License, or
12(at your option) any later version.
13
14This program is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17GNU General Public License for more details.
18
19You should have received a copy of the GNU General Public License
20along with this program. If not, see <http://www.gnu.org/licenses/>.
21*/
22
23#pragma once
24// if you need more program area, try uncomment follow line
25#include "serial_config_simpleapi.h"
26
27// place overrides here
28// Selection of RGBLIGHT MODE to use.
29#if defined(LED_ANIMATIONS)
30 #define RGBLIGHT_EFFECT_BREATHING
31 #define RGBLIGHT_EFFECT_RAINBOW_MOOD
32 #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
33 #define RGBLIGHT_EFFECT_SNAKE
34 #define RGBLIGHT_EFFECT_KNIGHT
35 #define RGBLIGHT_EFFECT_CHRISTMAS
36 #define RGBLIGHT_EFFECT_STATIC_GRADIENT
37 //#define RGBLIGHT_EFFECT_RGB_TEST
38 //#define RGBLIGHT_EFFECT_ALTERNATING
39#endif
diff --git a/keyboards/zinc/keymaps/toshi0383/keymap.c b/keyboards/zinc/keymaps/toshi0383/keymap.c
new file mode 100644
index 000000000..d1738c83e
--- /dev/null
+++ b/keyboards/zinc/keymaps/toshi0383/keymap.c
@@ -0,0 +1,89 @@
1#include QMK_KEYBOARD_H
2
3extern uint8_t is_master;
4
5enum layer_names {
6 _BASE,
7 _LOWER,
8 _RAISE,
9 _ADJUST
10};
11
12#define LOWER MO(_LOWER)
13#define RAISE MO(_RAISE)
14#define ADJUST MO(_ADJUST)
15
16const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { \
17 /* Qwerty
18 * ,-----------------------------------------. ,-----------------------------------------.
19 * | Esc | Q | W | E | R | T | | Y | U | I | O | P |BSpace|
20 * |------+------+------+------+------+------| |------+------+------+------+------+------|
21 * | Tab | A | S | D | F | G | | H | J | K | L | : |Shift |
22 * |------+------+------+------+------+------| |------+------+------+------+------+------|
23 * |Space | Z | X | C | V | B | | N | M | Ctrl | GUI | Alt | SCMD |
24 * |------+------+------+------+------+------| |------+------+------+------+------+------|
25 * | | | | |Lower |Enter | |Enter |Raise | | | | |
26 * `-----------------------------------------' `-----------------------------------------'
27 */
28 [_BASE] = LAYOUT_ortho_4x12(
29 KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPACE, \
30 KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_RGUI, KC_RSFT, \
31 KC_SPC, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_RCTL, KC_RGUI, KC_RALT, RGUI(KC_RSFT), \
32 _______, _______, _______, _______, LOWER, KC_ENT, KC_ENT, RAISE, _______, _______, _______, _______ \
33 ),
34
35 /* Lower
36 * ,-----------------------------------------. ,-----------------------------------------.
37 * | ~ | ! | @ | # | $ | % | | ^ | & | * | | | |
38 * |------+------+------+------+------+------| |------+------+------+------+------+------|
39 * | | < | > | ( | ) | ` | | - | { | } | [ | ] | | |
40 * |------+------+------+------+------+------| |------+------+------+------+------+------|
41 * | | | | | = | ? | | _ | + | , | . | / | |
42 * |------+------+------+------+------+------| |------+------+------+------+------+------|
43 * | | | | |------| TRSP | | TRSP | GUI | | | | |
44 * `-----------------------------------------' `-----------------------------------------'
45 */
46 [_LOWER] = LAYOUT_ortho_4x12( \
47 KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, _______, _______, _______,\
48 _______, KC_LT, KC_GT, KC_LPRN, KC_RPRN, KC_GRV, KC_MINS, KC_LCBR, KC_RCBR, KC_LBRC, KC_RBRC, KC_PIPE, \
49 _______, _______, _______, _______, KC_EQL, KC_QUES, KC_UNDS, KC_PLUS, KC_COMM, KC_DOT, KC_SLSH, _______, \
50 _______, _______, _______, _______, _______, KC_TRNS, ADJUST, KC_RGUI, _______, _______, _______, _______ \
51 ),
52
53 /* Raise
54 * ,-----------------------------------------. ,-----------------------------------------.
55 * | | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | |
56 * |------+------+------+------+------+------| |------+------+------+------+------+------|
57 * | | : | ; | " | ' | \ | | Left | Down | Up |Right | | |
58 * |------+------+------+------+------+------| |------+------+------+------+------+------|
59 * | | | | | | | |ADJUST| | | | | |
60 * |------+------+------+------+------+------| |------+------+------+------+------+------|
61 * | | | | | GUI |Shift | |Shift |------| | | | |
62 * `-----------------------------------------' `-----------------------------------------'
63 */
64 [_RAISE] = LAYOUT_ortho_4x12( \
65 _______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______, \
66 _______, KC_COLN, KC_SCLN, KC_DQT, KC_QUOT, KC_BSLS, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, _______, \
67 _______, _______, _______, _______, _______, _______, ADJUST, _______, _______, _______, _______, _______, \
68 _______, _______, _______, _______, KC_LGUI, KC_LSFT, KC_LSFT, _______, _______, _______, _______, _______ \
69 ),
70
71 /* Adjust (Lower + Raise)
72 * ,-----------------------------------------. ,-----------------------------------------.
73 * | | | | | | | | | | | | | |
74 * |------+------+------+------+------+------| |------+------+------+------+------+------|
75 * | | | | | | | | | | | | | |
76 * |------+------+------+------+------+------| |------+------+------+------+------+------|
77 * | | | | | | | | | | | | | |
78 * |------+------+------+------+------+------| |------+------+------+------+------+------|
79 * | | | | | |RESET | |------| | | | | |
80 * `-----------------------------------------' `-----------------------------------------'
81 */
82 [_ADJUST] = LAYOUT_ortho_4x12( \
83 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
84 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
85 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
86 _______, _______, _______, _______, _______, RESET, _______, _______, _______, _______, _______, _______ \
87 ),
88
89};
diff --git a/keyboards/zinc/keymaps/toshi0383/rules.mk b/keyboards/zinc/keymaps/toshi0383/rules.mk
new file mode 100644
index 000000000..dca9aa7ff
--- /dev/null
+++ b/keyboards/zinc/keymaps/toshi0383/rules.mk
@@ -0,0 +1,95 @@
1# Build Options
2# change yes to no to disable
3#
4BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
5MOUSEKEY_ENABLE = no # Mouse keys
6EXTRAKEY_ENABLE = yes # Audio control and System control
7CONSOLE_ENABLE = no # Console for debug
8COMMAND_ENABLE = no # Commands for debug and configuration
9NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
10BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
11MIDI_ENABLE = no # MIDI controls
12AUDIO_ENABLE = no # Audio output on port C6
13UNICODE_ENABLE = no # Unicode
14BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
15RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
16SWAP_HANDS_ENABLE = no # Enable one-hand typing
17
18define ZINC_CUSTOMISE_MSG
19 $(info Zinc customize)
20 $(info - LED_BACK_ENABLE=$(LED_BACK_ENABLE))
21 $(info - LED_UNDERGLOW_ENABLE=$(LED_UNDERGLOW_ENABLE))
22 $(info - LED_ANIMATION=$(LED_ANIMATIONS))
23 $(info - IOS_DEVICE_ENABLE=$(IOS_DEVICE_ENABLE))
24endef
25
26# Zinc keyboard customize
27LED_BACK_ENABLE = no # LED backlight (Enable SK6812mini backlight)
28LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight)
29LED_ANIMATIONS = yes # LED animations
30IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
31Link_Time_Optimization = no # if firmware size over limit, try this option
32
33#### LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE.
34#### Do not enable these with audio at the same time.
35
36### Zinc keyboard 'default' keymap: convenient command line option
37## make ZINC=<options> zinc:defualt
38## option= back | under | na | ios
39## ex.
40## make ZINC=under zinc:defualt
41## make ZINC=under,ios zinc:defualt
42## make ZINC=back zinc:default
43## make ZINC=back,na zinc:default
44## make ZINC=back,ios zinc:default
45
46ifneq ($(strip $(ZINC)),)
47 ifeq ($(findstring back,$(ZINC)), back)
48 LED_BACK_ENABLE = yes
49 else ifeq ($(findstring under,$(ZINC)), under)
50 LED_UNDERGLOW_ENABLE = yes
51 endif
52 ifeq ($(findstring na,$(ZINC)), na)
53 LED_ANIMATIONS = no
54 endif
55 ifeq ($(findstring ios,$(ZINC)), ios)
56 IOS_DEVICE_ENABLE = yes
57 endif
58 $(eval $(call ZINC_CUSTOMISE_MSG))
59 $(info )
60endif
61
62ifeq ($(strip $(LED_BACK_ENABLE)), yes)
63 RGBLIGHT_ENABLE = yes
64 OPT_DEFS += -DRGBLED_BACK
65 ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes)
66 $(eval $(call ZINC_CUSTOMISE_MSG))
67 $(error LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE both 'yes')
68 endif
69else ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes)
70 RGBLIGHT_ENABLE = yes
71else
72 RGBLIGHT_ENABLE = no
73endif
74
75ifeq ($(strip $(IOS_DEVICE_ENABLE)), yes)
76 OPT_DEFS += -DIOS_DEVICE_ENABLE
77endif
78
79ifeq ($(strip $(LED_ANIMATIONS)), yes)
80# OPT_DEFS += -DRGBLIGHT_ANIMATIONS
81 OPT_DEFS += -DLED_ANIMATIONS
82endif
83
84ifeq ($(strip $(Link_Time_Optimization)),yes)
85 EXTRAFLAGS += -flto -DUSE_Link_Time_Optimization
86endif
87
88# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
89SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
90
91# Uncomment these for debugging
92# $(info -- RGBLIGHT_ENABLE=$(RGBLIGHT_ENABLE))
93# $(info -- OPT_DEFS=$(OPT_DEFS))
94# $(info )
95