aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/edi/hardlight/mk1/config.h109
-rw-r--r--keyboards/edi/hardlight/mk1/keymaps/.gitignore1
-rw-r--r--keyboards/edi/hardlight/mk1/keymaps/default/config.h20
-rw-r--r--keyboards/edi/hardlight/mk1/keymaps/default/keymap.c115
-rw-r--r--keyboards/edi/hardlight/mk1/mk1.c18
-rw-r--r--keyboards/edi/hardlight/mk1/mk1.h41
-rw-r--r--keyboards/edi/hardlight/mk1/readme.md19
-rw-r--r--keyboards/edi/hardlight/mk1/rules.mk23
8 files changed, 346 insertions, 0 deletions
diff --git a/keyboards/edi/hardlight/mk1/config.h b/keyboards/edi/hardlight/mk1/config.h
new file mode 100644
index 000000000..be136fe9c
--- /dev/null
+++ b/keyboards/edi/hardlight/mk1/config.h
@@ -0,0 +1,109 @@
1/*
2©2021 Everywhere Defense Industries / Fate Everywhere <fate@7storm.org>
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 3 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 0xF7E0
24#define PRODUCT_ID 0x2401
25#define DEVICE_VER 0x0000
26#define MANUFACTURER Everywhere Defense Industries
27#define PRODUCT Hard Light
28
29/* key matrix size */
30#define MATRIX_ROWS 8
31#define MATRIX_COLS 8
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 { B0, B1, B2, B3, D4, D6, D7, B4 }
44#define MATRIX_COL_PINS { E6, F0, F1, F4, F5, F6, F7, B5 }
45#define UNUSED_PINS { B7, D2, D3, D5 }
46
47
48/* COL2ROW, ROW2COL */
49#define DIODE_DIRECTION COL2ROW
50
51// #define BACKLIGHT_PIN C7
52// #define BACKLIGHT_BREATHING
53// #define BACKLIGHT_LEVELS 3
54
55
56/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
57#define DEBOUNCE 5
58
59/* define if matrix has ghost (lacks anti-ghosting diodes) */
60//#define MATRIX_HAS_GHOST
61
62/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
63#define LOCKING_SUPPORT_ENABLE
64/* Locking resynchronize hack */
65#define LOCKING_RESYNC_ENABLE
66
67/*
68 * Enable RGB Underlighting
69 */
70#define RGB_DI_PIN C7
71#define RGBLED_NUM 15
72#define RGBLIGHT_ANIMATIONS
73//#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
74//#define RGBLIGHT_EFFECT_KNIGHT
75//#define RGBLIGHT_EFFECT_TWINKLE
76//#define RGBLIGHT_EFFECT_BREATHING
77
78
79/*
80 * Enable Audio Subsystem with two voices
81 */
82// #define AUDIO_PIN C6
83
84
85/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
86 * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
87 */
88// #define GRAVE_ESC_CTRL_OVERRIDE
89
90/*
91 * Force NKRO
92 *
93 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
94 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
95 * makefile for this to work.)
96 *
97 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
98 * until the next keyboard reset.
99 *
100 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
101 * fully operational during normal computer usage.
102 *
103 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
104 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
105 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
106 * power-up.
107 *
108 */
109//#define FORCE_NKRO
diff --git a/keyboards/edi/hardlight/mk1/keymaps/.gitignore b/keyboards/edi/hardlight/mk1/keymaps/.gitignore
new file mode 100644
index 000000000..08a0f321a
--- /dev/null
+++ b/keyboards/edi/hardlight/mk1/keymaps/.gitignore
@@ -0,0 +1 @@
fate \ No newline at end of file
diff --git a/keyboards/edi/hardlight/mk1/keymaps/default/config.h b/keyboards/edi/hardlight/mk1/keymaps/default/config.h
new file mode 100644
index 000000000..2db5f3b32
--- /dev/null
+++ b/keyboards/edi/hardlight/mk1/keymaps/default/config.h
@@ -0,0 +1,20 @@
1/*
2©2021 Everywhere Defense Industries / Fate Everywhere <fate@7storm.org>
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 3 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// place overrides here
diff --git a/keyboards/edi/hardlight/mk1/keymaps/default/keymap.c b/keyboards/edi/hardlight/mk1/keymaps/default/keymap.c
new file mode 100644
index 000000000..251b6c8b3
--- /dev/null
+++ b/keyboards/edi/hardlight/mk1/keymaps/default/keymap.c
@@ -0,0 +1,115 @@
1/*
2©2021 Everywhere Defense Industries / Fate Everywhere <fate@7storm.org>
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 3 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#include QMK_KEYBOARD_H
19
20enum layers {
21 _MAIN,
22 _RAISE,
23 _LOWER,
24 _SET,
25};
26
27// Readability keycodes
28#define LOWER MO(_LOWER)
29#define RAISE MO(_RAISE)
30#define SET MO(_SET)
31
32const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
33
34
35/* MAIN
36 * .-----------------------------------------------------------------------------------------------------------------------------------------------.
37 * | Tab | Q | W | E | R | T | Y | U | I | O | P | Backsp | Delete | 7 | 8 | 9 |
38 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
39 * | Esc | A | S | D | F | G | H | J | K | L | ; | ' | Pause | 4 | 5 | 6 |
40 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
41 * | LShift | Z | X | C | V | B | N | M | , | . | / | Up | Enter | 1 | 2 | 3 |
42 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
43 * | LCtrl | Lock | GUI | Alt | Lower | Space | Space | Raise | PrtScr | RShift | Left | Down | Right | 0 | . | Enter |
44 * '-----------------------------------------------------------------------------------------------------------------------------------------------'
45 */
46
47 [_MAIN] = LAYOUT_ortho_4x16(
48 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, KC_DEL, KC_KP_7, KC_KP_8, KC_KP_9,
49 KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_PAUS, KC_KP_4, KC_KP_5, KC_KP_6,
50 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_UP, KC_ENT, KC_KP_1, KC_KP_2, KC_KP_3,
51 KC_LCTL, KC_LOCK, KC_LGUI, KC_LALT, LOWER, KC_SPC, KC_SPC, RAISE, KC_PSCR, KC_RSFT, KC_LEFT, KC_DOWN, KC_RGHT, KC_KP_0, KC_KP_DOT, KC_PENT
52 ),
53
54/* RAISE
55 * .-----------------------------------------------------------------------------------------------------------------------------------------------.
56 * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | | Insert | | | |
57 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
58 * | | | | | | | | - | = | [ | ] | \ | | | | |
59 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
60 * | | | | | | | | | | | | PgUp | | | | |
61 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
62 * | | | | | | | | | | | Vol- | PgDn | Vol+ | | | |
63 * '-----------------------------------------------------------------------------------------------------------------------------------------------'
64 */
65
66 [_RAISE] = LAYOUT_ortho_4x16(
67 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______, KC_INS, _______, _______, _______,
68 _______, _______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, _______, _______, _______, _______,
69 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_PGUP, _______, _______, _______, _______,
70 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_VOLD, KC_PGDN, KC_VOLU, _______, _______, _______
71 ),
72
73/* LOWER
74 * .-----------------------------------------------------------------------------------------------------------------------------------------------.
75 * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | | | | | |
76 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
77 * | | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | | | | | | |
78 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
79 * | | F7 | F8 | F9 | F10 | F11 | F12 | | | | | Home | | | | |
80 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
81 * | | | | | | | | | | | Mute | End | Play | | | |
82 * '-----------------------------------------------------------------------------------------------------------------------------------------------'
83 */
84
85 [_LOWER] = LAYOUT_ortho_4x16(
86 KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______, _______, _______, _______, _______,
87 _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, _______, _______, _______, _______,
88 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, KC_HOME, _______, _______, _______, _______,
89 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MUTE, KC_END, KC_MPLY, _______, _______, _______
90 ),
91
92 /* SETTINGS
93 * .-----------------------------------------------------------------------------------------------------------------------------------------------.
94 * | | CapLok | ScrLok | NumLok | | | | RGB IO | Mode+ | Mode- | Plain | | | | | |
95 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
96 * | | | | | | | | Hue+ | Sat+ | Val+ | RSwirl | | | | | |
97 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
98 * | | | | | | | | Hue- | Sat- | Val- | Larsen | | Reset | | | |
99 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
100 * | | | | | | | | | | | | | | | | |
101 * '-----------------------------------------------------------------------------------------------------------------------------------------------'
102 */
103
104 [_SET] = LAYOUT_ortho_4x16(
105 _______, KC_CAPS, KC_SLCK, KC_NLCK, _______, _______, _______, RGB_TOG, RGB_MOD, RGB_RMOD, RGB_M_P, _______, _______, _______, _______, _______,
106 _______, _______, _______, _______, _______, _______, _______, RGB_HUI, RGB_SAI, RGB_VAI, RGB_M_SW, _______, _______, _______, _______, _______,
107 _______, _______, _______, _______, _______, _______, _______, RGB_HUD, RGB_SAD, RGB_VAD, RGB_M_K, _______, RESET, _______, _______, _______,
108 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
109 ),
110
111};
112
113layer_state_t layer_state_set_user(layer_state_t state) {
114 return update_tri_layer_state(state, _LOWER, _RAISE, _SET);
115} \ No newline at end of file
diff --git a/keyboards/edi/hardlight/mk1/mk1.c b/keyboards/edi/hardlight/mk1/mk1.c
new file mode 100644
index 000000000..5a1e0bbb1
--- /dev/null
+++ b/keyboards/edi/hardlight/mk1/mk1.c
@@ -0,0 +1,18 @@
1/*
2©2021 Everywhere Defense Industries / Fate Everywhere <fate@7storm.org>
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 3 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#include "mk1.h"
diff --git a/keyboards/edi/hardlight/mk1/mk1.h b/keyboards/edi/hardlight/mk1/mk1.h
new file mode 100644
index 000000000..e8ef9777a
--- /dev/null
+++ b/keyboards/edi/hardlight/mk1/mk1.h
@@ -0,0 +1,41 @@
1/*
2©2021 Everywhere Defense Industries / Fate Everywhere <fate@7storm.org>
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 3 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 "quantum.h"
21
22// This a shortcut to help you visually see your layout.
23// The first section contains all of the arguments
24// The second converts the arguments into a two-dimensional array
25
26#define LAYOUT_ortho_4x16( \
27 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K10, K11, K12, K13, K14, K15, \
28 K16, K17, K18, K19, K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K30, K31, \
29 K32, K33, K34, K35, K36, K37, K38, K39, K40, K41, K42, K43, K44, K45, K46, K47, \
30 K48, K49, K50, K51, K52, K53, K54, K55, K56, K57, K58, K59, K60, K61, K62, K63 \
31) \
32{ \
33 { K00, K02, K04, K06, K08, K10, K12, K14 }, \
34 { K01, K03, K05, K07, K09, K11, K13, K15 }, \
35 { K16, K18, K20, K22, K24, K26, K28, K30 }, \
36 { K17, K19, K21, K23, K25, K27, K29, K31 }, \
37 { K32, K34, K36, K38, K40, K42, K44, K46 }, \
38 { K33, K35, K37, K39, K41, K43, K45, K47 }, \
39 { K48, K50, K52, K54, K56, K58, K60, K62 }, \
40 { K49, K51, K53, K55, K57, K59, K61, K63 } \
41}
diff --git a/keyboards/edi/hardlight/mk1/readme.md b/keyboards/edi/hardlight/mk1/readme.md
new file mode 100644
index 000000000..177a46b5d
--- /dev/null
+++ b/keyboards/edi/hardlight/mk1/readme.md
@@ -0,0 +1,19 @@
1# Hard Light Mark 1
2
3![Hard Light Mark 1](https://i.imgur.com/X6Katarh.png)
4
5A compact 60% keyboard designed by Fate Everywhere. Born out of the desire for a Planck with a numpad for technical work and a lack of reliance on the Elite-C.
6
7* Keyboard Maintainer: [Fate Everywhere](https://github.com/fateeverywhere)
8* Hardware Supported: Revision P, Revision Q, Mark 1 Hard Light.
9* Hardware Availability: Seven Store (https://store.7storm.org).
10
11Build example for this keyboard (after setting up your build environment):
12
13 make edi/hardlight/mk1:default
14
15Flash example for this keyboard (after setting up your build environment):
16
17 make edi/hardlight/mk1: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).
diff --git a/keyboards/edi/hardlight/mk1/rules.mk b/keyboards/edi/hardlight/mk1/rules.mk
new file mode 100644
index 000000000..33595b42e
--- /dev/null
+++ b/keyboards/edi/hardlight/mk1/rules.mk
@@ -0,0 +1,23 @@
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 = lite # Virtual DIP switch configuration
11MOUSEKEY_ENABLE = no # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = yes # Console for debug
14COMMAND_ENABLE = yes # Commands for debug and configuration
15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
17# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
18NKRO_ENABLE = no # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output
23KEY_LOCK_ENABLE = yes \ No newline at end of file