diff options
28 files changed, 1085 insertions, 31 deletions
diff --git a/keyboards/ramonimbao/wete/readme.md b/keyboards/ramonimbao/wete/readme.md index f0f26b78b..0e8682c66 100644 --- a/keyboards/ramonimbao/wete/readme.md +++ b/keyboards/ramonimbao/wete/readme.md | |||
@@ -1,14 +1,14 @@ | |||
1 | # Wete | 1 | # Wete and Wete R2 |
2 | 2 | ||
3 |  | 3 | Southpaw numpad 75% boards. |
4 | |||
5 | A southpaw full-sized keyboard. | ||
6 | 4 | ||
7 | * Keyboard Maintainer: [Ramon Imbao](https://github.com/ramonimbao) | 5 | * Keyboard Maintainer: [Ramon Imbao](https://github.com/ramonimbao) |
8 | * Hardware Supported: STM32F072CBT6 | 6 | * Hardware Supported: STM32F072 (R1) and ATmega32u4 (R2) |
9 | 7 | ||
10 | Make example for this keyboard (after setting up your build environment): | 8 | Make example for these keyboards (after setting up your build environment): |
11 | 9 | ||
12 | make ramonimbao/wete:default | 10 | make ramonimbao/wete/rev1:default |
11 | |||
12 | make ramonimbao/wete/rev2:default | ||
13 | 13 | ||
14 | 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). | 14 | 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/ramonimbao/wete/rules.mk b/keyboards/ramonimbao/wete/rules.mk index 9d8b0cd38..7cdecbcb9 100644 --- a/keyboards/ramonimbao/wete/rules.mk +++ b/keyboards/ramonimbao/wete/rules.mk | |||
@@ -1,23 +1 @@ | |||
1 | # MCU name | DEFAULT_FOLDER = ramonimbao/wete/rev2 | |
2 | MCU = STM32F072 | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = stm32-dfu | ||
6 | |||
7 | # Build Options | ||
8 | # comment out to disable the options. | ||
9 | # | ||
10 | |||
11 | BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite | ||
12 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
13 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
14 | CONSOLE_ENABLE = yes # Console for debug | ||
15 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
16 | SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend | ||
17 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
18 | CUSTOM_MATRIX = no # Custom matrix file | ||
19 | BACKLIGHT_ENABLE = yes | ||
20 | RGBLIGHT_ENABLE = yes | ||
21 | |||
22 | # Enter lower-power sleep mode when on the ChibiOS idle thread | ||
23 | OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE | ||
diff --git a/keyboards/ramonimbao/wete/chconf.h b/keyboards/ramonimbao/wete/v1/chconf.h index 18befdb8e..18befdb8e 100644 --- a/keyboards/ramonimbao/wete/chconf.h +++ b/keyboards/ramonimbao/wete/v1/chconf.h | |||
diff --git a/keyboards/ramonimbao/wete/config.h b/keyboards/ramonimbao/wete/v1/config.h index 3d8955009..3d8955009 100644 --- a/keyboards/ramonimbao/wete/config.h +++ b/keyboards/ramonimbao/wete/v1/config.h | |||
diff --git a/keyboards/ramonimbao/wete/halconf.h b/keyboards/ramonimbao/wete/v1/halconf.h index b3de873be..b3de873be 100644 --- a/keyboards/ramonimbao/wete/halconf.h +++ b/keyboards/ramonimbao/wete/v1/halconf.h | |||
diff --git a/keyboards/ramonimbao/wete/info.json b/keyboards/ramonimbao/wete/v1/info.json index 7886b864a..7886b864a 100644 --- a/keyboards/ramonimbao/wete/info.json +++ b/keyboards/ramonimbao/wete/v1/info.json | |||
diff --git a/keyboards/ramonimbao/wete/keymaps/default/keymap.c b/keyboards/ramonimbao/wete/v1/keymaps/default/keymap.c index 3b68758a6..3b68758a6 100644 --- a/keyboards/ramonimbao/wete/keymaps/default/keymap.c +++ b/keyboards/ramonimbao/wete/v1/keymaps/default/keymap.c | |||
diff --git a/keyboards/ramonimbao/wete/keymaps/iso/keymap.c b/keyboards/ramonimbao/wete/v1/keymaps/iso/keymap.c index 203a336c7..203a336c7 100644 --- a/keyboards/ramonimbao/wete/keymaps/iso/keymap.c +++ b/keyboards/ramonimbao/wete/v1/keymaps/iso/keymap.c | |||
diff --git a/keyboards/ramonimbao/wete/keymaps/jis/keymap.c b/keyboards/ramonimbao/wete/v1/keymaps/jis/keymap.c index 8d6593221..8d6593221 100644 --- a/keyboards/ramonimbao/wete/keymaps/jis/keymap.c +++ b/keyboards/ramonimbao/wete/v1/keymaps/jis/keymap.c | |||
diff --git a/keyboards/ramonimbao/wete/keymaps/via/config.h b/keyboards/ramonimbao/wete/v1/keymaps/via/config.h index 4dadf6a16..4dadf6a16 100644 --- a/keyboards/ramonimbao/wete/keymaps/via/config.h +++ b/keyboards/ramonimbao/wete/v1/keymaps/via/config.h | |||
diff --git a/keyboards/ramonimbao/wete/keymaps/via/keymap.c b/keyboards/ramonimbao/wete/v1/keymaps/via/keymap.c index 0f1a0bedb..0f1a0bedb 100644 --- a/keyboards/ramonimbao/wete/keymaps/via/keymap.c +++ b/keyboards/ramonimbao/wete/v1/keymaps/via/keymap.c | |||
diff --git a/keyboards/ramonimbao/wete/keymaps/via/rules.mk b/keyboards/ramonimbao/wete/v1/keymaps/via/rules.mk index 666e72557..666e72557 100644 --- a/keyboards/ramonimbao/wete/keymaps/via/rules.mk +++ b/keyboards/ramonimbao/wete/v1/keymaps/via/rules.mk | |||
diff --git a/keyboards/ramonimbao/wete/mcuconf.h b/keyboards/ramonimbao/wete/v1/mcuconf.h index 7a2e87776..7a2e87776 100644 --- a/keyboards/ramonimbao/wete/mcuconf.h +++ b/keyboards/ramonimbao/wete/v1/mcuconf.h | |||
diff --git a/keyboards/ramonimbao/wete/v1/readme.md b/keyboards/ramonimbao/wete/v1/readme.md new file mode 100644 index 000000000..f0f26b78b --- /dev/null +++ b/keyboards/ramonimbao/wete/v1/readme.md | |||
@@ -0,0 +1,14 @@ | |||
1 | # Wete | ||
2 | |||
3 |  | ||
4 | |||
5 | A southpaw full-sized keyboard. | ||
6 | |||
7 | * Keyboard Maintainer: [Ramon Imbao](https://github.com/ramonimbao) | ||
8 | * Hardware Supported: STM32F072CBT6 | ||
9 | |||
10 | Make example for this keyboard (after setting up your build environment): | ||
11 | |||
12 | make ramonimbao/wete:default | ||
13 | |||
14 | 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/ramonimbao/wete/v1/rules.mk b/keyboards/ramonimbao/wete/v1/rules.mk new file mode 100644 index 000000000..b268e7997 --- /dev/null +++ b/keyboards/ramonimbao/wete/v1/rules.mk | |||
@@ -0,0 +1,24 @@ | |||
1 | # MCU name | ||
2 | MCU = STM32F072 | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = stm32-dfu | ||
6 | |||
7 | # Build Options | ||
8 | # change yes to no to disable | ||
9 | # | ||
10 | BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite | ||
11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
13 | CONSOLE_ENABLE = yes # Console for debug | ||
14 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
16 | SLEEP_LED_ENABLE = yes # 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 = yes # USB Nkey Rollover | ||
19 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
20 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
21 | AUDIO_ENABLE = no # Audio output | ||
22 | |||
23 | # Enter lower-power sleep mode when on the ChibiOS idle thread | ||
24 | OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE | ||
diff --git a/keyboards/ramonimbao/wete/wete.c b/keyboards/ramonimbao/wete/v1/v1.c index 181183c70..b14a7dc73 100644 --- a/keyboards/ramonimbao/wete/wete.c +++ b/keyboards/ramonimbao/wete/v1/v1.c | |||
@@ -1,4 +1,4 @@ | |||
1 | #include "wete.h" | 1 | #include "v1.h" |
2 | 2 | ||
3 | void keyboard_pre_init_user(void) { | 3 | void keyboard_pre_init_user(void) { |
4 | // Initialize indicator LED pins | 4 | // Initialize indicator LED pins |
diff --git a/keyboards/ramonimbao/wete/wete.h b/keyboards/ramonimbao/wete/v1/v1.h index 46daf6d6f..46daf6d6f 100644 --- a/keyboards/ramonimbao/wete/wete.h +++ b/keyboards/ramonimbao/wete/v1/v1.h | |||
diff --git a/keyboards/ramonimbao/wete/v2/config.h b/keyboards/ramonimbao/wete/v2/config.h new file mode 100644 index 000000000..00cc6593d --- /dev/null +++ b/keyboards/ramonimbao/wete/v2/config.h | |||
@@ -0,0 +1,163 @@ | |||
1 | /* | ||
2 | Copyright 2021 Ramon Imbao | ||
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 0xB16B | ||
24 | #define PRODUCT_ID 0x00B3 | ||
25 | #define DEVICE_VER 0x3500 | ||
26 | #define MANUFACTURER Ramon Imbao | ||
27 | #define PRODUCT Wete R2 | ||
28 | |||
29 | /* key matrix size */ | ||
30 | #define MATRIX_ROWS 13 | ||
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 { B3, B2, B6, C6, C7, E6, F7, F6, F5, F4, F1, F0, NO_PIN } | ||
44 | #define MATRIX_COL_PINS { B1, B0, B7, B5, B4, D7, D6, D4, D5, D3 } | ||
45 | #define UNUSED_PINS | ||
46 | |||
47 | /* COL2ROW, ROW2COL */ | ||
48 | #define DIODE_DIRECTION COL2ROW | ||
49 | |||
50 | /* Encoder pins */ | ||
51 | #define ENCODERS_PAD_A { D2 } | ||
52 | #define ENCODERS_PAD_B { D1 } | ||
53 | |||
54 | /* | ||
55 | * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN. | ||
56 | */ | ||
57 | #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 | ||
58 | |||
59 | //#define LED_NUM_LOCK_PIN B0 | ||
60 | //#define LED_CAPS_LOCK_PIN B1 | ||
61 | //#define LED_SCROLL_LOCK_PIN B2 | ||
62 | //#define LED_COMPOSE_PIN B3 | ||
63 | //#define LED_KANA_PIN B4 | ||
64 | |||
65 | //#define BACKLIGHT_PIN B7 | ||
66 | //#define BACKLIGHT_LEVELS 3 | ||
67 | //#define BACKLIGHT_BREATHING | ||
68 | |||
69 | #define RGBLIGHT_LAYERS | ||
70 | #define RGBLIGHT_LAYERS_OVERRIDE_RGB_OFF | ||
71 | |||
72 | #define RGB_DI_PIN D0 | ||
73 | #ifdef RGB_DI_PIN | ||
74 | # define RGBLED_NUM 18 | ||
75 | # define RGBLIGHT_HUE_STEP 32 | ||
76 | # define RGBLIGHT_SAT_STEP 32 | ||
77 | # define RGBLIGHT_VAL_STEP 32 | ||
78 | //# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
79 | //# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
80 | /*== all animations enable ==*/ | ||
81 | // # define RGBLIGHT_ANIMATIONS | ||
82 | /*== or choose animations ==*/ | ||
83 | # define RGBLIGHT_EFFECT_BREATHING | ||
84 | # define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
85 | # define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
86 | //# define RGBLIGHT_EFFECT_SNAKE | ||
87 | //# define RGBLIGHT_EFFECT_KNIGHT | ||
88 | # define RGBLIGHT_EFFECT_CHRISTMAS | ||
89 | # define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
90 | # define RGBLIGHT_EFFECT_RGB_TEST | ||
91 | # define RGBLIGHT_EFFECT_ALTERNATING | ||
92 | /*== customize breathing effect ==*/ | ||
93 | /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
94 | //# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
95 | /*==== use exp() and sin() ====*/ | ||
96 | //# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
97 | //# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
98 | #endif | ||
99 | |||
100 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
101 | #define DEBOUNCE 5 | ||
102 | |||
103 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
104 | //#define MATRIX_HAS_GHOST | ||
105 | |||
106 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
107 | #define LOCKING_SUPPORT_ENABLE | ||
108 | /* Locking resynchronize hack */ | ||
109 | #define LOCKING_RESYNC_ENABLE | ||
110 | |||
111 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
112 | * This is useful for the Windows task manager shortcut (ctrl+shift+esc). | ||
113 | */ | ||
114 | //#define GRAVE_ESC_CTRL_OVERRIDE | ||
115 | |||
116 | /* | ||
117 | * Force NKRO | ||
118 | * | ||
119 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
120 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
121 | * makefile for this to work.) | ||
122 | * | ||
123 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
124 | * until the next keyboard reset. | ||
125 | * | ||
126 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
127 | * fully operational during normal computer usage. | ||
128 | * | ||
129 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
130 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
131 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
132 | * power-up. | ||
133 | * | ||
134 | */ | ||
135 | //#define FORCE_NKRO | ||
136 | |||
137 | /* | ||
138 | * Feature disable options | ||
139 | * These options are also useful to firmware size reduction. | ||
140 | */ | ||
141 | |||
142 | /* disable debug print */ | ||
143 | //#define NO_DEBUG | ||
144 | |||
145 | /* disable print */ | ||
146 | //#define NO_PRINT | ||
147 | |||
148 | /* disable action features */ | ||
149 | //#define NO_ACTION_LAYER | ||
150 | //#define NO_ACTION_TAPPING | ||
151 | //#define NO_ACTION_ONESHOT | ||
152 | |||
153 | /* disable these deprecated features by default */ | ||
154 | #define NO_ACTION_MACRO | ||
155 | #define NO_ACTION_FUNCTION | ||
156 | |||
157 | /* Bootmagic Lite key configuration */ | ||
158 | //#define BOOTMAGIC_LITE_ROW 0 | ||
159 | //#define BOOTMAGIC_LITE_COLUMN 0 | ||
160 | |||
161 | // QoL improvements | ||
162 | #define PERMISSIVE_HOLD | ||
163 | #define IGNORE_MOD_TAP_INTERRUPT | ||
diff --git a/keyboards/ramonimbao/wete/v2/info.json b/keyboards/ramonimbao/wete/v2/info.json new file mode 100644 index 000000000..8231871a1 --- /dev/null +++ b/keyboards/ramonimbao/wete/v2/info.json | |||
@@ -0,0 +1,350 @@ | |||
1 | { | ||
2 | "keyboard_name": "Wete R2", | ||
3 | "url": "", | ||
4 | "maintainer": "Ramon Imbao", | ||
5 | "layouts": { | ||
6 | "LAYOUT_ansi": { | ||
7 | "layout": [ | ||
8 | {"x":0, "y":0}, | ||
9 | {"x":1, "y":0}, | ||
10 | {"x":2, "y":0}, | ||
11 | {"x":3, "y":0}, | ||
12 | {"x":4.25, "y":0}, | ||
13 | {"x":5.75, "y":0}, | ||
14 | {"x":6.75, "y":0}, | ||
15 | {"x":7.75, "y":0}, | ||
16 | {"x":8.75, "y":0}, | ||
17 | {"x":10.25, "y":0}, | ||
18 | {"x":11.25, "y":0}, | ||
19 | {"x":12.25, "y":0}, | ||
20 | {"x":13.25, "y":0}, | ||
21 | {"x":14.75, "y":0}, | ||
22 | {"x":15.75, "y":0}, | ||
23 | {"x":16.75, "y":0}, | ||
24 | {"x":17.75, "y":0}, | ||
25 | {"x":19.25, "y":0}, | ||
26 | |||
27 | {"x":0, "y":1.25}, | ||
28 | {"x":1, "y":1.25}, | ||
29 | {"x":2, "y":1.25}, | ||
30 | {"x":3, "y":1.25}, | ||
31 | {"x":4.25, "y":1.25}, | ||
32 | {"x":5.25, "y":1.25}, | ||
33 | {"x":6.25, "y":1.25}, | ||
34 | {"x":7.25, "y":1.25}, | ||
35 | {"x":8.25, "y":1.25}, | ||
36 | {"x":9.25, "y":1.25}, | ||
37 | {"x":10.25, "y":1.25}, | ||
38 | {"x":11.25, "y":1.25}, | ||
39 | {"x":12.25, "y":1.25}, | ||
40 | {"x":13.25, "y":1.25}, | ||
41 | {"x":14.25, "y":1.25}, | ||
42 | {"x":15.25, "y":1.25}, | ||
43 | {"x":16.25, "y":1.25}, | ||
44 | {"x":17.25, "y":1.25, "w":2}, | ||
45 | {"x":19.25, "y":1.25}, | ||
46 | |||
47 | {"x":0, "y":2.25}, | ||
48 | {"x":1, "y":2.25}, | ||
49 | {"x":2, "y":2.25}, | ||
50 | {"x":3, "y":2.25, "h":2}, | ||
51 | {"x":4.25, "y":2.25, "w":1.5}, | ||
52 | {"x":5.75, "y":2.25}, | ||
53 | {"x":6.75, "y":2.25}, | ||
54 | {"x":7.75, "y":2.25}, | ||
55 | {"x":8.75, "y":2.25}, | ||
56 | {"x":9.75, "y":2.25}, | ||
57 | {"x":10.75, "y":2.25}, | ||
58 | {"x":11.75, "y":2.25}, | ||
59 | {"x":12.75, "y":2.25}, | ||
60 | {"x":13.75, "y":2.25}, | ||
61 | {"x":14.75, "y":2.25}, | ||
62 | {"x":15.75, "y":2.25}, | ||
63 | {"x":16.75, "y":2.25}, | ||
64 | {"x":17.75, "y":2.25, "w":1.5}, | ||
65 | {"x":19.25, "y":2.25}, | ||
66 | |||
67 | {"x":0, "y":3.25}, | ||
68 | {"x":1, "y":3.25}, | ||
69 | {"x":2, "y":3.25}, | ||
70 | {"x":4.25, "y":3.25, "w":1.75}, | ||
71 | {"x":6, "y":3.25}, | ||
72 | {"x":7, "y":3.25}, | ||
73 | {"x":8, "y":3.25}, | ||
74 | {"x":9, "y":3.25}, | ||
75 | {"x":10, "y":3.25}, | ||
76 | {"x":11, "y":3.25}, | ||
77 | {"x":12, "y":3.25}, | ||
78 | {"x":13, "y":3.25}, | ||
79 | {"x":14, "y":3.25}, | ||
80 | {"x":15, "y":3.25}, | ||
81 | {"x":16, "y":3.25}, | ||
82 | {"x":17, "y":3.25, "w":2.25}, | ||
83 | {"x":19.25, "y":3.25}, | ||
84 | |||
85 | {"x":0, "y":4.25}, | ||
86 | {"x":1, "y":4.25}, | ||
87 | {"x":2, "y":4.25}, | ||
88 | {"x":3, "y":4.25, "h":2}, | ||
89 | {"x":4.25, "y":4.25, "w":2.25}, | ||
90 | {"x":6.5, "y":4.25}, | ||
91 | {"x":7.5, "y":4.25}, | ||
92 | {"x":8.5, "y":4.25}, | ||
93 | {"x":9.5, "y":4.25}, | ||
94 | {"x":10.5, "y":4.25}, | ||
95 | {"x":11.5, "y":4.25}, | ||
96 | {"x":12.5, "y":4.25}, | ||
97 | {"x":13.5, "y":4.25}, | ||
98 | {"x":14.5, "y":4.25}, | ||
99 | {"x":15.5, "y":4.25}, | ||
100 | {"x":16.5, "y":4.25, "w":1.75}, | ||
101 | {"x":18.25, "y":4.25}, | ||
102 | {"x":19.25, "y":4.25}, | ||
103 | |||
104 | {"x":0, "y":5.25, "w":2}, | ||
105 | {"x":2, "y":5.25}, | ||
106 | {"x":4.25, "y":5.25, "w":1.25}, | ||
107 | {"x":5.5, "y":5.25, "w":1.25}, | ||
108 | {"x":6.75, "y":5.25, "w":1.25}, | ||
109 | {"x":8, "y":5.25, "w":6.25}, | ||
110 | {"x":14.25, "y":5.25, "w":1.25}, | ||
111 | {"x":15.5, "y":5.25, "w":1.25}, | ||
112 | {"x":17.25, "y":5.25}, | ||
113 | {"x":18.25, "y":5.25}, | ||
114 | {"x":19.25, "y":5.25} | ||
115 | ] | ||
116 | }, | ||
117 | "LAYOUT_iso": { | ||
118 | "layout": [ | ||
119 | {"x":0, "y":0}, | ||
120 | {"x":1, "y":0}, | ||
121 | {"x":2, "y":0}, | ||
122 | {"x":3, "y":0}, | ||
123 | {"x":4.25, "y":0}, | ||
124 | {"x":5.75, "y":0}, | ||
125 | {"x":6.75, "y":0}, | ||
126 | {"x":7.75, "y":0}, | ||
127 | {"x":8.75, "y":0}, | ||
128 | {"x":10.25, "y":0}, | ||
129 | {"x":11.25, "y":0}, | ||
130 | {"x":12.25, "y":0}, | ||
131 | {"x":13.25, "y":0}, | ||
132 | {"x":14.75, "y":0}, | ||
133 | {"x":15.75, "y":0}, | ||
134 | {"x":16.75, "y":0}, | ||
135 | {"x":17.75, "y":0}, | ||
136 | {"x":19.25, "y":0}, | ||
137 | |||
138 | {"x":0, "y":1.25}, | ||
139 | {"x":1, "y":1.25}, | ||
140 | {"x":2, "y":1.25}, | ||
141 | {"x":3, "y":1.25}, | ||
142 | {"x":4.25, "y":1.25}, | ||
143 | {"x":5.25, "y":1.25}, | ||
144 | {"x":6.25, "y":1.25}, | ||
145 | {"x":7.25, "y":1.25}, | ||
146 | {"x":8.25, "y":1.25}, | ||
147 | {"x":9.25, "y":1.25}, | ||
148 | {"x":10.25, "y":1.25}, | ||
149 | {"x":11.25, "y":1.25}, | ||
150 | {"x":12.25, "y":1.25}, | ||
151 | {"x":13.25, "y":1.25}, | ||
152 | {"x":14.25, "y":1.25}, | ||
153 | {"x":15.25, "y":1.25}, | ||
154 | {"x":16.25, "y":1.25}, | ||
155 | {"x":17.25, "y":1.25, "w":2}, | ||
156 | {"x":19.25, "y":1.25}, | ||
157 | |||
158 | {"x":0, "y":2.25}, | ||
159 | {"x":1, "y":2.25}, | ||
160 | {"x":2, "y":2.25}, | ||
161 | {"x":3, "y":2.25, "h":2}, | ||
162 | {"x":4.25, "y":2.25, "w":1.5}, | ||
163 | {"x":5.75, "y":2.25}, | ||
164 | {"x":6.75, "y":2.25}, | ||
165 | {"x":7.75, "y":2.25}, | ||
166 | {"x":8.75, "y":2.25}, | ||
167 | {"x":9.75, "y":2.25}, | ||
168 | {"x":10.75, "y":2.25}, | ||
169 | {"x":11.75, "y":2.25}, | ||
170 | {"x":12.75, "y":2.25}, | ||
171 | {"x":13.75, "y":2.25}, | ||
172 | {"x":14.75, "y":2.25}, | ||
173 | {"x":15.75, "y":2.25}, | ||
174 | {"x":16.75, "y":2.25}, | ||
175 | {"x":19.25, "y":2.25}, | ||
176 | |||
177 | {"x":0, "y":3.25}, | ||
178 | {"x":1, "y":3.25}, | ||
179 | {"x":2, "y":3.25}, | ||
180 | {"x":4.25, "y":3.25, "w":1.75}, | ||
181 | {"x":6, "y":3.25}, | ||
182 | {"x":7, "y":3.25}, | ||
183 | {"x":8, "y":3.25}, | ||
184 | {"x":9, "y":3.25}, | ||
185 | {"x":10, "y":3.25}, | ||
186 | {"x":11, "y":3.25}, | ||
187 | {"x":12, "y":3.25}, | ||
188 | {"x":13, "y":3.25}, | ||
189 | {"x":14, "y":3.25}, | ||
190 | {"x":15, "y":3.25}, | ||
191 | {"x":16, "y":3.25}, | ||
192 | {"x":17, "y":3.25}, | ||
193 | {"x":18, "y":2.25, "w":1.25, "h":2}, | ||
194 | {"x":19.25, "y":3.25}, | ||
195 | |||
196 | {"x":0, "y":4.25}, | ||
197 | {"x":1, "y":4.25}, | ||
198 | {"x":2, "y":4.25}, | ||
199 | {"x":3, "y":4.25, "h":2}, | ||
200 | {"x":4.25, "y":4.25, "w":1.25}, | ||
201 | {"x":5.5, "y":4.25}, | ||
202 | {"x":6.5, "y":4.25}, | ||
203 | {"x":7.5, "y":4.25}, | ||
204 | {"x":8.5, "y":4.25}, | ||
205 | {"x":9.5, "y":4.25}, | ||
206 | {"x":10.5, "y":4.25}, | ||
207 | {"x":11.5, "y":4.25}, | ||
208 | {"x":12.5, "y":4.25}, | ||
209 | {"x":13.5, "y":4.25}, | ||
210 | {"x":14.5, "y":4.25}, | ||
211 | {"x":15.5, "y":4.25}, | ||
212 | {"x":16.5, "y":4.25, "w":1.75}, | ||
213 | {"x":18.25, "y":4.25}, | ||
214 | {"x":19.25, "y":4.25}, | ||
215 | |||
216 | {"x":0, "y":5.25, "w":2}, | ||
217 | {"x":2, "y":5.25}, | ||
218 | {"x":4.25, "y":5.25, "w":1.25}, | ||
219 | {"x":5.5, "y":5.25, "w":1.25}, | ||
220 | {"x":6.75, "y":5.25, "w":1.25}, | ||
221 | {"x":8, "y":5.25, "w":6.25}, | ||
222 | {"x":14.25, "y":5.25, "w":1.25}, | ||
223 | {"x":15.5, "y":5.25, "w":1.25}, | ||
224 | {"x":17.25, "y":5.25}, | ||
225 | {"x":18.25, "y":5.25}, | ||
226 | {"x":19.25, "y":5.25} | ||
227 | ] | ||
228 | }, | ||
229 | "LAYOUT_all": { | ||
230 | "layout": [ | ||
231 | {"x":0, "y":0}, | ||
232 | {"x":1, "y":0}, | ||
233 | {"x":2, "y":0}, | ||
234 | {"x":3, "y":0}, | ||
235 | {"x":4.25, "y":0}, | ||
236 | {"x":5.75, "y":0}, | ||
237 | {"x":6.75, "y":0}, | ||
238 | {"x":7.75, "y":0}, | ||
239 | {"x":8.75, "y":0}, | ||
240 | {"x":10.25, "y":0}, | ||
241 | {"x":11.25, "y":0}, | ||
242 | {"x":12.25, "y":0}, | ||
243 | {"x":13.25, "y":0}, | ||
244 | {"x":14.75, "y":0}, | ||
245 | {"x":15.75, "y":0}, | ||
246 | {"x":16.75, "y":0}, | ||
247 | {"x":17.75, "y":0}, | ||
248 | {"x":19.5, "y":0}, | ||
249 | |||
250 | {"x":0, "y":1.25}, | ||
251 | {"x":1, "y":1.25}, | ||
252 | {"x":2, "y":1.25}, | ||
253 | {"x":3, "y":1.25}, | ||
254 | {"x":4.25, "y":1.25}, | ||
255 | {"x":5.25, "y":1.25}, | ||
256 | {"x":6.25, "y":1.25}, | ||
257 | {"x":7.25, "y":1.25}, | ||
258 | {"x":8.25, "y":1.25}, | ||
259 | {"x":9.25, "y":1.25}, | ||
260 | {"x":10.25, "y":1.25}, | ||
261 | {"x":11.25, "y":1.25}, | ||
262 | {"x":12.25, "y":1.25}, | ||
263 | {"x":13.25, "y":1.25}, | ||
264 | {"x":14.25, "y":1.25}, | ||
265 | {"x":15.25, "y":1.25}, | ||
266 | {"x":16.25, "y":1.25}, | ||
267 | {"x":17.25, "y":1.25}, | ||
268 | {"x":18.25, "y":1.25}, | ||
269 | {"x":19.25, "y":1.25}, | ||
270 | |||
271 | {"x":0, "y":2.25}, | ||
272 | {"x":1, "y":2.25}, | ||
273 | {"x":2, "y":2.25}, | ||
274 | {"x":3, "y":2.25}, | ||
275 | {"x":4.25, "y":2.25, "w":1.5}, | ||
276 | {"x":5.75, "y":2.25}, | ||
277 | {"x":6.75, "y":2.25}, | ||
278 | {"x":7.75, "y":2.25}, | ||
279 | {"x":8.75, "y":2.25}, | ||
280 | {"x":9.75, "y":2.25}, | ||
281 | {"x":10.75, "y":2.25}, | ||
282 | {"x":11.75, "y":2.25}, | ||
283 | {"x":12.75, "y":2.25}, | ||
284 | {"x":13.75, "y":2.25}, | ||
285 | {"x":14.75, "y":2.25}, | ||
286 | {"x":15.75, "y":2.25}, | ||
287 | {"x":16.75, "y":2.25}, | ||
288 | {"x":17.75, "y":2.25, "w":1.5}, | ||
289 | {"x":19.25, "y":2.25}, | ||
290 | |||
291 | {"x":0, "y":3.25}, | ||
292 | {"x":1, "y":3.25}, | ||
293 | {"x":2, "y":3.25}, | ||
294 | {"x":3, "y":3.25}, | ||
295 | {"x":4.25, "y":3.25, "w":1.75}, | ||
296 | {"x":6, "y":3.25}, | ||
297 | {"x":7, "y":3.25}, | ||
298 | {"x":8, "y":3.25}, | ||
299 | {"x":9, "y":3.25}, | ||
300 | {"x":10, "y":3.25}, | ||
301 | {"x":11, "y":3.25}, | ||
302 | {"x":12, "y":3.25}, | ||
303 | {"x":13, "y":3.25}, | ||
304 | {"x":14, "y":3.25}, | ||
305 | {"x":15, "y":3.25}, | ||
306 | {"x":16, "y":3.25}, | ||
307 | {"x":17, "y":3.25, "w":2.25}, | ||
308 | {"x":19.25, "y":3.25}, | ||
309 | |||
310 | {"x":0, "y":4.25}, | ||
311 | {"x":1, "y":4.25}, | ||
312 | {"x":2, "y":4.25}, | ||
313 | {"x":3, "y":4.25}, | ||
314 | {"x":4.25, "y":4.25, "w":1.25}, | ||
315 | {"x":5.5, "y":4.25}, | ||
316 | {"x":6.5, "y":4.25}, | ||
317 | {"x":7.5, "y":4.25}, | ||
318 | {"x":8.5, "y":4.25}, | ||
319 | {"x":9.5, "y":4.25}, | ||
320 | {"x":10.5, "y":4.25}, | ||
321 | {"x":11.5, "y":4.25}, | ||
322 | {"x":12.5, "y":4.25}, | ||
323 | {"x":13.5, "y":4.25}, | ||
324 | {"x":14.5, "y":4.25}, | ||
325 | {"x":15.5, "y":4.25}, | ||
326 | {"x":16.5, "y":4.25, "w":1.75}, | ||
327 | {"x":18.25, "y":4.25}, | ||
328 | {"x":19.25, "y":4.25}, | ||
329 | |||
330 | {"x":0, "y":5.25}, | ||
331 | {"x":1, "y":5.25}, | ||
332 | {"x":2, "y":5.25}, | ||
333 | {"x":3, "y":5.25}, | ||
334 | {"x":4.25, "y":5.25, "w":1.25}, | ||
335 | {"x":5.5, "y":5.25, "w":1.25}, | ||
336 | {"x":6.75, "y":5.25, "w":1.25}, | ||
337 | {"x":8, "y":5.25, "w":6.25}, | ||
338 | {"x":14.25, "y":5.25}, | ||
339 | {"x":15.25, "y":5.25}, | ||
340 | {"x":16.25, "y":5.25}, | ||
341 | {"x":17.25, "y":5.25}, | ||
342 | {"x":18.25, "y":5.25}, | ||
343 | {"x":19.25, "y":5.25}, | ||
344 | |||
345 | {"x":19, "y":0, "w":0.5}, | ||
346 | {"x":20.5, "y":0, "w":0.5} | ||
347 | ] | ||
348 | } | ||
349 | } | ||
350 | } | ||
diff --git a/keyboards/ramonimbao/wete/v2/keymaps/default/keymap.c b/keyboards/ramonimbao/wete/v2/keymaps/default/keymap.c new file mode 100644 index 000000000..3fb3d02b3 --- /dev/null +++ b/keyboards/ramonimbao/wete/v2/keymaps/default/keymap.c | |||
@@ -0,0 +1,97 @@ | |||
1 | /* Copyright 2021 Ramon Imbao | ||
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 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
18 | [0] = LAYOUT_ansi( | ||
19 | KC_PSCR, KC_SLCK, KC_PAUS, KC_INS, KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL, | ||
20 | KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_HOME, | ||
21 | KC_P7, KC_P8, KC_P9, KC_PPLS, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_END, | ||
22 | KC_P4, KC_P5, KC_P6, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGUP, | ||
23 | KC_P1, KC_P2, KC_P3, KC_PENT, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN, | ||
24 | KC_P0, KC_PDOT, KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
25 | ), | ||
26 | }; | ||
27 | |||
28 | bool encoder_update_user(uint8_t index, bool clockwise) { | ||
29 | if (clockwise) { | ||
30 | tap_code(KC_VOLU); | ||
31 | } else { | ||
32 | tap_code(KC_VOLD); | ||
33 | } | ||
34 | return true; | ||
35 | } | ||
36 | |||
37 | #ifdef RGBLIGHT_ENABLE | ||
38 | // Can probably still be optimized, but I like it as is for clarity | ||
39 | const rgblight_segment_t PROGMEM ll_none[] = RGBLIGHT_LAYER_SEGMENTS( | ||
40 | {0,1, HSV_OFF}, | ||
41 | {1,1, HSV_OFF}, | ||
42 | {2,1, HSV_OFF} | ||
43 | ); | ||
44 | const rgblight_segment_t PROGMEM ll_nl[] = RGBLIGHT_LAYER_SEGMENTS( | ||
45 | {1,1, HSV_OFF}, | ||
46 | {0,1, HSV_OFF} | ||
47 | ); | ||
48 | const rgblight_segment_t PROGMEM ll_cl[] = RGBLIGHT_LAYER_SEGMENTS( | ||
49 | {2,1, HSV_OFF}, | ||
50 | {0,1, HSV_OFF} | ||
51 | ); | ||
52 | const rgblight_segment_t PROGMEM ll_clnl[] = RGBLIGHT_LAYER_SEGMENTS( | ||
53 | {0,1, HSV_OFF} | ||
54 | ); | ||
55 | const rgblight_segment_t PROGMEM ll_sl[] = RGBLIGHT_LAYER_SEGMENTS( | ||
56 | {2,1, HSV_OFF}, | ||
57 | {1,1, HSV_OFF} | ||
58 | ); | ||
59 | const rgblight_segment_t PROGMEM ll_slnl[] = RGBLIGHT_LAYER_SEGMENTS( | ||
60 | {1,1, HSV_OFF} | ||
61 | ); | ||
62 | const rgblight_segment_t PROGMEM ll_slcl[] = RGBLIGHT_LAYER_SEGMENTS( | ||
63 | {2,1, HSV_OFF} | ||
64 | ); | ||
65 | |||
66 | const rgblight_segment_t* const PROGMEM rgb_layers[] = RGBLIGHT_LAYERS_LIST( | ||
67 | ll_none, | ||
68 | ll_nl, | ||
69 | ll_cl, | ||
70 | ll_clnl, | ||
71 | ll_sl, | ||
72 | ll_slnl, | ||
73 | ll_slcl | ||
74 | ); | ||
75 | |||
76 | void keyboard_post_init_kb(void) { | ||
77 | rgblight_layers = rgb_layers; | ||
78 | |||
79 | keyboard_post_init_user(); | ||
80 | } | ||
81 | |||
82 | bool led_update_kb (led_t led_state) { | ||
83 | bool res = led_update_user(led_state); | ||
84 | |||
85 | if (res) { | ||
86 | uint8_t lock_bits = led_state.scroll_lock << 2 | led_state.caps_lock << 1 | led_state.num_lock; | ||
87 | for (uint8_t i=0; i<7; i++) { | ||
88 | rgblight_set_layer_state(i, false); | ||
89 | } | ||
90 | if (lock_bits < 7) { | ||
91 | rgblight_set_layer_state(lock_bits, true); | ||
92 | } | ||
93 | } | ||
94 | |||
95 | return res; | ||
96 | } | ||
97 | #endif | ||
diff --git a/keyboards/ramonimbao/wete/v2/keymaps/iso/keymap.c b/keyboards/ramonimbao/wete/v2/keymaps/iso/keymap.c new file mode 100644 index 000000000..a90c1869f --- /dev/null +++ b/keyboards/ramonimbao/wete/v2/keymaps/iso/keymap.c | |||
@@ -0,0 +1,97 @@ | |||
1 | /* Copyright 2021 Ramon Imbao | ||
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 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
18 | [0] = LAYOUT_iso( | ||
19 | KC_PSCR, KC_SLCK, KC_PAUS, KC_INS, KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL, | ||
20 | KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_HOME, | ||
21 | KC_P7, KC_P8, KC_P9, KC_PPLS, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_END, | ||
22 | KC_P4, KC_P5, KC_P6, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUBS, KC_ENT, KC_PGUP, | ||
23 | KC_P1, KC_P2, KC_P3, KC_PENT, KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN, | ||
24 | KC_P0, KC_PDOT, KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
25 | ), | ||
26 | }; | ||
27 | |||
28 | bool encoder_update_user(uint8_t index, bool clockwise) { | ||
29 | if (clockwise) { | ||
30 | tap_code(KC_VOLU); | ||
31 | } else { | ||
32 | tap_code(KC_VOLD); | ||
33 | } | ||
34 | return true; | ||
35 | } | ||
36 | |||
37 | #ifdef RGBLIGHT_ENABLE | ||
38 | // Can probably still be optimized, but I like it as is for clarity | ||
39 | const rgblight_segment_t PROGMEM ll_none[] = RGBLIGHT_LAYER_SEGMENTS( | ||
40 | {0,1, HSV_OFF}, | ||
41 | {1,1, HSV_OFF}, | ||
42 | {2,1, HSV_OFF} | ||
43 | ); | ||
44 | const rgblight_segment_t PROGMEM ll_nl[] = RGBLIGHT_LAYER_SEGMENTS( | ||
45 | {1,1, HSV_OFF}, | ||
46 | {0,1, HSV_OFF} | ||
47 | ); | ||
48 | const rgblight_segment_t PROGMEM ll_cl[] = RGBLIGHT_LAYER_SEGMENTS( | ||
49 | {2,1, HSV_OFF}, | ||
50 | {0,1, HSV_OFF} | ||
51 | ); | ||
52 | const rgblight_segment_t PROGMEM ll_clnl[] = RGBLIGHT_LAYER_SEGMENTS( | ||
53 | {0,1, HSV_OFF} | ||
54 | ); | ||
55 | const rgblight_segment_t PROGMEM ll_sl[] = RGBLIGHT_LAYER_SEGMENTS( | ||
56 | {2,1, HSV_OFF}, | ||
57 | {1,1, HSV_OFF} | ||
58 | ); | ||
59 | const rgblight_segment_t PROGMEM ll_slnl[] = RGBLIGHT_LAYER_SEGMENTS( | ||
60 | {1,1, HSV_OFF} | ||
61 | ); | ||
62 | const rgblight_segment_t PROGMEM ll_slcl[] = RGBLIGHT_LAYER_SEGMENTS( | ||
63 | {2,1, HSV_OFF} | ||
64 | ); | ||
65 | |||
66 | const rgblight_segment_t* const PROGMEM rgb_layers[] = RGBLIGHT_LAYERS_LIST( | ||
67 | ll_none, | ||
68 | ll_nl, | ||
69 | ll_cl, | ||
70 | ll_clnl, | ||
71 | ll_sl, | ||
72 | ll_slnl, | ||
73 | ll_slcl | ||
74 | ); | ||
75 | |||
76 | void keyboard_post_init_kb(void) { | ||
77 | rgblight_layers = rgb_layers; | ||
78 | |||
79 | keyboard_post_init_user(); | ||
80 | } | ||
81 | |||
82 | bool led_update_kb (led_t led_state) { | ||
83 | bool res = led_update_user(led_state); | ||
84 | |||
85 | if (res) { | ||
86 | uint8_t lock_bits = led_state.scroll_lock << 2 | led_state.caps_lock << 1 | led_state.num_lock; | ||
87 | for (uint8_t i=0; i<7; i++) { | ||
88 | rgblight_set_layer_state(i, false); | ||
89 | } | ||
90 | if (lock_bits < 7) { | ||
91 | rgblight_set_layer_state(lock_bits, true); | ||
92 | } | ||
93 | } | ||
94 | |||
95 | return res; | ||
96 | } | ||
97 | #endif | ||
diff --git a/keyboards/ramonimbao/wete/v2/keymaps/via/config.h b/keyboards/ramonimbao/wete/v2/keymaps/via/config.h new file mode 100644 index 000000000..c7cec8a9d --- /dev/null +++ b/keyboards/ramonimbao/wete/v2/keymaps/via/config.h | |||
@@ -0,0 +1,20 @@ | |||
1 | /* | ||
2 | Copyright 2021 Ramon Imbao | ||
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 | #define DYNAMIC_KEYMAP_LAYER_COUNT 2 | ||
diff --git a/keyboards/ramonimbao/wete/v2/keymaps/via/keymap.c b/keyboards/ramonimbao/wete/v2/keymaps/via/keymap.c new file mode 100644 index 000000000..d9d5f8e8d --- /dev/null +++ b/keyboards/ramonimbao/wete/v2/keymaps/via/keymap.c | |||
@@ -0,0 +1,135 @@ | |||
1 | /* Copyright 2021 Ramon Imbao | ||
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 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
18 | [0] = LAYOUT_all( | ||
19 | KC_PSCR, KC_SLCK, KC_PAUS, KC_INS, KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL, | ||
20 | KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_NO, KC_HOME, | ||
21 | KC_P7, KC_P8, KC_P9, KC_PPLS, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_END, | ||
22 | KC_P4, KC_P5, KC_P6, KC_NO, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGUP, | ||
23 | KC_P1, KC_P2, KC_P3, KC_PENT, KC_LSFT, KC_NO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN, | ||
24 | KC_P0, KC_NO, KC_PDOT, KC_NO, KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_NO, KC_LEFT, KC_DOWN, KC_RGHT, | ||
25 | KC_VOLD, KC_VOLU | ||
26 | ), | ||
27 | [1] = LAYOUT_all( | ||
28 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
29 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
30 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
31 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
32 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
33 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
34 | _______, _______ | ||
35 | ), | ||
36 | }; | ||
37 | |||
38 | keyevent_t encoder_ccw = { | ||
39 | .key = (keypos_t){.row = 12, .col = 0}, | ||
40 | .pressed = false | ||
41 | }; | ||
42 | |||
43 | keyevent_t encoder_cw = { | ||
44 | .key = (keypos_t){.row = 12, .col = 1}, | ||
45 | .pressed = false | ||
46 | }; | ||
47 | |||
48 | void matrix_scan_user(void) { | ||
49 | if (IS_PRESSED(encoder_ccw)) { | ||
50 | encoder_ccw.pressed = false; | ||
51 | encoder_ccw.time = (timer_read() | 1); | ||
52 | action_exec(encoder_ccw); | ||
53 | } | ||
54 | |||
55 | if (IS_PRESSED(encoder_cw)) { | ||
56 | encoder_cw.pressed = false; | ||
57 | encoder_cw.time = (timer_read() | 1); | ||
58 | action_exec(encoder_cw); | ||
59 | } | ||
60 | } | ||
61 | |||
62 | bool encoder_update_user(uint8_t index, bool clockwise) { | ||
63 | if (clockwise) { | ||
64 | encoder_cw.pressed = true; | ||
65 | encoder_cw.time = (timer_read() | 1); | ||
66 | action_exec(encoder_cw); | ||
67 | } else { | ||
68 | encoder_ccw.pressed = true; | ||
69 | encoder_ccw.time = (timer_read() | 1); | ||
70 | action_exec(encoder_ccw); | ||
71 | } | ||
72 | return true; | ||
73 | } | ||
74 | |||
75 | #ifdef RGBLIGHT_ENABLE | ||
76 | // Can probably still be optimized, but I like it as is for clarity | ||
77 | const rgblight_segment_t PROGMEM ll_none[] = RGBLIGHT_LAYER_SEGMENTS( | ||
78 | {0,1, HSV_OFF}, | ||
79 | {1,1, HSV_OFF}, | ||
80 | {2,1, HSV_OFF} | ||
81 | ); | ||
82 | const rgblight_segment_t PROGMEM ll_nl[] = RGBLIGHT_LAYER_SEGMENTS( | ||
83 | {1,1, HSV_OFF}, | ||
84 | {0,1, HSV_OFF} | ||
85 | ); | ||
86 | const rgblight_segment_t PROGMEM ll_cl[] = RGBLIGHT_LAYER_SEGMENTS( | ||
87 | {2,1, HSV_OFF}, | ||
88 | {0,1, HSV_OFF} | ||
89 | ); | ||
90 | const rgblight_segment_t PROGMEM ll_clnl[] = RGBLIGHT_LAYER_SEGMENTS( | ||
91 | {0,1, HSV_OFF} | ||
92 | ); | ||
93 | const rgblight_segment_t PROGMEM ll_sl[] = RGBLIGHT_LAYER_SEGMENTS( | ||
94 | {2,1, HSV_OFF}, | ||
95 | {1,1, HSV_OFF} | ||
96 | ); | ||
97 | const rgblight_segment_t PROGMEM ll_slnl[] = RGBLIGHT_LAYER_SEGMENTS( | ||
98 | {1,1, HSV_OFF} | ||
99 | ); | ||
100 | const rgblight_segment_t PROGMEM ll_slcl[] = RGBLIGHT_LAYER_SEGMENTS( | ||
101 | {2,1, HSV_OFF} | ||
102 | ); | ||
103 | |||
104 | const rgblight_segment_t* const PROGMEM rgb_layers[] = RGBLIGHT_LAYERS_LIST( | ||
105 | ll_none, | ||
106 | ll_nl, | ||
107 | ll_cl, | ||
108 | ll_clnl, | ||
109 | ll_sl, | ||
110 | ll_slnl, | ||
111 | ll_slcl | ||
112 | ); | ||
113 | |||
114 | void keyboard_post_init_kb(void) { | ||
115 | rgblight_layers = rgb_layers; | ||
116 | |||
117 | keyboard_post_init_user(); | ||
118 | } | ||
119 | |||
120 | bool led_update_kb (led_t led_state) { | ||
121 | bool res = led_update_user(led_state); | ||
122 | |||
123 | if (res) { | ||
124 | uint8_t lock_bits = led_state.scroll_lock << 2 | led_state.caps_lock << 1 | led_state.num_lock; | ||
125 | for (uint8_t i=0; i<7; i++) { | ||
126 | rgblight_set_layer_state(i, false); | ||
127 | } | ||
128 | if (lock_bits < 7) { | ||
129 | rgblight_set_layer_state(lock_bits, true); | ||
130 | } | ||
131 | } | ||
132 | |||
133 | return res; | ||
134 | } | ||
135 | #endif | ||
diff --git a/keyboards/ramonimbao/wete/v2/keymaps/via/rules.mk b/keyboards/ramonimbao/wete/v2/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/ramonimbao/wete/v2/keymaps/via/rules.mk | |||
@@ -0,0 +1 @@ | |||
VIA_ENABLE = yes | |||
diff --git a/keyboards/ramonimbao/wete/v2/readme.md b/keyboards/ramonimbao/wete/v2/readme.md new file mode 100644 index 000000000..e8c59a8c0 --- /dev/null +++ b/keyboards/ramonimbao/wete/v2/readme.md | |||
@@ -0,0 +1,26 @@ | |||
1 | # Wete R2 | ||
2 | |||
3 |  | ||
4 | |||
5 | Round two of the Wete keyboard. Now uses the ATmega32u4, adds an encoder, and switches the indicator LEDs to RGB. | ||
6 | |||
7 | * Keyboard Maintainer: [Ramon Imbao](https://github.com/ramonimbao) | ||
8 | * Hardware Supported: ATmega32u4 | ||
9 | |||
10 | Make example for this keyboard (after setting up your build environment): | ||
11 | |||
12 | make ramonimbao/wete/rev2:default | ||
13 | |||
14 | Flashing example for this keyboard: | ||
15 | |||
16 | make ramonimbao/wete/rev2:default:flash | ||
17 | |||
18 | 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). | ||
19 | |||
20 | ## Bootloader | ||
21 | |||
22 | Enter the bootloader in 3 ways: | ||
23 | |||
24 | * **Bootmagic reset**: Hold down the upper left key and plug in the keyboard | ||
25 | * **Physical reset button**: Briefly press the reset button on the back of the PCB. | ||
26 | * **Keycode in layout**: Press the key mapped to `RESET` if it is available | ||
diff --git a/keyboards/ramonimbao/wete/v2/rules.mk b/keyboards/ramonimbao/wete/v2/rules.mk new file mode 100644 index 000000000..4e95f3442 --- /dev/null +++ b/keyboards/ramonimbao/wete/v2/rules.mk | |||
@@ -0,0 +1,22 @@ | |||
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 | # 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 | AUDIO_ENABLE = no # Audio output | ||
22 | ENCODER_ENABLE = yes # Rotary encoder | ||
diff --git a/keyboards/ramonimbao/wete/v2/v2.c b/keyboards/ramonimbao/wete/v2/v2.c new file mode 100644 index 000000000..de5f32e3c --- /dev/null +++ b/keyboards/ramonimbao/wete/v2/v2.c | |||
@@ -0,0 +1,17 @@ | |||
1 | /* Copyright 2021 Ramon Imbao | ||
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 "v2.h" | ||
diff --git a/keyboards/ramonimbao/wete/v2/v2.h b/keyboards/ramonimbao/wete/v2/v2.h new file mode 100644 index 000000000..75c9430c0 --- /dev/null +++ b/keyboards/ramonimbao/wete/v2/v2.h | |||
@@ -0,0 +1,110 @@ | |||
1 | /* Copyright 2021 Ramon Imbao | ||
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 | void adjust_leds(void); | ||
22 | |||
23 | #define ___ KC_NO | ||
24 | |||
25 | |||
26 | // Regular numpad layout | ||
27 | // Full sized backspace | ||
28 | // Full left shift | ||
29 | // ANSI enter | ||
30 | // 1.25 | 1.25 | 1.25 | 6.25 | 1.25 | 1.25 bottom row | ||
31 | #define LAYOUT_ansi( \ | ||
32 | k00, k10, k01, k11, k02, k12, k03, k13, k04, k05, k15, k06, k16, k17, k08, k18, k09, k19, \ | ||
33 | k20, k30, k21, k31, k22, k32, k23, k33, k24, k34, k25, k35, k26, k36, k27, k37, k28, k38, k39, \ | ||
34 | k40, k50, k41, k51, k42, k52, k43, k53, k44, k54, k45, k55, k46, k56, k47, k57, k48, k49, k59, \ | ||
35 | k60, k70, k61, k62, k72, k63, k73, k64, k74, k65, k75, k66, k76, k67, k77, k78, k79, \ | ||
36 | k80, k90, k81, k91, k82, k83, k93, k84, k94, k85, k95, k86, k96, k87, k97, k98, k89, k99, \ | ||
37 | ka0, ka1, ka2, kb2, ka3, ka5, ka7, kb7, kb8, ka9, kb9 \ | ||
38 | ) { \ | ||
39 | { k00, k01, k02, k03, k04, k05, k06, ___, k08, k09 }, \ | ||
40 | { k10, k11, k12, k13, ___, k15, k16, k17, k18, k19 }, \ | ||
41 | { k20, k21, k22, k23, k24, k25, k26, k27, k28, ___ }, \ | ||
42 | { k30 ,k31, k32, k33, k34, k35, k36, k37, k38, k39 }, \ | ||
43 | { k40, k41, k42, k43, k44, k45, k46, k47, k48, k49 }, \ | ||
44 | { k50, k51, k52, k53, k54, k55, k56, k57, ___, k59 }, \ | ||
45 | { k60, k61, k62, k63, k64, k65, k66, k67, ___, ___ }, \ | ||
46 | { k70, ___, k72, k73, k74, k75, k76, k77, k78, k79 }, \ | ||
47 | { k80, k81, k82, k83, k84, k85, k86, k87, ___, k89 }, \ | ||
48 | { k90, k91, ___, k93, k94, k95, k96, k97, k98, k99 }, \ | ||
49 | { ka0, ___, ka2, ka3, ___, ka5, ___, ka7, ___, ka9 }, \ | ||
50 | { ___, ___, kb2, ___, ___, ___, ___, kb7, kb8, kb9 }, \ | ||
51 | { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
52 | } | ||
53 | |||
54 | // Regular numpad layout | ||
55 | // Full sized backspace | ||
56 | // Split left shift | ||
57 | // ISO enter | ||
58 | // 1.25 | 1.25 | 1.25 | 6.25 | 1.25 | 1.25 bottom row | ||
59 | #define LAYOUT_iso( \ | ||
60 | k00, k10, k01, k11, k02, k12, k03, k13, k04, k05, k15, k06, k16, k17, k08, k18, k09, k19, \ | ||
61 | k20, k30, k21, k31, k22, k32, k23, k33, k24, k34, k25, k35, k26, k36, k27, k37, k28, k38, k39, \ | ||
62 | k40, k50, k41, k51, k42, k52, k43, k53, k44, k54, k45, k55, k46, k56, k47, k57, k48, k59, \ | ||
63 | k60, k70, k61, k62, k72, k63, k73, k64, k74, k65, k75, k66, k76, k67, k77, k78, k49, k79, \ | ||
64 | k80, k90, k81, k91, k82, k92, k83, k93, k84, k94, k85, k95, k86, k96, k87, k97, k98, k89, k99, \ | ||
65 | ka0, ka1, ka2, kb2, ka3, ka5, ka7, kb7, kb8, ka9, kb9 \ | ||
66 | ) { \ | ||
67 | { k00, k01, k02, k03, k04, k05, k06, ___, k08, k09 }, \ | ||
68 | { k10, k11, k12, k13, ___, k15, k16, k17, k18, k19 }, \ | ||
69 | { k20, k21, k22, k23, k24, k25, k26, k27, k28, ___ }, \ | ||
70 | { k30 ,k31, k32, k33, k34, k35, k36, k37, k38, k39 }, \ | ||
71 | { k40, k41, k42, k43, k44, k45, k46, k47, k48, k49 }, \ | ||
72 | { k50, k51, k52, k53, k54, k55, k56, k57, ___, k59 }, \ | ||
73 | { k60, k61, k62, k63, k64, k65, k66, k67, ___, ___ }, \ | ||
74 | { k70, ___, k72, k73, k74, k75, k76, k77, k78, k79 }, \ | ||
75 | { k80, k81, k82, k83, k84, k85, k86, k87, ___, k89 }, \ | ||
76 | { k90, k91, k92, k93, k94, k95, k96, k97, k98, k99 }, \ | ||
77 | { ka0, ___, ka2, ka3, ___, ka5, ___, ka7, ___, ka9 }, \ | ||
78 | { ___, ___, kb2, ___, ___, ___, ___, kb7, kb8, kb9 }, \ | ||
79 | { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
80 | } | ||
81 | |||
82 | // Macro numpad layout | ||
83 | // Split backspace | ||
84 | // Split left shift | ||
85 | // ANSI enter | ||
86 | // 1.25 | 1.25 | 1.25 | 6.25 | 1 | 1 | 1 bottom row | ||
87 | // Encoder keymap exposed for VIA | ||
88 | #define LAYOUT_all( \ | ||
89 | k00, k10, k01, k11, k02, k12, k03, k13, k04, k05, k15, k06, k16, k17, k08, k18, k09, k19, \ | ||
90 | k20, k30, k21, k31, k22, k32, k23, k33, k24, k34, k25, k35, k26, k36, k27, k37, k28, k38,k29, k39, \ | ||
91 | k40, k50, k41, k51, k42, k52, k43, k53, k44, k54, k45, k55, k46, k56, k47, k57, k48, k49, k59, \ | ||
92 | k60, k70, k61, k71, k62, k72, k63, k73, k64, k74, k65, k75, k66, k76, k67, k77, k78, k79, \ | ||
93 | k80, k90, k81, k91, k82, k92, k83, k93, k84, k94, k85, k95, k86, k96, k87, k97, k98, k89, k99, \ | ||
94 | ka0, kb0, ka1, kb1, ka2, kb2, ka3, ka5, ka7, kb7, ka8, kb8, ka9, kb9, \ | ||
95 | re0, re1 \ | ||
96 | ) { \ | ||
97 | { k00, k01, k02, k03, k04, k05, k06, ___, k08, k09 }, \ | ||
98 | { k10, k11, k12, k13, ___, k15, k16, k17, k18, k19 }, \ | ||
99 | { k20, k21, k22, k23, k24, k25, k26, k27, k28, ___ }, \ | ||
100 | { k30 ,k31, k32, k33, k34, k35, k36, k37, k38, k39 }, \ | ||
101 | { k40, k41, k42, k43, k44, k45, k46, k47, k48, k49 }, \ | ||
102 | { k50, k51, k52, k53, k54, k55, k56, k57, ___, k59 }, \ | ||
103 | { k60, k61, k62, k63, k64, k65, k66, k67, ___, ___ }, \ | ||
104 | { k70, k71, k72, k73, k74, k75, k76, k77, k78, k79 }, \ | ||
105 | { k80, k81, k82, k83, k84, k85, k86, k87, ___, k89 }, \ | ||
106 | { k90, k91, k92, k93, k94, k95, k96, k97, k98, k99 }, \ | ||
107 | { ka0, ka1, ka2, ka3, ___, ka5, ___, ka7, ka8, ka9 }, \ | ||
108 | { kb0, kb1, kb2, ___, ___, ___, ___, kb7, kb8, kb9 }, \ | ||
109 | { re0, re1, ___, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
110 | } | ||