aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFarhan Rob <73175556+farhandsome@users.noreply.github.com>2021-12-01 11:38:07 -0600
committerGitHub <noreply@github.com>2021-12-01 09:38:07 -0800
commitb6d9a8026be574d13eff2cb6a06978c02a56c567 (patch)
tree1886967edb746b3a3bce1b4f0efb9efba172c0f6
parentc12b99767921366c9fa8a1d6ba53872a26aa6127 (diff)
downloadqmk_firmware-b6d9a8026be574d13eff2cb6a06978c02a56c567.tar.gz
qmk_firmware-b6d9a8026be574d13eff2cb6a06978c02a56c567.zip
[Keyboard] Han60 QMK / VIA Support (#15332)
Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Joel Challis <git@zvecr.com> Co-authored-by: Ryan <fauxpark@gmail.com>
-rw-r--r--keyboards/han60/config.h152
-rw-r--r--keyboards/han60/han60.c17
-rw-r--r--keyboards/han60/han60.h103
-rw-r--r--keyboards/han60/info.json341
-rw-r--r--keyboards/han60/keymaps/default/keymap.c38
-rw-r--r--keyboards/han60/keymaps/default/readme.md1
-rw-r--r--keyboards/han60/keymaps/via/keymap.c54
-rw-r--r--keyboards/han60/keymaps/via/rules.mk1
-rw-r--r--keyboards/han60/readme.md27
-rw-r--r--keyboards/han60/rules.mk18
10 files changed, 752 insertions, 0 deletions
diff --git a/keyboards/han60/config.h b/keyboards/han60/config.h
new file mode 100644
index 000000000..a695cd92a
--- /dev/null
+++ b/keyboards/han60/config.h
@@ -0,0 +1,152 @@
1/*
2Copyright 2021 farhandsome
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 0x4842
24#define PRODUCT_ID 0xFB60
25#define DEVICE_VER 0x0001
26#define MANUFACTURER HanBoards
27#define PRODUCT han60
28
29/* key matrix size */
30#define MATRIX_ROWS 5
31#define MATRIX_COLS 14
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 { D5, D3, D2, D1, D0}
44#define MATRIX_COL_PINS { D4, D6, D7, B4, B5, B6, C6, C7, F7, F6, F5, F4, F1, F0}
45#define UNUSED_PINS
46
47/* COL2ROW, ROW2COL */
48#define DIODE_DIRECTION COL2ROW
49
50/*
51 * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
52 */
53#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
54
55//#define LED_NUM_LOCK_PIN B0
56//#define LED_CAPS_LOCK_PIN B1
57//#define LED_SCROLL_LOCK_PIN B2
58//#define LED_COMPOSE_PIN B3
59//#define LED_KANA_PIN B4
60
61//#define BACKLIGHT_PIN B7
62//#define BACKLIGHT_LEVELS 3
63//#define BACKLIGHT_BREATHING
64
65//#define RGB_DI_PIN E2
66//#ifdef RGB_DI_PIN
67//# define RGBLED_NUM 16
68//# define RGBLIGHT_HUE_STEP 8
69//# define RGBLIGHT_SAT_STEP 8
70//# define RGBLIGHT_VAL_STEP 8
71//# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
72//# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
73/*== all animations enable ==*/
74//# define RGBLIGHT_ANIMATIONS
75/*== or choose animations ==*/
76//# define RGBLIGHT_EFFECT_BREATHING
77//# define RGBLIGHT_EFFECT_RAINBOW_MOOD
78//# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
79//# define RGBLIGHT_EFFECT_SNAKE
80//# define RGBLIGHT_EFFECT_KNIGHT
81//# define RGBLIGHT_EFFECT_CHRISTMAS
82//# define RGBLIGHT_EFFECT_STATIC_GRADIENT
83//# define RGBLIGHT_EFFECT_RGB_TEST
84//# define RGBLIGHT_EFFECT_ALTERNATING
85/*== customize breathing effect ==*/
86/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
87//# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
88/*==== use exp() and sin() ====*/
89//# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
90//# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
91//#endif
92
93/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
94#define DEBOUNCE 5
95
96/* define if matrix has ghost (lacks anti-ghosting diodes) */
97//#define MATRIX_HAS_GHOST
98
99/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
100#define LOCKING_SUPPORT_ENABLE
101/* Locking resynchronize hack */
102#define LOCKING_RESYNC_ENABLE
103
104/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
105 * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
106 */
107//#define GRAVE_ESC_CTRL_OVERRIDE
108
109/*
110 * Force NKRO
111 *
112 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
113 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
114 * makefile for this to work.)
115 *
116 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
117 * until the next keyboard reset.
118 *
119 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
120 * fully operational during normal computer usage.
121 *
122 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
123 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
124 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
125 * power-up.
126 *
127 */
128//#define FORCE_NKRO
129
130/*
131 * Feature disable options
132 * These options are also useful to firmware size reduction.
133 */
134
135/* disable debug print */
136//#define NO_DEBUG
137
138/* disable print */
139//#define NO_PRINT
140
141/* disable action features */
142//#define NO_ACTION_LAYER
143//#define NO_ACTION_TAPPING
144//#define NO_ACTION_ONESHOT
145
146/* disable these deprecated features by default */
147#define NO_ACTION_MACRO
148#define NO_ACTION_FUNCTION
149
150/* Bootmagic Lite key configuration */
151//#define BOOTMAGIC_LITE_ROW 0
152//#define BOOTMAGIC_LITE_COLUMN 0
diff --git a/keyboards/han60/han60.c b/keyboards/han60/han60.c
new file mode 100644
index 000000000..4ba3a50e7
--- /dev/null
+++ b/keyboards/han60/han60.c
@@ -0,0 +1,17 @@
1/* Copyright 2021 farhandsome
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 "han60.h"
diff --git a/keyboards/han60/han60.h b/keyboards/han60/han60.h
new file mode 100644
index 000000000..f6e25c23b
--- /dev/null
+++ b/keyboards/han60/han60.h
@@ -0,0 +1,103 @@
1/* Copyright 2021 farhandsome
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
30#define XXX KC_NO
31
32
33#define LAYOUT_all( \
34 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K2D, \
35 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, \
36 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, \
37 K30, K40, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3D, K4D, \
38 K41, K42, K43, K44, K47, K48, K49, K4A, K4B, K4C \
39) { \
40 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D }, \
41 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D }, \
42 { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D }, \
43 { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, XXX, K3D }, \
44 { K40, K41, K42, K43, K44, XXX, XXX, K47, K48, K49, K4A, K4B, K4C, K4D } \
45}
46
47#define LAYOUT_tsangan( \
48 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, \
49 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, \
50 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, \
51 K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, \
52 K41, K42, K43, K44, K47, K49, K4B \
53) { \
54 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D }, \
55 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D }, \
56 { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D }, \
57 { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, XXX, XXX }, \
58 { XXX, K41, K42, K43, K44, XXX, XXX, K47, XXX, K49, XXX, K4B, XXX, XXX } \
59}
60
61#define LAYOUT_tsangan_arrowkeys( \
62 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, \
63 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, \
64 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, \
65 K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3B, K3D, K4D, \
66 K41, K42, K43, K44, K47, K48, K4A, K4C \
67) { \
68 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D }, \
69 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D }, \
70 { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D }, \
71 { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, XXX, K3B, XXX, K3D }, \
72 { XXX, K41, K42, K43, K44, XXX, XXX, K47, K48, XXX, K4A, XXX, K4C, K4D } \
73}
74
75#define LAYOUT_tsangan_iso( \
76 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, \
77 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K2C, \
78 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K1D, \
79 K30, K40, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, \
80 K41, K42, K43, K44, K47, K49, K4B \
81) { \
82 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D }, \
83 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D }, \
84 { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D }, \
85 { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, XXX, XXX }, \
86 { K40, K41, K42, K43, K44, XXX, XXX, K47, XXX, K49, XXX, K4B, XXX, XXX } \
87}
88
89#define LAYOUT_tsangan_iso_arrowkeys( \
90 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, \
91 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K2C, \
92 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K1D, \
93 K30, K40, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3B, K3D, K4D, \
94 K41, K42, K43, K44, K47, K48, K4A, K4C \
95) { \
96 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D }, \
97 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D }, \
98 { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D }, \
99 { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, XXX, K3B, XXX, K3D }, \
100 { K40, K41, K42, K43, K44, XXX, XXX, K47, K48, XXX, K4A, XXX, K4C, K4D } \
101}
102
103
diff --git a/keyboards/han60/info.json b/keyboards/han60/info.json
new file mode 100644
index 000000000..474b20de0
--- /dev/null
+++ b/keyboards/han60/info.json
@@ -0,0 +1,341 @@
1{
2 "keyboard_name": "han60",
3 "maintainer": "qmk",
4 "url": "hanboards.com",
5 "layouts": {
6 "LAYOUT_all": {
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, "y": 0 },
13 { "x": 5, "y": 0 },
14 { "x": 6, "y": 0 },
15 { "x": 7, "y": 0 },
16 { "x": 8, "y": 0 },
17 { "x": 9, "y": 0 },
18 { "x": 10, "y": 0 },
19 { "x": 11, "y": 0 },
20 { "x": 12, "y": 0 },
21 { "x": 13, "y": 0 },
22 { "x": 14, "y": 0 },
23 { "w": 1.5, "x": 0, "y": 1 },
24 { "x": 1.5, "y": 1 },
25 { "x": 2.5, "y": 1 },
26 { "x": 3.5, "y": 1 },
27 { "x": 4.5, "y": 1 },
28 { "x": 5.5, "y": 1 },
29 { "x": 6.5, "y": 1 },
30 { "x": 7.5, "y": 1 },
31 { "x": 8.5, "y": 1 },
32 { "x": 9.5, "y": 1 },
33 { "x": 10.5, "y": 1 },
34 { "x": 11.5, "y": 1 },
35 { "x": 12.5, "y": 1 },
36 { "w": 1.5, "x": 13.5, "y": 1 },
37 { "w": 1.75, "x": 0, "y": 2 },
38 { "x": 1.75, "y": 2 },
39 { "x": 2.75, "y": 2 },
40 { "x": 3.75, "y": 2 },
41 { "x": 4.75, "y": 2 },
42 { "x": 5.75, "y": 2 },
43 { "x": 6.75, "y": 2 },
44 { "x": 7.75, "y": 2 },
45 { "x": 8.75, "y": 2 },
46 { "x": 9.75, "y": 2 },
47 { "x": 10.75, "y": 2 },
48 { "x": 11.75, "y": 2 },
49 { "w": 2.25, "x": 12.75, "y": 2 },
50 { "w": 1.25, "x": 0, "y": 3 },
51 { "x": 1.25, "y": 3 },
52 { "x": 2.25, "y": 3 },
53 { "x": 3.25, "y": 3 },
54 { "x": 4.25, "y": 3 },
55 { "x": 5.25, "y": 3 },
56 { "x": 6.25, "y": 3 },
57 { "x": 7.25, "y": 3 },
58 { "x": 8.25, "y": 3 },
59 { "x": 9.25, "y": 3 },
60 { "x": 10.25, "y": 3 },
61 { "x": 11.25, "y": 3 },
62 { "w": 1.75, "x": 11.25, "y": 3 },
63 { "x": 13, "y": 3 },
64 { "x": 14, "y": 3 },
65 { "w": 1.5, "x": 0, "y": 4 },
66 { "x": 1.5, "y": 4 },
67 { "w": 1.5, "x": 2.5, "y": 4 },
68 { "w": 7, "x": 4, "y": 4 },
69 { "x": 11, "y": 4 },
70 { "x": 12, "y": 4 },
71 { "x": 12.5, "y": 4 },
72 { "x": 13, "y": 4 },
73 { "w": 1.5, "x": 13.5, "y": 4 },
74 { "x": 14, "y": 4 }
75 ]
76 },
77 "LAYOUT_tsangan": {
78 "layout": [
79 { "x": 0, "y": 0 },
80 { "x": 1, "y": 0 },
81 { "x": 2, "y": 0 },
82 { "x": 3, "y": 0 },
83 { "x": 4, "y": 0 },
84 { "x": 5, "y": 0 },
85 { "x": 6, "y": 0 },
86 { "x": 7, "y": 0 },
87 { "x": 8, "y": 0 },
88 { "x": 9, "y": 0 },
89 { "x": 10, "y": 0 },
90 { "x": 11, "y": 0 },
91 { "x": 12, "y": 0 },
92 { "w": 2, "x": 13, "y": 0 },
93 { "w": 1.5, "x": 0, "y": 1 },
94 { "x": 1.5, "y": 1 },
95 { "x": 2.5, "y": 1 },
96 { "x": 3.5, "y": 1 },
97 { "x": 4.5, "y": 1 },
98 { "x": 5.5, "y": 1 },
99 { "x": 6.5, "y": 1 },
100 { "x": 7.5, "y": 1 },
101 { "x": 8.5, "y": 1 },
102 { "x": 9.5, "y": 1 },
103 { "x": 10.5, "y": 1 },
104 { "x": 11.5, "y": 1 },
105 { "x": 12.5, "y": 1 },
106 { "w": 1.5, "x": 13.5, "y": 1 },
107 { "w": 1.75, "x": 0, "y": 2 },
108 { "x": 1.75, "y": 2 },
109 { "x": 2.75, "y": 2 },
110 { "x": 3.75, "y": 2 },
111 { "x": 4.75, "y": 2 },
112 { "x": 5.75, "y": 2 },
113 { "x": 6.75, "y": 2 },
114 { "x": 7.75, "y": 2 },
115 { "x": 8.75, "y": 2 },
116 { "x": 9.75, "y": 2 },
117 { "x": 10.75, "y": 2 },
118 { "x": 11.75, "y": 2 },
119 { "w": 2.25, "x": 12.75, "y": 2 },
120 { "w": 2.25, "x": 0, "y": 3 },
121 { "x": 2.25, "y": 3 },
122 { "x": 3.25, "y": 3 },
123 { "x": 4.25, "y": 3 },
124 { "x": 5.25, "y": 3 },
125 { "x": 6.25, "y": 3 },
126 { "x": 7.25, "y": 3 },
127 { "x": 8.25, "y": 3 },
128 { "x": 9.25, "y": 3 },
129 { "x": 10.25, "y": 3 },
130 { "x": 11.25, "y": 3 },
131 { "w": 2.75, "x": 12.25, "y": 3 },
132 { "w": 1.5, "x": 0, "y": 4 },
133 { "x": 1.5, "y": 4 },
134 { "w": 1.5, "x": 2.5, "y": 4 },
135 { "w": 7, "x": 4, "y": 4 },
136 { "w": 1.5, "x": 11, "y": 4 },
137 { "x": 12.5, "y": 4 },
138 { "w": 1.5, "x": 13.5, "y": 4 }
139 ]
140 },
141 "LAYOUT_tsangan_arrowkeys": {
142 "layout": [
143 { "x": 0, "y": 0 },
144 { "x": 1, "y": 0 },
145 { "x": 2, "y": 0 },
146 { "x": 3, "y": 0 },
147 { "x": 4, "y": 0 },
148 { "x": 5, "y": 0 },
149 { "x": 6, "y": 0 },
150 { "x": 7, "y": 0 },
151 { "x": 8, "y": 0 },
152 { "x": 9, "y": 0 },
153 { "x": 10, "y": 0 },
154 { "x": 11, "y": 0 },
155 { "x": 12, "y": 0 },
156 { "w": 2, "x": 13, "y": 0 },
157 { "w": 1.5, "x": 0, "y": 1 },
158 { "x": 1.5, "y": 1 },
159 { "x": 2.5, "y": 1 },
160 { "x": 3.5, "y": 1 },
161 { "x": 4.5, "y": 1 },
162 { "x": 5.5, "y": 1 },
163 { "x": 6.5, "y": 1 },
164 { "x": 7.5, "y": 1 },
165 { "x": 8.5, "y": 1 },
166 { "x": 9.5, "y": 1 },
167 { "x": 10.5, "y": 1 },
168 { "x": 11.5, "y": 1 },
169 { "x": 12.5, "y": 1 },
170 { "w": 1.5, "x": 13.5, "y": 1 },
171 { "w": 1.75, "x": 0, "y": 2 },
172 { "x": 1.75, "y": 2 },
173 { "x": 2.75, "y": 2 },
174 { "x": 3.75, "y": 2 },
175 { "x": 4.75, "y": 2 },
176 { "x": 5.75, "y": 2 },
177 { "x": 6.75, "y": 2 },
178 { "x": 7.75, "y": 2 },
179 { "x": 8.75, "y": 2 },
180 { "x": 9.75, "y": 2 },
181 { "x": 10.75, "y": 2 },
182 { "x": 11.75, "y": 2 },
183 { "w": 2.25, "x": 12.75, "y": 2 },
184 { "w": 2.25, "x": 0, "y": 3 },
185 { "x": 2.25, "y": 3 },
186 { "x": 3.25, "y": 3 },
187 { "x": 4.25, "y": 3 },
188 { "x": 5.25, "y": 3 },
189 { "x": 6.25, "y": 3 },
190 { "x": 7.25, "y": 3 },
191 { "x": 8.25, "y": 3 },
192 { "x": 9.25, "y": 3 },
193 { "x": 10.25, "y": 3 },
194 { "w": 1.75, "x": 11.25, "y": 3 },
195 { "x": 13, "y": 3 },
196 { "x": 14, "y": 3 },
197 { "w": 1.5, "x": 0, "y": 4 },
198 { "x": 1.5, "y": 4 },
199 { "w": 1.5, "x": 2.5, "y": 4 },
200 { "w": 7, "x": 4, "y": 4 },
201 { "x": 11, "y": 4 },
202 { "x": 12, "y": 4 },
203 { "x": 13, "y": 4 },
204 { "x": 14, "y": 4 }
205 ]
206 },
207 "LAYOUT_tsangan_iso": {
208 "layout": [
209 { "x": 0, "y": 0 },
210 { "x": 1, "y": 0 },
211 { "x": 2, "y": 0 },
212 { "x": 3, "y": 0 },
213 { "x": 4, "y": 0 },
214 { "x": 5, "y": 0 },
215 { "x": 6, "y": 0 },
216 { "x": 7, "y": 0 },
217 { "x": 8, "y": 0 },
218 { "x": 9, "y": 0 },
219 { "x": 10, "y": 0 },
220 { "x": 11, "y": 0 },
221 { "x": 12, "y": 0 },
222 { "w": 2, "x": 13, "y": 0 },
223 { "w": 1.5, "x": 0, "y": 1 },
224 { "x": 1.5, "y": 1 },
225 { "x": 2.5, "y": 1 },
226 { "x": 3.5, "y": 1 },
227 { "x": 4.5, "y": 1 },
228 { "x": 5.5, "y": 1 },
229 { "x": 6.5, "y": 1 },
230 { "x": 7.5, "y": 1 },
231 { "x": 8.5, "y": 1 },
232 { "x": 9.5, "y": 1 },
233 { "x": 10.5, "y": 1 },
234 { "x": 11.5, "y": 1 },
235 { "x": 12.5, "y": 1 },
236 { "h": 2, "w": 1.25, "x": 13.75, "y": 1 },
237 { "w": 1.75, "x": 0, "y": 2 },
238 { "x": 1.75, "y": 2 },
239 { "x": 2.75, "y": 2 },
240 { "x": 3.75, "y": 2 },
241 { "x": 4.75, "y": 2 },
242 { "x": 5.75, "y": 2 },
243 { "x": 6.75, "y": 2 },
244 { "x": 7.75, "y": 2 },
245 { "x": 8.75, "y": 2 },
246 { "x": 9.75, "y": 2 },
247 { "x": 10.75, "y": 2 },
248 { "x": 11.75, "y": 2 },
249 { "x": 12.75, "y": 2 },
250 { "w": 1.25, "x": 0, "y": 3 },
251 { "x": 1.25, "y": 3 },
252 { "x": 2.25, "y": 3 },
253 { "x": 3.25, "y": 3 },
254 { "x": 4.25, "y": 3 },
255 { "x": 5.25, "y": 3 },
256 { "x": 6.25, "y": 3 },
257 { "x": 7.25, "y": 3 },
258 { "x": 8.25, "y": 3 },
259 { "x": 9.25, "y": 3 },
260 { "x": 10.25, "y": 3 },
261 { "x": 11.25, "y": 3 },
262 { "w": 2.75, "x": 12.25, "y": 3 },
263 { "w": 1.5, "x": 0, "y": 4 },
264 { "x": 1.5, "y": 4 },
265 { "w": 1.5, "x": 2.5, "y": 4 },
266 { "w": 7, "x": 4, "y": 4 },
267 { "w": 1.5, "x": 11, "y": 4 },
268 { "x": 12.5, "y": 4 },
269 { "w": 1.5, "x": 13.5, "y": 4 }
270 ]
271 },
272 "LAYOUT_tsangan_iso_arrowkeys": {
273 "layout": [
274 { "x": 0, "y": 0 },
275 { "x": 1, "y": 0 },
276 { "x": 2, "y": 0 },
277 { "x": 3, "y": 0 },
278 { "x": 4, "y": 0 },
279 { "x": 5, "y": 0 },
280 { "x": 6, "y": 0 },
281 { "x": 7, "y": 0 },
282 { "x": 8, "y": 0 },
283 { "x": 9, "y": 0 },
284 { "x": 10, "y": 0 },
285 { "x": 11, "y": 0 },
286 { "x": 12, "y": 0 },
287 { "w": 2, "x": 13, "y": 0 },
288 { "w": 1.5, "x": 0, "y": 1 },
289 { "x": 1.5, "y": 1 },
290 { "x": 2.5, "y": 1 },
291 { "x": 3.5, "y": 1 },
292 { "x": 4.5, "y": 1 },
293 { "x": 5.5, "y": 1 },
294 { "x": 6.5, "y": 1 },
295 { "x": 7.5, "y": 1 },
296 { "x": 8.5, "y": 1 },
297 { "x": 9.5, "y": 1 },
298 { "x": 10.5, "y": 1 },
299 { "x": 11.5, "y": 1 },
300 { "x": 12.5, "y": 1 },
301 { "h": 2, "w": 1.25, "x": 13.75, "y": 1 },
302 { "w": 1.75, "x": 0, "y": 2 },
303 { "x": 1.75, "y": 2 },
304 { "x": 2.75, "y": 2 },
305 { "x": 3.75, "y": 2 },
306 { "x": 4.75, "y": 2 },
307 { "x": 5.75, "y": 2 },
308 { "x": 6.75, "y": 2 },
309 { "x": 7.75, "y": 2 },
310 { "x": 8.75, "y": 2 },
311 { "x": 9.75, "y": 2 },
312 { "x": 10.75, "y": 2 },
313 { "x": 11.75, "y": 2 },
314 { "x": 12.75, "y": 2 },
315 { "w": 1.25, "x": 0, "y": 3 },
316 { "x": 1.25, "y": 3 },
317 { "x": 2.25, "y": 3 },
318 { "x": 3.25, "y": 3 },
319 { "x": 4.25, "y": 3 },
320 { "x": 5.25, "y": 3 },
321 { "x": 6.25, "y": 3 },
322 { "x": 7.25, "y": 3 },
323 { "x": 8.25, "y": 3 },
324 { "x": 9.25, "y": 3 },
325 { "x": 10.25, "y": 3 },
326 { "w": 1.75, "x": 11.25, "y": 3 },
327 { "x": 13, "y": 3 },
328 { "x": 14, "y": 3 },
329 { "w": 1.5, "x": 0, "y": 4 },
330 { "x": 1.5, "y": 4 },
331 { "w": 1.5, "x": 2.5, "y": 4 },
332 { "w": 7, "x": 4, "y": 4 },
333 { "x": 11, "y": 4 },
334 { "x": 12, "y": 4 },
335 { "x": 13, "y": 4 },
336 { "x": 14, "y": 4 }
337 ]
338 }
339 }
340}
341
diff --git a/keyboards/han60/keymaps/default/keymap.c b/keyboards/han60/keymaps/default/keymap.c
new file mode 100644
index 000000000..ef75bc8c8
--- /dev/null
+++ b/keyboards/han60/keymaps/default/keymap.c
@@ -0,0 +1,38 @@
1/* Copyright 2021 farhandsome
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
18const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
19 /* BASE */
20 [0] = LAYOUT_all(
21 KC_GESC, 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_DEL,
22 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,
23 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,
24 KC_LSFT, KC_GRAVE, 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_SLSH,
25 KC_LCTL, KC_LCMD, KC_LALT, KC_SPACE, KC_RALT, KC_LEFT, MO(1), KC_DOWN, KC_RCTL, KC_RGHT
26 ),
27 /* FN */
28 [1] = LAYOUT_all(
29 RESET, 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, KC_TRNS,
30 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
31 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS,
32 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_TRNS, KC_TRNS,
33 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, MO(1), KC_TRNS, KC_TRNS, KC_TRNS
34 )
35};
36
37
38
diff --git a/keyboards/han60/keymaps/default/readme.md b/keyboards/han60/keymaps/default/readme.md
new file mode 100644
index 000000000..02e9fab47
--- /dev/null
+++ b/keyboards/han60/keymaps/default/readme.md
@@ -0,0 +1 @@
# The default keymap for han60
diff --git a/keyboards/han60/keymaps/via/keymap.c b/keyboards/han60/keymaps/via/keymap.c
new file mode 100644
index 000000000..1e3aee8fd
--- /dev/null
+++ b/keyboards/han60/keymaps/via/keymap.c
@@ -0,0 +1,54 @@
1/* Copyright 2021 farhandsome
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
18const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
19 /* LAYER 1 */
20 [0] = LAYOUT_all(
21 KC_GESC, 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_DEL,
22 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,
23 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,
24 KC_LSFT, KC_GRAVE, 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_SLSH,
25 KC_LCTL, KC_LCMD, KC_LALT, KC_SPACE, KC_RALT, KC_LEFT, MO(1), KC_DOWN, KC_RCTL, KC_RGHT
26 ),
27 /* LAYER 2 */
28 [1] = LAYOUT_all(
29 RESET, 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, KC_TRNS,
30 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
31 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS,
32 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_TRNS, KC_TRNS,
33 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, MO(1), KC_TRNS, KC_TRNS, KC_TRNS
34 ),
35 /* LAYER 3 */
36 [2] = LAYOUT_all(
37 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
38 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
39 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
40 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
41 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
42 ),
43 /* LAYER 4 */
44 [3] = LAYOUT_all(
45 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
46 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
47 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
48 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
49 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
50 )
51};
52
53
54
diff --git a/keyboards/han60/keymaps/via/rules.mk b/keyboards/han60/keymaps/via/rules.mk
new file mode 100644
index 000000000..1e5b99807
--- /dev/null
+++ b/keyboards/han60/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes
diff --git a/keyboards/han60/readme.md b/keyboards/han60/readme.md
new file mode 100644
index 000000000..d2f0fb981
--- /dev/null
+++ b/keyboards/han60/readme.md
@@ -0,0 +1,27 @@
1# han60
2
3![han60](https://i.imgur.com/nfiSGNOh.jpg)
4
5The Han60 - a 60% gasket mounted keyboard with multiple layout capabilities.
6
7* Keyboard Maintainer: [farhandsome](https://github.com/farhandsome)
8* Hardware Supported: Han60 PCB (ATmega32U4)
9* Hardware Availability: [Han Boards](hanboards.com)
10
11Make example for this keyboard (after setting up your build environment):
12
13 make han60:default
14
15Flashing example for this keyboard:
16
17 make han60:default:flash
18
19See 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).
20
21## Bootloader
22
23Enter the bootloader in 3 ways:
24
25* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
26* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
27* **Keycode in layout**: Press the key mapped to `RESET` if it is available
diff --git a/keyboards/han60/rules.mk b/keyboards/han60/rules.mk
new file mode 100644
index 000000000..5c6747fe3
--- /dev/null
+++ b/keyboards/han60/rules.mk
@@ -0,0 +1,18 @@
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 = yes # Enable Bootmagic Lite
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15NKRO_ENABLE = no # USB Nkey Rollover
16BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
17RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
18AUDIO_ENABLE = no # Audio output