aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/katana60/config.h193
-rw-r--r--keyboards/katana60/katana60.c43
-rw-r--r--keyboards/katana60/katana60.h40
-rw-r--r--keyboards/katana60/keymaps/colemak/config.h24
-rw-r--r--keyboards/katana60/keymaps/colemak/keymap.c106
-rw-r--r--keyboards/katana60/keymaps/colemak/readme.md5
-rw-r--r--keyboards/katana60/keymaps/default/config.h24
-rw-r--r--keyboards/katana60/keymaps/default/keymap.c106
-rw-r--r--keyboards/katana60/keymaps/default/readme.md7
-rw-r--r--keyboards/katana60/keymaps/rominronin/config.h24
-rw-r--r--keyboards/katana60/keymaps/rominronin/keymap.c106
-rw-r--r--keyboards/katana60/keymaps/rominronin/readme.md5
-rw-r--r--keyboards/katana60/readme.md17
-rw-r--r--keyboards/katana60/rules.mk68
14 files changed, 768 insertions, 0 deletions
diff --git a/keyboards/katana60/config.h b/keyboards/katana60/config.h
new file mode 100644
index 000000000..169cffb42
--- /dev/null
+++ b/keyboards/katana60/config.h
@@ -0,0 +1,193 @@
1/*
2Copyright 2017 Baris Tosun
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#ifndef CONFIG_H
19#define CONFIG_H
20
21#include "config_common.h"
22
23/* USB Device descriptor parameter */
24#define VENDOR_ID 0xFEED
25#define PRODUCT_ID 0x6060
26#define DEVICE_VER 0x0001
27#define MANUFACTURER RominRonin CandyKeys
28#define PRODUCT Katana60
29#define DESCRIPTION QMK keyboard firmware for Katana60
30
31/* key matrix size */
32#define MATRIX_ROWS 5
33#define MATRIX_COLS 15
34
35/*
36 * Keyboard Matrix Assignments
37 *
38 * Change this to how you wired your keyboard
39 * COLS: AVR pins used for columns, left to right
40 * ROWS: AVR pins used for rows, top to bottom
41 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
42 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
43 *
44*/
45#define MATRIX_ROW_PINS { F5, F6, F4, F1, D0 }
46#define MATRIX_COL_PINS { B7, B3, B2, B1, B0, C7, D1, D2, C6, B6, B5, B4, D4, D6, D7 }
47#define UNUSED_PINS
48
49/* COL2ROW, ROW2COL, or CUSTOM_MATRIX */
50#define DIODE_DIRECTION ROW2COL
51
52// #define BACKLIGHT_PIN B7
53// #define BACKLIGHT_BREATHING
54// #define BACKLIGHT_LEVELS 3
55
56
57/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
58#define DEBOUNCING_DELAY 5
59
60/* define if matrix has ghost (lacks anti-ghosting diodes) */
61//#define MATRIX_HAS_GHOST
62
63/* number of backlight levels */
64
65/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
66#define LOCKING_SUPPORT_ENABLE
67/* Locking resynchronize hack */
68#define LOCKING_RESYNC_ENABLE
69
70/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
71 * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
72 */
73// #define GRAVE_ESC_CTRL_OVERRIDE
74
75/*
76 * Force NKRO
77 *
78 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
79 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
80 * makefile for this to work.)
81 *
82 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
83 * until the next keyboard reset.
84 *
85 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
86 * fully operational during normal computer usage.
87 *
88 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
89 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
90 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
91 * power-up.
92 *
93 */
94//#define FORCE_NKRO
95
96/*
97 * Magic Key Options
98 *
99 * Magic keys are hotkey commands that allow control over firmware functions of
100 * the keyboard. They are best used in combination with the HID Listen program,
101 * found here: https://www.pjrc.com/teensy/hid_listen.html
102 *
103 * The options below allow the magic key functionality to be changed. This is
104 * useful if your keyboard/keypad is missing keys and you want magic key support.
105 *
106 */
107
108/* key combination for magic key command */
109#define IS_COMMAND() ( \
110 keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
111)
112
113#define TAPPING_TERM 200
114#define PREVENT_STUCK_MODIFIERS
115
116/* control how magic key switches layers */
117//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
118//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
119//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
120
121/* override magic key keymap */
122//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
123//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
124//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
125//#define MAGIC_KEY_HELP1 H
126//#define MAGIC_KEY_HELP2 SLASH
127//#define MAGIC_KEY_DEBUG D
128//#define MAGIC_KEY_DEBUG_MATRIX X
129//#define MAGIC_KEY_DEBUG_KBD K
130//#define MAGIC_KEY_DEBUG_MOUSE M
131//#define MAGIC_KEY_VERSION V
132//#define MAGIC_KEY_STATUS S
133//#define MAGIC_KEY_CONSOLE C
134//#define MAGIC_KEY_LAYER0_ALT1 ESC
135//#define MAGIC_KEY_LAYER0_ALT2 GRAVE
136//#define MAGIC_KEY_LAYER0 0
137//#define MAGIC_KEY_LAYER1 1
138//#define MAGIC_KEY_LAYER2 2
139//#define MAGIC_KEY_LAYER3 3
140//#define MAGIC_KEY_LAYER4 4
141//#define MAGIC_KEY_LAYER5 5
142//#define MAGIC_KEY_LAYER6 6
143//#define MAGIC_KEY_LAYER7 7
144//#define MAGIC_KEY_LAYER8 8
145//#define MAGIC_KEY_LAYER9 9
146//#define MAGIC_KEY_BOOTLOADER PAUSE
147//#define MAGIC_KEY_LOCK CAPS
148//#define MAGIC_KEY_EEPROM E
149//#define MAGIC_KEY_NKRO N
150//#define MAGIC_KEY_SLEEP_LED Z
151
152/*
153 * Feature disable options
154 * These options are also useful to firmware size reduction.
155 */
156
157/* disable debug print */
158//#define NO_DEBUG
159
160/* disable print */
161//#define NO_PRINT
162
163/* disable action features */
164//#define NO_ACTION_LAYER
165//#define NO_ACTION_TAPPING
166//#define NO_ACTION_ONESHOT
167//#define NO_ACTION_MACRO
168//#define NO_ACTION_FUNCTION
169
170/*
171 * MIDI options
172 */
173
174/* Prevent use of disabled MIDI features in the keymap */
175//#define MIDI_ENABLE_STRICT 1
176
177/* enable basic MIDI features:
178 - MIDI notes can be sent when in Music mode is on
179*/
180//#define MIDI_BASIC
181
182/* enable advanced MIDI features:
183 - MIDI notes can be added to the keymap
184 - Octave shift and transpose
185 - Virtual sustain, portamento, and modulation wheel
186 - etc.
187*/
188//#define MIDI_ADVANCED
189
190/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
191//#define MIDI_TONE_KEYCODE_OCTAVES 1
192
193#endif
diff --git a/keyboards/katana60/katana60.c b/keyboards/katana60/katana60.c
new file mode 100644
index 000000000..e8d4fef19
--- /dev/null
+++ b/keyboards/katana60/katana60.c
@@ -0,0 +1,43 @@
1/* Copyright 2017 Baris Tosun
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 "katana60.h"
17
18void matrix_init_kb(void) {
19 // put your keyboard start-up code here
20 // runs once when the firmware starts up
21
22 matrix_init_user();
23}
24
25void matrix_scan_kb(void) {
26 // put your looping keyboard code here
27 // runs every cycle (a lot)
28
29 matrix_scan_user();
30}
31
32bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
33 // put your per-action keyboard code here
34 // runs for every action, just before processing by the firmware
35
36 return process_record_user(keycode, record);
37}
38
39void led_set_kb(uint8_t usb_led) {
40 // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
41
42 led_set_user(usb_led);
43}
diff --git a/keyboards/katana60/katana60.h b/keyboards/katana60/katana60.h
new file mode 100644
index 000000000..2cd4a2f1f
--- /dev/null
+++ b/keyboards/katana60/katana60.h
@@ -0,0 +1,40 @@
1/* Copyright 2017 Baris Tosun
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#ifndef KATANA60_H
17#define KATANA60_H
18
19#include "quantum.h"
20
21// This a shortcut to help you visually see your layout.
22// The following is an example using the Planck MIT layout
23// The first section contains all of the arguments
24// The second converts the arguments into a two-dimensional array
25#define KEYMAP( \
26 k40, k41, k42, k43, k44, k45, k46, k47, k48, k49, k4a, k4b, k4c, k4d, k4e, \
27 k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d, \
28 k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2d, \
29 k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d, k1e, \
30 k00, k01, k02, k03, k04, k05, k06, k09, k0a, k0b, k0c, k0d \
31) \
32{ \
33 { k00, k01, k02, k03, k04, k05, k06, KC_NO, KC_NO, k09, k0a, k0b, k0c, k0d, KC_NO }, \
34 { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d, k1e }, \
35 { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2d, KC_NO }, \
36 { k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d, KC_NO }, \
37 { k40, k41, k42, k43, k44, k45, k46, k47, k48, k49, k4a, k4b, k4c, k4d, k4e }, \
38}
39
40#endif
diff --git a/keyboards/katana60/keymaps/colemak/config.h b/keyboards/katana60/keymaps/colemak/config.h
new file mode 100644
index 000000000..08c51f6cb
--- /dev/null
+++ b/keyboards/katana60/keymaps/colemak/config.h
@@ -0,0 +1,24 @@
1/* Copyright 2017 Baris Tosun
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#ifndef CONFIG_USER_H
18#define CONFIG_USER_H
19
20#include "../../config.h"
21
22// place overrides here
23
24#endif
diff --git a/keyboards/katana60/keymaps/colemak/keymap.c b/keyboards/katana60/keymaps/colemak/keymap.c
new file mode 100644
index 000000000..87b416440
--- /dev/null
+++ b/keyboards/katana60/keymaps/colemak/keymap.c
@@ -0,0 +1,106 @@
1/* Copyright 2017 Baris Tosun
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 "katana60.h"
17
18#define _______ KC_TRNS
19#define XXXXXXX KC_NO
20
21// Windows based definitions.
22#define K_SPCFN LT(SYMB, KC_SPACE) // Tap for space, hold for symbols layer
23#define K_PRVWD LCTL(KC_LEFT) // Previous word
24#define K_NXTWD LCTL(KC_RIGHT) // Next word
25#define K_LSTRT KC_HOME // Start of line
26#define K_LEND KC_END // End of line
27#define UNDO LCTL(KC_Z) // UNDO
28#define CUT LCTL(KC_X) // CUT
29#define COPY LCTL(KC_C) // COPY
30#define PASTE LCTL(KC_V) // PASTE
31
32
33#define BASE 0 // Default
34#define NUMB 1 // Numbers
35#define SYMB 2 // Symbols
36#define CURS 3 // Text Editing
37
38const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
39[BASE] = KEYMAP( /* Base */
40 KC_ESC, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, DF(1), KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_PLUS,
41 KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_LBRC, KC_RBRC, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC,
42 MO(3), KC_A, KC_R, KC_S, KC_T, KC_D, KC_HOME, KC_PGUP, KC_H, KC_N, KC_E, KC_I, KC_O, KC_ENT,
43 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_END, KC_DEL, KC_PGDN, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
44 MO(2), KC_LCTL, KC_LGUI, KC_LALT, KC_BSPC, KC_ENT, K_SPCFN, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT,MO(2)
45 ),
46[NUMB] = KEYMAP(
47 _______, _______, _______, _______, _______, _______, _______, DF(0), KC_PSLS, KC_PAST, KC_PMNS, _______, _______, _______, _______,
48 _______, _______, _______, KC_MS_U, _______, _______, _______, KC_7, KC_8, KC_9, KC_PPLS, _______, _______, _______,
49 _______, KC_BTN2, KC_MS_L, KC_MS_D, KC_MS_R, _______, _______, KC_4, KC_5, KC_6, KC_PPLS, _______, _______, _______,
50 _______, _______, KC_ACL0, KC_ACL1, KC_ACL2, _______, _______, _______, KC_1, KC_2, KC_3, KC_PENT, _______, _______, _______,
51 _______, _______, _______, _______, KC_BTN1, _______, KC_P0, KC_PDOT, KC_PENT, _______, _______, _______
52 ),
53[SYMB] = KEYMAP(
54 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,
55 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, _______, _______, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,
56 _______, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_VOLD, KC_VOLU, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______,
57 _______, KC_PLUS, KC_MINS, KC_EQL, KC_LCBR, KC_RCBR, KC_MPRV, KC_MPLY, KC_MNXT, KC_LBRC, KC_RBRC, KC_SCLN, KC_COLN, KC_BSLS, _______,
58 _______, _______, _______, _______, KC_DEL, _______, _______, _______, _______, _______, _______, _______
59 ),
60[CURS] = KEYMAP(
61 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
62 _______, _______, KC_WH_U, _______, _______, _______, _______, _______, _______, K_PRVWD, KC_UP, K_NXTWD, _______, _______,
63 _______, KC_LCTL, KC_WH_D, KC_LSFT, _______, _______, _______, _______, KC_BSPC, KC_LEFT, KC_DOWN, KC_RIGHT,KC_DEL, _______,
64 _______, UNDO, CUT, COPY, PASTE, _______, _______, _______, _______, _______, K_LSTRT, _______, K_LEND, _______, _______,
65 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
66 )
67
68};
69
70
71const uint16_t PROGMEM fn_actions[] = {
72 [0] = ACTION_LAYER_TAP_KEY(CURS, KC_BSPC),
73 [1] = ACTION_LAYER_TAP_KEY(SYMB, KC_SPACE),
74};
75
76const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
77{
78 // MACRODOWN only works in this function
79 switch(id) {
80 case 0:
81 if (record->event.pressed) {
82 register_code(KC_RSFT);
83 } else {
84 unregister_code(KC_RSFT);
85 }
86 break;
87 }
88 return MACRO_NONE;
89};
90
91
92void matrix_init_user(void) {
93
94}
95
96void matrix_scan_user(void) {
97
98}
99
100bool process_record_user(uint16_t keycode, keyrecord_t *record) {
101 return true;
102}
103
104void led_set_user(uint8_t usb_led) {
105
106}
diff --git a/keyboards/katana60/keymaps/colemak/readme.md b/keyboards/katana60/keymaps/colemak/readme.md
new file mode 100644
index 000000000..4446bffca
--- /dev/null
+++ b/keyboards/katana60/keymaps/colemak/readme.md
@@ -0,0 +1,5 @@
1# The colemak keymap for katana60
2
3Same as the default layout, but with default Colemal layout.
4
5# TODO: references to extend layer and symbol layers \ No newline at end of file
diff --git a/keyboards/katana60/keymaps/default/config.h b/keyboards/katana60/keymaps/default/config.h
new file mode 100644
index 000000000..08c51f6cb
--- /dev/null
+++ b/keyboards/katana60/keymaps/default/config.h
@@ -0,0 +1,24 @@
1/* Copyright 2017 Baris Tosun
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#ifndef CONFIG_USER_H
18#define CONFIG_USER_H
19
20#include "../../config.h"
21
22// place overrides here
23
24#endif
diff --git a/keyboards/katana60/keymaps/default/keymap.c b/keyboards/katana60/keymaps/default/keymap.c
new file mode 100644
index 000000000..8dc9da00e
--- /dev/null
+++ b/keyboards/katana60/keymaps/default/keymap.c
@@ -0,0 +1,106 @@
1/* Copyright 2017 Baris Tosun
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 "katana60.h"
17
18#define _______ KC_TRNS
19#define XXXXXXX KC_NO
20
21// Windows based definitions.
22#define K_SPCFN LT(SYMB, KC_SPACE) // Tap for space, hold for symbols layer
23#define K_PRVWD LCTL(KC_LEFT) // Previous word
24#define K_NXTWD LCTL(KC_RIGHT) // Next word
25#define K_LSTRT KC_HOME // Start of line
26#define K_LEND KC_END // End of line
27#define UNDO LCTL(KC_Z) // UNDO
28#define CUT LCTL(KC_X) // CUT
29#define COPY LCTL(KC_C) // COPY
30#define PASTE LCTL(KC_V) // PASTE
31
32
33#define BASE 0 // Default
34#define NUMB 1 // Numbers
35#define SYMB 2 // Symbols
36#define CURS 3 // Text Editing
37
38const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
39[BASE] = KEYMAP( /* Base */
40 KC_ESC, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, DF(1), KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_PLUS,
41 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_LBRC, KC_RBRC, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
42 MO(3), KC_A, KC_S, KC_D, KC_F, KC_G, KC_HOME, KC_PGUP, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT,
43 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_END, KC_DEL, KC_PGDN, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
44 MO(2), KC_LCTL, KC_LGUI, KC_LALT, KC_BSPC, KC_ENT, K_SPCFN, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT,MO(2)
45 ),
46[NUMB] = KEYMAP(
47 _______, _______, _______, _______, _______, _______, _______, DF(0), KC_PSLS, KC_PAST, KC_PMNS, _______, _______, _______, _______,
48 _______, _______, _______, KC_MS_U, _______, _______, _______, KC_7, KC_8, KC_9, KC_PPLS, _______, _______, _______,
49 _______, KC_BTN2, KC_MS_L, KC_MS_D, KC_MS_R, _______, _______, KC_4, KC_5, KC_6, KC_PPLS, _______, _______, _______,
50 _______, _______, KC_ACL0, KC_ACL1, KC_ACL2, _______, _______, _______, KC_1, KC_2, KC_3, KC_PENT, _______, _______, _______,
51 _______, _______, _______, _______, KC_BTN1, _______, KC_P0, KC_PDOT, KC_PENT, _______, _______, _______
52 ),
53[SYMB] = KEYMAP(
54 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,
55 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, _______, _______, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,
56 _______, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_VOLD, KC_VOLU, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______,
57 _______, KC_PLUS, KC_MINS, KC_EQL, KC_LCBR, KC_RCBR, KC_MPRV, KC_MPLY, KC_MNXT, KC_LBRC, KC_RBRC, KC_SCLN, KC_COLN, KC_BSLS, _______,
58 _______, _______, _______, _______, KC_DEL, _______, _______, _______, _______, _______, _______, _______
59 ),
60[CURS] = KEYMAP(
61 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
62 _______, _______, KC_WH_U, _______, _______, _______, _______, _______, _______, K_PRVWD, KC_UP, K_NXTWD, _______, _______,
63 _______, KC_LCTL, KC_WH_D, KC_LSFT, _______, _______, _______, _______, KC_BSPC, KC_LEFT, KC_DOWN, KC_RIGHT,KC_DEL, _______,
64 _______, UNDO, CUT, COPY, PASTE, _______, _______, _______, _______, _______, K_LSTRT, _______, K_LEND, _______, _______,
65 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
66 )
67
68};
69
70
71const uint16_t PROGMEM fn_actions[] = {
72 [0] = ACTION_LAYER_TAP_KEY(CURS, KC_BSPC),
73 [1] = ACTION_LAYER_TAP_KEY(SYMB, KC_SPACE),
74};
75
76const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
77{
78 // MACRODOWN only works in this function
79 switch(id) {
80 case 0:
81 if (record->event.pressed) {
82 register_code(KC_RSFT);
83 } else {
84 unregister_code(KC_RSFT);
85 }
86 break;
87 }
88 return MACRO_NONE;
89};
90
91
92void matrix_init_user(void) {
93
94}
95
96void matrix_scan_user(void) {
97
98}
99
100bool process_record_user(uint16_t keycode, keyrecord_t *record) {
101 return true;
102}
103
104void led_set_user(uint8_t usb_led) {
105
106}
diff --git a/keyboards/katana60/keymaps/default/readme.md b/keyboards/katana60/keymaps/default/readme.md
new file mode 100644
index 000000000..a75a38586
--- /dev/null
+++ b/keyboards/katana60/keymaps/default/readme.md
@@ -0,0 +1,7 @@
1# The default keymap for katana60
2
3This layout takes my own personal layout (in development at the Colemak forum) and remaps the keys and shortcuts for Windows (I'm a MacOS user).
4The testing was comducted on my Windows gaming PC, though it was not exhaustive, all the many layers and useful navigation shortcuts worked fine.
5
6# TODO: references to extend layer and symbol layers
7# TODO: more information \ No newline at end of file
diff --git a/keyboards/katana60/keymaps/rominronin/config.h b/keyboards/katana60/keymaps/rominronin/config.h
new file mode 100644
index 000000000..08c51f6cb
--- /dev/null
+++ b/keyboards/katana60/keymaps/rominronin/config.h
@@ -0,0 +1,24 @@
1/* Copyright 2017 Baris Tosun
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#ifndef CONFIG_USER_H
18#define CONFIG_USER_H
19
20#include "../../config.h"
21
22// place overrides here
23
24#endif
diff --git a/keyboards/katana60/keymaps/rominronin/keymap.c b/keyboards/katana60/keymaps/rominronin/keymap.c
new file mode 100644
index 000000000..992293611
--- /dev/null
+++ b/keyboards/katana60/keymaps/rominronin/keymap.c
@@ -0,0 +1,106 @@
1/* Copyright 2017 Baris Tosun
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 "katana60.h"
17
18#define _______ KC_TRNS
19#define XXXXXXX KC_NO
20
21// MacOS based definitions.
22#define K_SPCFN LT(SYMB, KC_SPACE) // Tap for space, hold for symbols layer
23#define K_PRVWD LALT(KC_LEFT) // Previous word
24#define K_NXTWD LALT(KC_RIGHT) // Next word
25#define K_LSTRT LGUI(KC_LEFT) // Start of line
26#define K_LEND LGUI(KC_RIGHT) // End of line
27#define UNDO LGUI(KC_Z) // UNDO
28#define CUT LGUI(KC_X) // CUT
29#define COPY LGUI(KC_C) // COPY
30#define PASTE LGUI(KC_V) // PASTE
31
32
33#define BASE 0 // Default
34#define NUMB 1 // Numbers
35#define SYMB 2 // Symbols
36#define CURS 3 // Text Editing
37
38const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
39[BASE] = KEYMAP( /* Base */
40 KC_ESC, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, DF(1), KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_PLUS,
41 KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_B, KC_LBRC, KC_RBRC, KC_J, KC_L, KC_U, KC_Y, KC_QUOT, KC_BSPC,
42 MO(3), KC_A, KC_R, KC_S, KC_T, KC_G, KC_HOME, KC_PGUP, KC_M, KC_N, KC_E, KC_I, KC_O, KC_ENT,
43 KC_LSFT, KC_Z, KC_X, KC_C, KC_D, KC_V, KC_END, KC_DEL, KC_PGDN, KC_K, KC_H, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
44 MO(2), KC_LCTL, KC_LALT, KC_LGUI, KC_BSPC, KC_ENT, K_SPCFN, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT,MO(2)
45 ),
46[NUMB] = KEYMAP(
47 _______, _______, _______, _______, _______, _______, _______, DF(0), KC_PSLS, KC_PAST, KC_PMNS, _______, _______, _______, _______,
48 _______, _______, _______, KC_MS_U, _______, _______, _______, KC_7, KC_8, KC_9, KC_PPLS, _______, _______, _______,
49 _______, KC_BTN2, KC_MS_L, KC_MS_D, KC_MS_R, _______, _______, KC_4, KC_5, KC_6, KC_PPLS, _______, _______, _______,
50 _______, _______, KC_ACL0, KC_ACL1, KC_ACL2, _______, _______, _______, KC_1, KC_2, KC_3, KC_PENT, _______, _______, _______,
51 _______, _______, _______, _______, KC_BTN1, _______, KC_P0, KC_PDOT, KC_PENT, _______, _______, _______
52 ),
53[SYMB] = KEYMAP(
54 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,
55 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, _______, _______, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,
56 _______, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_VOLD, KC_VOLU, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______,
57 _______, KC_PLUS, KC_MINS, KC_EQL, KC_LCBR, KC_RCBR, KC_MPRV, KC_MPLY, KC_MNXT, KC_LBRC, KC_RBRC, KC_SCLN, KC_COLN, KC_BSLS, _______,
58 _______, _______, _______, _______, KC_DEL, _______, _______, _______, _______, _______, _______, _______
59 ),
60[CURS] = KEYMAP(
61 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
62 _______, _______, KC_WH_U, _______, _______, _______, _______, _______, _______, K_PRVWD, KC_UP, K_NXTWD, _______, _______,
63 _______, KC_LCTL, KC_WH_D, KC_LSFT, _______, _______, _______, _______, KC_BSPC, KC_LEFT, KC_DOWN, KC_RIGHT,KC_DEL, _______,
64 _______, UNDO, CUT, COPY, PASTE, _______, _______, _______, _______, _______, K_LSTRT, _______, K_LEND, _______, _______,
65 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
66 )
67
68};
69
70
71const uint16_t PROGMEM fn_actions[] = {
72 [0] = ACTION_LAYER_TAP_KEY(CURS, KC_BSPC),
73 [1] = ACTION_LAYER_TAP_KEY(SYMB, KC_SPACE),
74};
75
76const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
77{
78 // MACRODOWN only works in this function
79 switch(id) {
80 case 0:
81 if (record->event.pressed) {
82 register_code(KC_RSFT);
83 } else {
84 unregister_code(KC_RSFT);
85 }
86 break;
87 }
88 return MACRO_NONE;
89};
90
91
92void matrix_init_user(void) {
93
94}
95
96void matrix_scan_user(void) {
97
98}
99
100bool process_record_user(uint16_t keycode, keyrecord_t *record) {
101 return true;
102}
103
104void led_set_user(uint8_t usb_led) {
105
106}
diff --git a/keyboards/katana60/keymaps/rominronin/readme.md b/keyboards/katana60/keymaps/rominronin/readme.md
new file mode 100644
index 000000000..9647426f7
--- /dev/null
+++ b/keyboards/katana60/keymaps/rominronin/readme.md
@@ -0,0 +1,5 @@
1# RominRonin's keymap for katana60
2
3My own personal daily layout. OS keys are oriented for MacOS and the keys are in COLEMAK Mod-DH layout.
4
5# TODO: references to extend layer and symbol layers \ No newline at end of file
diff --git a/keyboards/katana60/readme.md b/keyboards/katana60/readme.md
new file mode 100644
index 000000000..918c9b997
--- /dev/null
+++ b/keyboards/katana60/readme.md
@@ -0,0 +1,17 @@
1# Katana60
2
3![Katana60](https://i.imgur.com/xVkODOu.jpg)
4
5A 60% keyboard with a symmetrical staggered layout, sold by CandyKeys.com.
6
7Keyboard Maintainer: [Baris Tosun](https://github.com/rominronin)
8Hardware Supported: Katana60 PCB v1, Teensy 2.0
9Hardware Availability: [CandyKeys.com](https://CandyKeys.com)
10
11Make example for this keyboard (after setting up your build environment):
12
13 make katana60:default
14
15See [build environment setup](https://docs.qmk.fm/build_environment_setup.html) then the [make instructions](https://docs.qmk.fm/make_instructions.html) for more information.
16
17There is also ongoing discussion for the extend layer, at the [Colemak Forum](https://forum.colemak.com/topic/2327-developing-an-extend-layer-for-the-katana60/) \ No newline at end of file
diff --git a/keyboards/katana60/rules.mk b/keyboards/katana60/rules.mk
new file mode 100644
index 000000000..a3571e8de
--- /dev/null
+++ b/keyboards/katana60/rules.mk
@@ -0,0 +1,68 @@
1# MCU name
2#MCU = at90usb1286
3MCU = atmega32u4
4
5# Processor frequency.
6# This will define a symbol, F_CPU, in all source code files equal to the
7# processor frequency in Hz. You can then use this symbol in your source code to
8# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
9# automatically to create a 32-bit value in your source code.
10#
11# This will be an integer division of F_USB below, as it is sourced by
12# F_USB after it has run through any CPU prescalers. Note that this value
13# does not *change* the processor frequency - it should merely be updated to
14# reflect the processor speed set externally so that the code can use accurate
15# software delays.
16F_CPU = 16000000
17
18
19#
20# LUFA specific
21#
22# Target architecture (see library "Board Types" documentation).
23ARCH = AVR8
24
25# Input clock frequency.
26# This will define a symbol, F_USB, in all source code files equal to the
27# input clock frequency (before any prescaling is performed) in Hz. This value may
28# differ from F_CPU if prescaling is used on the latter, and is required as the
29# raw input clock is fed directly to the PLL sections of the AVR for high speed
30# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
31# at the end, this will be done automatically to create a 32-bit value in your
32# source code.
33#
34# If no clock division is performed on the input clock inside the AVR (via the
35# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
36F_USB = $(F_CPU)
37
38# Interrupt driven control endpoint task(+60)
39OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
40
41
42# Boot Section Size in *bytes*
43# Teensy halfKay 512
44# Teensy++ halfKay 1024
45# Atmel DFU loader 4096
46# LUFA bootloader 4096
47# USBaspLoader 2048
48OPT_DEFS += -DBOOTLOADER_SIZE=512
49
50
51# Build Options
52# change yes to no to disable
53#
54BOOTMAGIC_ENABLE ?= no # Virtual DIP switch configuration(+1000)
55MOUSEKEY_ENABLE ?= yes # Mouse keys(+4700)
56EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450)
57CONSOLE_ENABLE ?= yes # Console for debug(+400)
58COMMAND_ENABLE ?= yes # Commands for debug and configuration
59# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
60SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend
61# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
62NKRO_ENABLE ?= no # USB Nkey Rollover
63BACKLIGHT_ENABLE ?= no # Enable keyboard backlight functionality on B7 by default
64MIDI_ENABLE ?= no # MIDI support (+2400 to 4200, depending on config)
65UNICODE_ENABLE ?= no # Unicode
66BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID
67AUDIO_ENABLE ?= no # Audio output on port C6
68FAUXCLICKY_ENABLE ?= no # Use buzzer to emulate clicky switches