aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Mitchell <mitch@threeweekhobby.com>2017-11-13 17:50:09 -0600
committerJack Humbert <jack.humb@gmail.com>2017-11-13 18:50:09 -0500
commit716ff76f5bf33bc78a834d996d812b4a2e0f7021 (patch)
treea236cc075fea9ef081af4fb48265540b7453ec84
parenteef94b0b40cc59aafdc2034d2a8fa91b917b3c28 (diff)
downloadqmk_firmware-716ff76f5bf33bc78a834d996d812b4a2e0f7021.tar.gz
qmk_firmware-716ff76f5bf33bc78a834d996d812b4a2e0f7021.zip
Add keyboard: ACR60 (#1999)
* base acr60 keyboard folder created * mitch acr60 keymap updates, documentation * latest keymap updates * slight modifications to layer switching
-rw-r--r--keyboards/acr60/acr60.c28
-rw-r--r--keyboards/acr60/acr60.h107
-rw-r--r--keyboards/acr60/config.h54
-rw-r--r--keyboards/acr60/keymaps/default/keymap.c69
-rw-r--r--keyboards/acr60/keymaps/mitch/keymap.c204
-rw-r--r--keyboards/acr60/readme.md15
-rw-r--r--keyboards/acr60/rules.mk56
7 files changed, 533 insertions, 0 deletions
diff --git a/keyboards/acr60/acr60.c b/keyboards/acr60/acr60.c
new file mode 100644
index 000000000..8a76020e5
--- /dev/null
+++ b/keyboards/acr60/acr60.c
@@ -0,0 +1,28 @@
1#include "acr60.h"
2#include "led.h"
3
4void matrix_init_kb(void) {
5 // Keyboard start-up code goes here
6 // Runs once when the firmware starts up
7 matrix_init_user();
8 led_init_ports();
9};
10
11void matrix_scan_kb(void) {
12 // Looping keyboard code goes here
13 // This runs every cycle (a lot)
14 matrix_scan_user();
15};
16
17void led_init_ports(void) {
18 // Set caps lock LED pin as output
19 DDRB |= (1 << 2);
20 // Default to off
21 PORTB |= (1 << 2);
22}
23
24void led_set_kb(uint8_t usb_led) {
25 // Code for caps lock LED as reported by the OS
26 // Set this per keymap, instead of globally
27 led_set_user(usb_led);
28}
diff --git a/keyboards/acr60/acr60.h b/keyboards/acr60/acr60.h
new file mode 100644
index 000000000..49defe00f
--- /dev/null
+++ b/keyboards/acr60/acr60.h
@@ -0,0 +1,107 @@
1#ifndef ARC60_H
2#define ARC60_H
3
4#include "quantum.h"
5
6#define KEYMAP( \
7 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, \
8 K100, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, \
9 K200, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, \
10 K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K313, K314, \
11 K400, K401, K403, K404, K406, K408, K410, K411, K412, K413, K414 \
12) { \
13 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014 }, \
14 { K100, KC_NO, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114 }, \
15 { K200, KC_NO, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, KC_NO }, \
16 { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, KC_NO, K313, K314 }, \
17 { K400, K401, KC_NO, K403, K404, KC_NO, K406, KC_NO, K408, KC_NO, K410, K411, K412, K413, K414 } \
18}
19
20#define KEYMAP_HHKB( \
21 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, \
22 K100, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, \
23 K200, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, \
24 K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K313, K314, \
25 K401, K403, K406, K411, K413 \
26) { \
27 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014 }, \
28 { K100, KC_NO, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114 }, \
29 { K200, KC_NO, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, KC_NO }, \
30 { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, KC_NO, K313, K314 }, \
31 { KC_NO, K401, KC_NO, K403, KC_NO, KC_NO, K406, KC_NO, KC_NO, KC_NO, KC_NO, K411, KC_NO, K413, KC_NO } \
32}
33
34#define KEYMAP_TRUE_HHKB( \
35 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, \
36 K100, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, \
37 K200, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, \
38 K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K313, K314, \
39 K401, K403, K406, K410, K411 \
40) { \
41 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014 }, \
42 { K100, KC_NO, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114 }, \
43 { K200, KC_NO, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, KC_NO }, \
44 { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, KC_NO, K313, K314 }, \
45 { KC_NO, K401, KC_NO, K403, KC_NO, KC_NO, K406, KC_NO, KC_NO, KC_NO, K410, K411, KC_NO, KC_NO, KC_NO } \
46}
47
48#define KEYMAP_2_SHIFTS( \
49 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, \
50 K100, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, \
51 K200, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, \
52 K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314, \
53 K400, K401, K403, K404, K406, K408, K410, K411, K412, K413, K414 \
54) { \
55 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014 }, \
56 { K100, KC_NO, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114 }, \
57 { K200, KC_NO, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, KC_NO }, \
58 { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314 }, \
59 { K400, K401, KC_NO, K403, K404, KC_NO, K406, KC_NO, K408, KC_NO, K410, K411, K412, K413, K414 } \
60}
61
62#define KEYMAP_DIRECTIONAL( \
63 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, \
64 K100, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, \
65 K200, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, \
66 K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K312, K313, K314, \
67 K400, K401, K403, K404, K406, K408, K410, K411, K412, K413, K414 \
68) { \
69 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014 }, \
70 { K100, KC_NO, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114 }, \
71 { K200, KC_NO, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, KC_NO }, \
72 { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, KC_NO, K312, K313, K314 }, \
73 { K400, K401, KC_NO, K403, K404, KC_NO, K406, KC_NO, K408, KC_NO, K410, K411, K412, K413, K414 } \
74}
75
76/* Mitch's keymap, "MitchSplit":
77 * Standard 60% base, split right shift, 3-split space, standard modifier row.
78 * Split shift is 2.75u + 1.25u + 2.25u (total of 6.25u). Might not work with other orientations.
79 */
80/*
81 * ,-----------------------------------------------------------------------------------------.
82 * |K000 |K001 |K002 |K003 |K004 |K005 |K006 |K007 |K008 |K009 |K010 |K011 |K012 | K014 |
83 * |-----------------------------------------------------------------------------------------+
84 * | K100 |K102 |K103 |K104 |K105 |K106 |K107 |K108 |K109 |K110 |K111 |K112 |K113 | K114 |
85 * |-----------------------------------------------------------------------------------------+
86 * | K200 |K202 |K203 |K204 |K205 |K206 |K207 |K208 |K209 |K210 |K211 |K212 | K213 |
87 * |-----------------------------------------------------------------------------------------+
88 * | K300 |K302 |K303 |K304 |K305 |K306 |K307 |K308 |K309 |K310 |K311 | K313 |K314 |
89 * |-----------------------------------------------------------------------------------------+
90 * | K400 | K401 | K403 | K404 | K406 | K408 | K410 | K411 | K413 | K414 |
91 * `-----------------------------------------------------------------------------------------'
92 */
93#define MITCHSPLIT( \
94 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K014, \
95 K100, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, \
96 K200, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, \
97 K300, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K313, K314, \
98 K400, K401, K403, K404, K406, K408, K410, K411, K413, K414 \
99) { \
100 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, KC_NO, K014 }, \
101 { K100, KC_NO, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114 }, \
102 { K200, KC_NO, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, KC_NO }, \
103 { K300, KC_NO, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, KC_NO, K313, K314 }, \
104 { K400, K401, KC_NO, K403, K404, KC_NO, K406, KC_NO, K408, KC_NO, K410, K411, KC_NO, K413, K414 } \
105}
106
107#endif
diff --git a/keyboards/acr60/config.h b/keyboards/acr60/config.h
new file mode 100644
index 000000000..3d34dc975
--- /dev/null
+++ b/keyboards/acr60/config.h
@@ -0,0 +1,54 @@
1#ifndef CONFIG_H
2#define CONFIG_H
3
4#include "config_common.h"
5
6/* USB Device descriptor parameter */
7#define VENDOR_ID 0xFEED
8#define PRODUCT_ID 0x2260
9#define DEVICE_VER 0x0001
10#define MANUFACTURER MechKeysCa
11#define PRODUCT ACR60
12#define DESCRIPTION ACR60 Keyboard
13
14/* key matrix size */
15#define MATRIX_ROWS 5
16#define MATRIX_COLS 15
17
18/* key matrix pins */
19#define MATRIX_ROW_PINS { D0, D1, D2, D3, D5 }
20#define MATRIX_COL_PINS { F0, F1, E6, C7, C6, B7, D4, B1, B0, B5, B4, D7, D6, B3, F4 }
21#define UNUSED_PINS
22
23/* COL2ROW or ROW2COL */
24#define DIODE_DIRECTION COL2ROW
25
26/* number of backlight levels */
27#define BACKLIGHT_PIN B6
28#define BACKLIGHT_LEVELS 5
29
30/* Set 0 if debouncing isn't needed */
31#define DEBOUNCING_DELAY 5
32
33/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
34#define LOCKING_SUPPORT_ENABLE
35
36/* Locking resynchronize hack */
37#define LOCKING_RESYNC_ENABLE
38
39/* key combination for command */
40#define IS_COMMAND() ( \
41 keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
42)
43
44/* prevent stuck modifiers */
45#define PREVENT_STUCK_MODIFIERS
46
47#define RGB_DI_PIN E2
48#define RGBLIGHT_ANIMATIONS
49#define RGBLED_NUM 20
50#define RGBLIGHT_HUE_STEP 8
51#define RGBLIGHT_SAT_STEP 8
52#define RGBLIGHT_VAL_STEP 8
53
54#endif
diff --git a/keyboards/acr60/keymaps/default/keymap.c b/keyboards/acr60/keymaps/default/keymap.c
new file mode 100644
index 000000000..c9ea787dc
--- /dev/null
+++ b/keyboards/acr60/keymaps/default/keymap.c
@@ -0,0 +1,69 @@
1#include "acr60.h"
2
3#define MODS_CTRL_MASK (MOD_BIT(KC_LSHIFT)|MOD_BIT(KC_RSHIFT))
4
5const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
6
7/*
8 * Default keymap with standard 60% layout. Split space possible but entirely optional with this layout, as this
9 * layout covers all three split space keys as space keycodes. This also has alt right next to the space bar
10 * on both sides (Windows keyboard layout), no right-side system/GUI key, and momentary layer switching on
11 * the right modifiers into the 3rd (macro) and 2nd (function/sfx) layers, respectively. This also has the grave
12 * accent key set up on the 2nd layer, although on the first layer it includes grave key (tilde) when shift is held down,
13 * via the function actions code at the bottom.
14 */
15 KEYMAP(
16 F(0), 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_NO, KC_BSPC,
17 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,
18 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,
19 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_NO,
20 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, MO(2), KC_NO, MO(1), KC_RCTL),
21
22 KEYMAP(
23 KC_GRV, 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_TRNS, KC_DEL,
24 KC_TRNS, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET,
25 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,
26 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, BL_DEC, BL_TOGG, BL_INC, BL_STEP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
27 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
28
29 KEYMAP(
30 KC_TRNS, M(1), M(2), M(3), M(4), M(5), M(6), M(7), M(8), M(9), M(10), M(11), M(12), KC_TRNS, KC_TRNS,
31 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,
32 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,
33 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,
34 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
35};
36
37enum function_id {
38 SHIFT_ESC,
39};
40
41const uint16_t PROGMEM fn_actions[] = {
42 [0] = ACTION_FUNCTION(SHIFT_ESC),
43};
44
45void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) {
46 static uint8_t shift_esc_shift_mask;
47 switch (id) {
48 case SHIFT_ESC:
49 shift_esc_shift_mask = get_mods()&MODS_CTRL_MASK;
50 if (record->event.pressed) {
51 if (shift_esc_shift_mask) {
52 add_key(KC_GRV);
53 send_keyboard_report();
54 } else {
55 add_key(KC_ESC);
56 send_keyboard_report();
57 }
58 } else {
59 if (shift_esc_shift_mask) {
60 del_key(KC_GRV);
61 send_keyboard_report();
62 } else {
63 del_key(KC_ESC);
64 send_keyboard_report();
65 }
66 }
67 break;
68 }
69}
diff --git a/keyboards/acr60/keymaps/mitch/keymap.c b/keyboards/acr60/keymaps/mitch/keymap.c
new file mode 100644
index 000000000..566b27359
--- /dev/null
+++ b/keyboards/acr60/keymaps/mitch/keymap.c
@@ -0,0 +1,204 @@
1#include "acr60.h"
2
3#define _DFT 0
4#define _NGUI 1
5#define _FN 2
6#define _SFX 3
7
8// Fillers to make layering more clear
9#define ______ KC_TRNS
10#define bbbbbb KC_NO
11#define GUIOFF MAGIC_NO_GUI
12#define GUION MAGIC_UNNO_GUI
13
14#define MODS_CTRL_MASK (MOD_BIT(KC_LSHIFT)|MOD_BIT(KC_RSHIFT))
15
16/* TODO: create handy quick-ref list here for easy grokking of the actual shortcuts in place */
17
18/*
19 * This is Mitch's default ACR60 layout (also DZ60, on which the ACR60 is based). This is a
20 * Mac-oriented layout, as noted by the GUI keys immediately next to the space bar area of the
21 * lower modifier row. This uses the MITCHSPLIT keymap as defined in arc60.h, which uses a
22 * 3-split space bar and a split right shift. Otherwise it's a standard 60% layout (for now).
23 *
24 * For me, this is a great place to start getting used to a split key setup and still mostly
25 * sticking to a standard staggered 60% layout so my entire game isn't thrown off.
26 *
27 * Layers (0-based index because we're devs!):
28 *
29 * 0: Default QWERTY layer
30 * Note Fn and Alt keys on the right side of the spacebar, not sure if those are
31 * normal position but that's what I'm used to at this point. YMMV
32 *
33 * 1: Function Layer
34 * Function keys, Grave Key, Delete, Caps lock on the tab, media keys, and directional
35 * keys. Also you can hit the Alt key position to switch (and lock) into the 3rd layer
36 * if you really want to mess with your SFX for a bit.
37 *
38 * 2: Special Effects Layer
39 * RGB and backlight settings access. RGB cycle on "S" key position and if locked into
40 * the third layer you can hold shift to cycle backwards (see notes below). Bootloader
41 * access is on this layer. If layer locked, hit right Alt key to get back to layer 0.
42 *
43 * The keymap layer definitions below look pretty bad when soft-wrapped by your IDE / text editor.
44 * Be sure to disable wrapping to make things more readable with lines preserved.
45 */
46
47const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
48/* Layer 0
49 * ,-----------------------------------------------------------------------------------------.
50 * | Esc | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | Bksp |
51 * |-----------------------------------------------------------------------------------------+
52 * | Tab | Q | W | E | R | T | Y | U | I | O | P | [ | ] | \ |
53 * |-----------------------------------------------------------------------------------------+
54 * | Fn | A | S | D | F | G | H | J | K | L | ; | ' | Enter |
55 * |-----------------------------------------------------------------------------------------+
56 * | Shift | Z | X | C | V | B | N | M | , | . | / | RShift | FN |
57 * |-----------------------------------------------------------------------------------------+
58 * | LCtrl | LAlt | LGUI | Space | Space| Space | RGUI | Fn | RAlt | RCtrl |
59 * `-----------------------------------------------------------------------------------------'
60 */
61/* Qwerty gui/alt/space/alt/gui /
62 *
63 * Hit MO(_FN) and Alt in that order to lock into the _FN layer.
64 */
65 [_DFT] = MITCHSPLIT( /* Basic QWERTY */
66 F(0), 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, \
67 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, \
68 MO(_FN), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, \
69 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(_FN), \
70 KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_SPC, KC_SPC, KC_RGUI, MO(_FN), LT(_SFX, KC_RALT),KC_RCTL \
71 ),
72
73/* Gaming
74 * ,-----------------------------------------------------------------------------------------.
75 * | | | | | | | | | | | | | | | |
76 * |-----------------------------------------------------------------------------------------+
77 * | | | | | | | | | | | | | | |
78 * |-----------------------------------------------------------------------------------------+
79 * | | | | | | | | | | | | | |
80 * |-----------------------------------------------------------------------------------------+
81 * | | | | | | | | | | | | | |
82 * |-----------------------------------------------------------------------------------------+
83 * | | |BLOCKED| | | |BLOCKED| | | |
84 * `-----------------------------------------------------------------------------------------'
85 */
86/* I disable the GUI / System key for gaming, as usually that's windows and I hit that at the most
87 * inopportune moments. And games don't use the windows key. I'd use the Bootmagic MAGIC_NO_GUI and
88 * MAGIC_UNNO_GUI keycodes, but that actually disables it and has it persist beyond disconnection
89 * of the board. That's less convenient (and more confusing) for me than this approach, which is
90 * basically just blocking the GUI keys when this layer is active and not letting them flow through
91 * to the default layer.
92 */
93 /* Layer 2: "special effects": RGB lighting, backlighting, bootloader */
94 [_NGUI] = MITCHSPLIT(
95 ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, \
96 ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, \
97 ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, \
98 ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, \
99 ______, ______, bbbbbb, ______, ______, ______, bbbbbb, ______, ______, ______ \
100 ),
101
102/* Fn Layer / Layer 1
103 * ,-----------------------------------------------------------------------------------------.
104 * |KC_GRV| F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | Del |
105 * |-----------------------------------------------------------------------------------------+
106 * | CAPS | | | | | |Home | Pgup| Up | PgDn| End | | | |
107 * |-----------------------------------------------------------------------------------------+
108 * | | Vol-| Vol+| Mute| | | | Left| Down|Right| | | |
109 * |-----------------------------------------------------------------------------------------+
110 * | |Prev |Play |Next | | | | | | | | | |
111 * |-----------------------------------------------------------------------------------------+
112 * | | | | | | | | | LrSfx | |
113 * `-----------------------------------------------------------------------------------------'
114 */
115/*
116 * Pok3r-style layer switching on M and "," keys (_DFT and _NGUI layers, respectively). Note that
117 * these don't enable/disable those layers (i.e. latching keys), they actually switch to that layer.
118 * To go to the _NGUI layer, Fn+comma, to go to _DFT from _NGUI, hit Fn+M.
119 */
120 /* Layer 1: Functions, primary layer switching, media controls, directional */
121 [_FN] = MITCHSPLIT(
122 KC_GRV, 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, \
123 KC_CAPS, bbbbbb, bbbbbb, bbbbbb, bbbbbb, bbbbbb, KC_HOME, KC_PGUP, KC_UP , KC_PGDOWN,KC_END, bbbbbb, bbbbbb, bbbbbb, \
124 ______, KC_VOLD, KC_VOLU, KC_MUTE, bbbbbb, bbbbbb, bbbbbb, KC_LEFT, KC_DOWN, KC_RIGHT, bbbbbb, bbbbbb, ______, \
125 ______, KC_MPRV, KC_MPLY, KC_MNXT, bbbbbb, bbbbbb, bbbbbb,TO(_DFT),TO(_NGUI), bbbbbb, bbbbbb, ______, ______, \
126 ______, ______, ______, ______, ______, ______, ______, ______,TG(_SFX),______ \
127 ),
128
129/* Special Effects Layer / Layer 2
130 * ,-----------------------------------------------------------------------------------------.
131 * | |Plain|Brth |Rnbw |Swirl|Snake|Knght|Xmas |Grdnt| | | | | | |
132 * |-----------------------------------------------------------------------------------------+
133 * | | BL |BLSTEP| BL- | BL+ | | | | | | | | |Bootldr |
134 * |-----------------------------------------------------------------------------------------+
135 * | | RGBT| RGBM| | | | | | | | | | |
136 * |-----------------------------------------------------------------------------------------+
137 * | | Hue+| Hue-| Sat+| Sat-| Val+| Val-| | | | | | |
138 * |-----------------------------------------------------------------------------------------+
139 * | | | | | | | | |LrDflt | |
140 * `-----------------------------------------------------------------------------------------'
141 */
142/* Tap RAlt to get back to default layer (0).
143 *
144 * See https://docs.qmk.fm/feature_rgblight.html#rgblight-keycodes for details about
145 * RGB codes. Quick summary, though:
146 *
147 * RGB_MODE_PLAIN RGB_M_P Switch to the static no animation mode
148 * RGB_MODE_BREATHE RGB_M_B Switch to the breathing mode
149 * RGB_MODE_RAINBOW RGB_M_R Switch to the rainbow mode (cycles through colors)
150 * RGB_MODE_SWIRL RGB_M_SW Switch to the swirl mode (like an animated gradient)
151 * RGB_MODE_SNAKE RGB_M_SN Switch to the snake mode
152 * RGB_MODE_KNIGHT RGB_M_K Switch to the knight animation
153 * RGB_MODE_XMAS RGB_M_X Switch to the Christmas animation
154 * RGB_MODE_GRADIENT RGB_M_G Switch to the static gradient mode
155 *
156 * Note that there are more animation variations, usually timer-based variations, by using the
157 * "S" key to cycle through modes. Use one of the deciated keys to get to
158 * the general mode where you want it, then cycle through variations of that mode to get
159 * something specific more quickly.
160 */
161 /* Layer 2: "special effects": RGB lighting, backlighting, bootloader */
162 [_SFX] = MITCHSPLIT(
163 ______, RGB_M_P, RGB_M_B, RGB_M_R, RGB_M_SW,RGB_M_SN,RGB_M_K, RGB_M_X, RGB_M_G,______, ______, ______, ______, ______, \
164 ______, BL_TOGG, BL_STEP, BL_DEC, BL_INC, ______, ______, ______, ______, ______, ______, ______, ______, RESET, \
165 ______, RGB_TOG, RGB_MOD,______, ______, ______, ______, ______, ______, ______, ______, ______, ______, \
166 ______, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, ______, ______, ______, ______, ______, ______, \
167 ______, ______, ______, ______, ______, ______, ______, ______,TO(_DFT),______ \
168 )
169
170};
171
172enum function_id {
173 SHIFT_ESC,
174};
175
176const uint16_t PROGMEM fn_actions[] = {
177 [0] = ACTION_FUNCTION(SHIFT_ESC),
178};
179
180void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) {
181 static uint8_t shift_esc_shift_mask;
182 switch (id) {
183 case SHIFT_ESC:
184 shift_esc_shift_mask = get_mods()&MODS_CTRL_MASK;
185 if (record->event.pressed) {
186 if (shift_esc_shift_mask) {
187 add_key(KC_GRV);
188 send_keyboard_report();
189 } else {
190 add_key(KC_ESC);
191 send_keyboard_report();
192 }
193 } else {
194 if (shift_esc_shift_mask) {
195 del_key(KC_GRV);
196 send_keyboard_report();
197 } else {
198 del_key(KC_ESC);
199 send_keyboard_report();
200 }
201 }
202 break;
203 }
204}
diff --git a/keyboards/acr60/readme.md b/keyboards/acr60/readme.md
new file mode 100644
index 000000000..86e063ed5
--- /dev/null
+++ b/keyboards/acr60/readme.md
@@ -0,0 +1,15 @@
1# ACR60
2
3![acr60](https://cdn.shopify.com/s/files/1/1697/5323/products/20170522001035_1024x1024.jpg?v=1504725199)
4
5A customizable 60% keyboard based on the DZ60.
6
7Keyboard Maintainer: QMK Community
8Hardware Supported: ACR60
9Hardware Availability: [mechkeysca](https://mechkeys.ca/products/acr60)
10
11Make example for this keyboard (after setting up your build environment):
12
13 make acr60: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.
diff --git a/keyboards/acr60/rules.mk b/keyboards/acr60/rules.mk
new file mode 100644
index 000000000..9c4082da2
--- /dev/null
+++ b/keyboards/acr60/rules.mk
@@ -0,0 +1,56 @@
1# MCU name
2MCU = atmega32u4
3
4# Processor frequency.
5# This will define a symbol, F_CPU, in all source code files equal to the
6# processor frequency in Hz. You can then use this symbol in your source code to
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
8# automatically to create a 32-bit value in your source code.
9#
10# This will be an integer division of F_USB below, as it is sourced by
11# F_USB after it has run through any CPU prescalers. Note that this value
12# does not *change* the processor frequency - it should merely be updated to
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
17#
18# LUFA specific
19#
20# Target architecture (see library "Board Types" documentation).
21ARCH = AVR8
22
23# Input clock frequency.
24# This will define a symbol, F_USB, in all source code files equal to the
25# input clock frequency (before any prescaling is performed) in Hz. This value may
26# differ from F_CPU if prescaling is used on the latter, and is required as the
27# raw input clock is fed directly to the PLL sections of the AVR for high speed
28# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
29# at the end, this will be done automatically to create a 32-bit value in your
30# source code.
31#
32# If no clock division is performed on the input clock inside the AVR (via the
33# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
34F_USB = $(F_CPU)
35
36# Interrupt driven control endpoint task(+60)
37OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
38
39
40# Boot Section Size in *bytes*
41OPT_DEFS += -DBOOTLOADER_SIZE=4096
42
43
44# Build Options
45# comment out to disable the options.
46#
47BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
48MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
49EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
50CONSOLE_ENABLE = no # Console for debug(+400)
51COMMAND_ENABLE = no # Commands for debug and configuration
52SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
53NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
54BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
55AUDIO_ENABLE = no
56RGBLIGHT_ENABLE = yes \ No newline at end of file