aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpastapojken <6597735+pastapojken@users.noreply.github.com>2020-11-18 17:56:59 +0100
committerGitHub <noreply@github.com>2020-11-18 16:56:59 +0000
commitad5cbe59820ac1f9922f2db2d6d1e7f2a8f50519 (patch)
tree57048e17a912a17724b9e1305d528a5be37813cd
parent58f2e0439eb372eecaa2e8e2788bb67969e95e16 (diff)
downloadqmk_firmware-ad5cbe59820ac1f9922f2db2d6d1e7f2a8f50519.tar.gz
qmk_firmware-ad5cbe59820ac1f9922f2db2d6d1e7f2a8f50519.zip
Added new keyboard - nack (#10940)
Co-authored-by: Ryan <fauxpark@gmail.com>
-rw-r--r--keyboards/nack/config.h59
-rw-r--r--keyboards/nack/info.json12
-rw-r--r--keyboards/nack/keymaps/default/keymap.c65
-rw-r--r--keyboards/nack/keymaps/default/readme.md1
-rw-r--r--keyboards/nack/keymaps/pastapojken/keymap.c199
-rw-r--r--keyboards/nack/keymaps/pastapojken/keymap.h122
-rw-r--r--keyboards/nack/keymaps/pastapojken/readme.md1
-rw-r--r--keyboards/nack/mcuconf.h273
-rw-r--r--keyboards/nack/nack.c40
-rw-r--r--keyboards/nack/nack.h31
-rw-r--r--keyboards/nack/readme.md21
-rw-r--r--keyboards/nack/rules.mk23
12 files changed, 847 insertions, 0 deletions
diff --git a/keyboards/nack/config.h b/keyboards/nack/config.h
new file mode 100644
index 000000000..9f0880e38
--- /dev/null
+++ b/keyboards/nack/config.h
@@ -0,0 +1,59 @@
1/*
2Copyright 2020 pastapojken <pastapojken@gmail.com>
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#include "config_common.h"
20
21#define VENDOR_ID 0xDA12
22#define PRODUCT_ID 0x6060
23#define DEVICE_VER 0x0001
24#define MANUFACTURER pastapojken
25#define PRODUCT nack keyboard
26
27#define MATRIX_ROWS 4
28#define MATRIX_COLS 13
29
30#define MATRIX_ROW_PINS { A0, A1, A2, A3 }
31#define MATRIX_COL_PINS { A6, A7, A8, A9, A10, B0, B1, B2, B6, B7, C13, C14, C15 }
32
33#define DIODE_DIRECTION ROW2COL
34#define DEBOUNCE 5
35#define TAPPING_TOGGLE 2
36
37#ifdef RGB_MATRIX_ENABLE
38 #define WS2812_SPI SPID1
39 #define WS2812_SPI_MOSI_PAL_MODE 5
40 #define RGB_DI_PIN B5
41 #define RGBLED_NUM 52
42 #define DRIVER_LED_TOTAL RGBLED_NUM
43 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 128 // Max brightness of LEDs
44 #define RGB_MATRIX_STARTUP_VAL 64
45 #define RGB_MATRIX_HUE_STEP 10
46 #define RGB_MATRIX_SAT_STEP 10
47 #define RGB_MATRIX_VAL_STEP 10
48#endif
49
50#ifdef AUDIO_ENABLE
51 #define STARTUP_SONG SONG(NO_SOUND)
52 #define AUDIO_PIN A4 // Pin of the left speaker
53 #define AUDIO_PIN_ALT A5 // Pin of the right speaker
54 /*
55 * Basically, change this section once pull request 6165 has been merged
56 * https://github.com/qmk/qmk_firmware/pull/6165
57 */
58#endif
59
diff --git a/keyboards/nack/info.json b/keyboards/nack/info.json
new file mode 100644
index 000000000..780017f6c
--- /dev/null
+++ b/keyboards/nack/info.json
@@ -0,0 +1,12 @@
1{
2 "keyboard_name": "nack",
3 "url": "https://github.com/pastapojken/nack",
4 "maintainer": "pastapojken",
5 "width": 13,
6 "height": 4,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [{"label":"Tab", "x":0, "y":0}, {"label":"Q", "x":1, "y":0}, {"label":"W", "x":2, "y":0}, {"label":"E", "x":3, "y":0}, {"label":"R", "x":4, "y":0}, {"label":"T", "x":5, "y":0}, {"label":"Y", "x":6, "y":0}, {"label":"U", "x":7, "y":0}, {"label":"I", "x":8, "y":0}, {"label":"O", "x":9, "y":0}, {"label":"P", "x":10, "y":0}, {"label":"\u00c5", "x":11, "y":0}, {"label":"\u00a8", "x":12, "y":0}, {"label":"Esc", "x":0, "y":1}, {"label":"A", "x":1, "y":1}, {"label":"S", "x":2, "y":1}, {"label":"D", "x":3, "y":1}, {"label":"F", "x":4, "y":1}, {"label":"G", "x":5, "y":1}, {"label":"H", "x":6, "y":1}, {"label":"J", "x":7, "y":1}, {"label":"K", "x":8, "y":1}, {"label":"L", "x":9, "y":1}, {"label":"\u00d6", "x":10, "y":1}, {"label":"\u00c4", "x":11, "y":1}, {"label":"'", "x":12, "y":1}, {"label":"Shift", "x":0, "y":2}, {"label":"Z", "x":1, "y":2}, {"label":"X", "x":2, "y":2}, {"label":"C", "x":3, "y":2}, {"label":"V", "x":4, "y":2}, {"label":"B", "x":5, "y":2}, {"label":"N", "x":6, "y":2}, {"label":"M", "x":7, "y":2}, {"label":",", "x":8, "y":2}, {"label":".", "x":9, "y":2}, {"label":"", "x":10, "y":2}, {"label":"&uarr;", "x":11, "y":2}, {"label":"backsp", "x":12, "y":2}, {"label":"Ctrl", "x":0, "y":3}, {"label":"Super", "x":1, "y":3}, {"label":"Alt", "x":2, "y":3}, {"label":"Fn", "x":3, "y":3}, {"x":4, "y":3}, {"x":5, "y":3}, {"label":"Fn", "x":6, "y":3}, {"label":"", "x":7, "y":3}, {"label":"Alt Gr", "x":8, "y":3}, {"label":"Enter", "x":9, "y":3}, {"label":"&larr;", "x":10, "y":3}, {"label":"&darr;", "x":11, "y":3}, {"label":"&rarr;", "x":12, "y":3}]
10 }
11 }
12}
diff --git a/keyboards/nack/keymaps/default/keymap.c b/keyboards/nack/keymaps/default/keymap.c
new file mode 100644
index 000000000..4c3e3dacb
--- /dev/null
+++ b/keyboards/nack/keymaps/default/keymap.c
@@ -0,0 +1,65 @@
1/* Copyright 2020 pastapojken <pastapojken@gmail.com>
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
18// Defines names for use in layer keycodes and the keymap
19enum layer_names {
20 BASE,
21 NUM,
22 FN
23};
24
25const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
26 [BASE] = LAYOUT(
27/* __________________________________________________________________________________________________________________________________________________________________________
28 | \ \ \ \ \ \ \ \ \ \ \ \ \ \ */
29// | |----TAB-----|---Q--------|-----W------|-----E------|-----R------|----T-------|-----Y------|-----U------|----I-------|------O-----|----P-------|----Å-------|--( ¨^~ )---|
30 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,
31// | |----ESC-----|---A--------|---S--------|----D-------|-----F------|-----G------|-----H------|-----J------|-----K------|-----L------|-----Ö------|-----Ä------|--( '* )----|
32 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_NUHS,
33// | |---SHIFT----|---Z--------|---X--------|----C-------|-----V------|-----B------|-----N------|------M-----|---( ,; )---|---( .: )---|---( -_ )---|----UP------|-BACKSPACE--|
34 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_BSPC,
35// | |---CTRL-----|---ALT------|---META-----|----FN_1----|----------SPACE----------|----FN_2----|----AltGr---|--( <>| )---|---ENETER---|-LEFT-------|---DOWN-----|--RIGHT-----|
36 KC_LCTL, KC_LALT, KC_LGUI, TT(NUM), KC_SPC, KC_NO, TT(FN), KC_RALT, KC_NUBS, KC_ENT, KC_LEFT, KC_DOWN, KC_RIGHT
37// \|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|
38 ),
39 [NUM] = LAYOUT(
40/* __________________________________________________________________________________________________________________________________________________________________________
41 | \ \ \ \ \ \ \ \ \ \ \ \ \ \ */
42// | |---TAB------|---( 1! )---|--( 2"@ )---|--( 3#£ )---|---( 4¤$ )--|--( 5%€ )---|---( 6& )---|--( 7/{ )---|--( 8([ )---|--( 9)] )---|--( 0=} )---|---( +?\ )--|---( ´` )---|
43 _______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL,
44// | |----ESC-----|-----F1-----|-----F2-----|----F3------|----F4------|----F5------|-----F6-----|-----F7------|----F8-----|-----F9-----|-----F10----|----F11-----|----F12-----|
45 _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
46// | |---SHIFT----|------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|
47 _______, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
48// | |---CTRL-----|---ALT------|---META-----|---FN_1-----|------------|------------|----FN_2----|--AltGr-----|---( §½ )---|------------|------------|------------|------------|
49 _______, _______, _______, TT(FN), KC_NO, KC_NO, TO(BASE), _______, KC_GRV, KC_NO, KC_NO, KC_NO, KC_NO
50// \|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|
51 ),
52 [FN] = LAYOUT(
53/* __________________________________________________________________________________________________________________________________________________________________________
54 | \ \ \ \ \ \ \ \ \ \ \ \ \ \ */
55// | |-RGB TOGGLE-|-CHANGE RGB-|-RGB HUE UP-|-RGB SAT UP-|------------|------------|------------|------------|------------|------------|------------|------------|-RESET KBD--|
56 RGB_TOG, RGB_MOD, RGB_HUI, RGB_SAI, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
57// | |------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|
58 MU_TOG, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
59// | |------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|-RGB LIGHT +|------------|
60 KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, RGB_VAI, KC_NO,
61// | |------------|------------|------------|---FN_1-----|------------|------------|----FN_2----|------------|------------|------------|------------|-RGB LIGHT -|------------|
62 KC_NO, KC_NO, KC_NO, TT(NUM), KC_NO, KC_NO, TO(BASE), KC_NO, KC_NO, KC_NO, KC_NO, RGB_VAD, KC_NO
63// \|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|
64 )
65};
diff --git a/keyboards/nack/keymaps/default/readme.md b/keyboards/nack/keymaps/default/readme.md
new file mode 100644
index 000000000..9cbf5c6e6
--- /dev/null
+++ b/keyboards/nack/keymaps/default/readme.md
@@ -0,0 +1 @@
# The default keymap for nack, simple and minimal.
diff --git a/keyboards/nack/keymaps/pastapojken/keymap.c b/keyboards/nack/keymaps/pastapojken/keymap.c
new file mode 100644
index 000000000..3bbcc4b36
--- /dev/null
+++ b/keyboards/nack/keymaps/pastapojken/keymap.c
@@ -0,0 +1,199 @@
1/* Copyright 2020 pastapojken <pastapojken@gmail.com>
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#include "keymap.h"
18
19#define ____ _______
20
21// Defines names for use in layer keycodes and the keymap
22enum layer_names {
23 BASE,
24 NUM,
25 FN
26};
27
28// Defines the keycodes used by our macros in process_record_user
29enum custom_keycodes {
30 CK_LSFT = SAFE_RANGE, // Shift
31 CK_RALT, // AltGr
32 CK_BSPC_DEL, // Backspace or Del (if pressed with CK_LSFT or CK_RALT)
33 CK_UP_PGUP, // Up or PgUp (if pressed with CK_LSFT or CK_RALT)
34 CK_DOWN_PGDOWN, // Down or PgDown (if pressed with CK_LSFT or CK_RALT)
35 CK_LEFT_HOME, // Left or Home (if pressed with CK_LSFT or CK_RALT)
36 CK_RIGHT_END, // Right or End (if pressed with CK_LSFT or CK_RALT)
37 KK_RESET
38};
39
40const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
41 [BASE] = LAYOUT(
42/* __________________________________________________________________________________________________________________________________________________________________________
43 | \ \ \ \ \ \ \ \ \ \ \ \ \ \ */
44// | |----TAB-----|---Q--------|-----W------|-----E------|-----R------|----T-------|-----Y------|-----U------|----I-------|------O-----|----P-------|----Å-------|--( ¨^~ )---|
45 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,
46// | |----ESC-----|---A--------|---S--------|----D-------|-----F------|-----G------|-----H------|-----J------|-----K------|-----L------|-----Ö------|-----Ä------|--( '* )----|
47 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_NUHS,
48// | |---SHIFT----|---Z--------|---X--------|----C-------|-----V------|-----B------|-----N------|------M-----|---( ,; )---|---( .: )---|---( -_ )---|----UP------|-BACKSPACE--|
49 CK_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, CK_UP_PGUP, CK_BSPC_DEL,
50// | |---CTRL-----|---ALT------|---META-----|----FN_1----|----------SPACE----------|----FN_2----|----AltGr---|--( <>| )---|---ENETER---|-LEFT-------|---DOWN-----|--RIGHT-----|
51 KC_LCTL, KC_LALT, KC_LGUI, TT(NUM), KC_SPC, KC_NO, TT(FN), CK_RALT, KC_NUBS, KC_ENT, CK_LEFT_HOME,CK_DOWN_PGDOWN,CK_RIGHT_END
52// \|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|
53 ),
54 [NUM] = LAYOUT(
55/* __________________________________________________________________________________________________________________________________________________________________________
56 | \ \ \ \ \ \ \ \ \ \ \ \ \ \ */
57// | |---TAB------|---( 1! )---|--( 2"@ )---|--( 3#£ )---|---( 4¤$ )--|--( 5%€ )---|---( 6& )---|--( 7/{ )---|--( 8([ )---|--( 9)] )---|--( 0=} )---|---( +?\ )--|---( ´` )---|
58 ____, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL,
59// | |----ESC-----|-----F1-----|-----F2-----|----F3------|----F4------|----F5------|-----F6-----|-----F7------|----F8-----|-----F9-----|-----F10----|----F11-----|----F12-----|
60 ____, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
61// | |---SHIFT----|------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|
62 ____, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
63// | |---CTRL-----|---ALT------|---META-----|---FN_1-----|------------|------------|----FN_2----|--AltGr-----|---( §½ )---|------------|------------|------------|------------|
64 ____, ____, ____, TT(FN), KC_NO, KC_NO, TO(BASE), ____, KC_GRV, KC_NO, KC_NO, KC_NO, KC_NO
65// \|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|
66 ),
67 [FN] = LAYOUT(
68/* __________________________________________________________________________________________________________________________________________________________________________
69 | \ \ \ \ \ \ \ \ \ \ \ \ \ \ */
70// | |-RGB TOGGLE-|-CHANGE RGB-|-RGB HUE UP-|-RGB SAT UP-|------------|------------|------------|------------|------------|------------|------------|------------|-RESET KBD--|
71 RGB_TOG, RGB_MOD, RGB_HUI, RGB_SAI, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KK_RESET,
72// | |------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|
73 MU_TOG, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
74// | |------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|-RGB LIGHT +|------------|
75 KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, RGB_VAI, KC_NO,
76// | |------------|------------|------------|---FN_1-----|------------|------------|----FN_2----|------------|------------|------------|------------|-RGB LIGHT -|------------|
77 KC_NO, KC_NO, KC_NO, TT(NUM), KC_NO, KC_NO, TO(BASE), KC_NO, KC_NO, KC_NO, KC_NO, RGB_VAD, KC_NO
78// \|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|
79 )
80};
81
82// Interrupt bools
83bool lshift = false, ralt = false;
84
85// Number of items that are saved in prev_kcs
86uint8_t prev_indx = 0;
87// Used to save the last 6 actual keycodes
88uint16_t prev_kcs[6] = {0, 0, 0, 0, 0, 0};
89
90/*
91Used to add a keycode to a prev_kcs to remember it.
92When full the last code gets discarded and replaced by
93the new one.
94*/
95void add_to_prev(uint16_t kc){
96 for (int i=0; i<prev_indx; i++){
97 if (kc == prev_kcs[i])
98 return;
99 }
100 if (prev_indx == 6){
101 for (int i=5; i>0; i--){
102 prev_kcs[i] = prev_kcs[i-1];
103 }
104 prev_kcs[0] = kc;
105 } else {
106 prev_kcs[prev_indx] = kc;
107 prev_indx++;
108 }
109}
110
111/*
112Unregisters all codes saved in prev_kcs and resets prev_indx.
113gets called on multiple occasions mainly when shift is released
114and when frankenkeycodes are pressed. Prevents output of
115wrong characters when really specific key combinations
116that would never occur during normal usage are pressed.
117*/
118void unreg_prev(void){
119 if (prev_indx == 0)
120 return;
121 for (int i=0; i<prev_indx; i++){
122 unregister_code(prev_kcs[i]);
123 }
124 prev_indx = 0;
125}
126
127bool process_record_user(uint16_t keycode, keyrecord_t *record) {
128 static uint32_t key_timer;
129 switch (keycode) {
130 case CK_LSFT:
131 if(record->event.pressed) {
132 unregister_code(KC_LSFT);
133 register_code(KC_LSFT);
134 lshift = true;
135 } else {
136 unreg_prev();
137 unregister_code(KC_LSFT);
138 lshift = false;
139 }
140 return false;
141 case CK_RALT:
142 if(record->event.pressed) {
143 unregister_code(KC_RALT);
144 register_code(KC_RALT);
145 ralt = true;
146 } else {
147 unreg_prev();
148 unregister_code(KC_RALT);
149 ralt = false;
150 }
151 return false;
152 case CK_BSPC_DEL:
153 RALT_NO(KC_BSPC,KC_DEL);
154 break;
155 case CK_UP_PGUP:
156 RALT_NO(KC_UP,KC_PGUP);
157 break;
158 case CK_DOWN_PGDOWN:
159 RALT_NO(KC_DOWN,KC_PGDOWN);
160 break;
161 case CK_LEFT_HOME:
162 RALT_NO(KC_LEFT,KC_HOME);
163 break;
164 case CK_RIGHT_END:
165 RALT_NO(KC_RIGHT,KC_END);
166 break;
167 case KK_RESET: // Basically, turn off RGB before resetting
168 if (record->event.pressed) {
169 key_timer = timer_read32();
170 #ifdef RGB_MATRIX_ENABLE
171 rgb_matrix_disable_noeeprom();
172 #endif
173 } else {
174 if (timer_elapsed32(key_timer) >= 20) {
175 reset_keyboard();
176 }
177 }
178 break;
179 default:
180 if(record->event.pressed) {
181 timer_timeout_keymap();
182 if (lshift)
183 register_code(KC_LSFT);
184 else
185 unregister_code(KC_LSFT);
186
187 if (ralt)
188 register_code(KC_ALGR);
189 else
190 unregister_code(KC_ALGR);
191 }
192 break;
193 }
194 return true;
195}
196
197__attribute__((weak))
198void timer_timeout_keymap(void){
199}
diff --git a/keyboards/nack/keymaps/pastapojken/keymap.h b/keyboards/nack/keymaps/pastapojken/keymap.h
new file mode 100644
index 000000000..aaeed7070
--- /dev/null
+++ b/keyboards/nack/keymaps/pastapojken/keymap.h
@@ -0,0 +1,122 @@
1/* Copyright 2020 pastapojken <pastapojken@gmail.com>
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#include "quantum.h"
19
20#define TAPPING_TOGGLE 2
21
22#ifdef AUDIO_ENABLE
23 #define STARTUP_SONG SONG(NO_SOUND)
24#endif
25
26void add_to_prev(uint16_t kc);
27void unreg_prev(void);
28void timer_timeout_keymap(void);
29bool process_record_user(uint16_t keycode, keyrecord_t *record);
30
31// Normal shift status
32#define SHIFT_NORM(kc1, kc2) \
33if (record->event.pressed) { \
34 timer_timeout_keymap(); \
35 if (lshift) { \
36 register_code(KC_LSFT); \
37 unregister_code(kc2); \
38 register_code(kc2); \
39 add_to_prev(kc2); \
40 } else { \
41 unregister_code(KC_LSFT); \
42 unregister_code(kc1); \
43 register_code(kc1); \
44 } \
45} else { \
46 unregister_code(kc1); \
47 unregister_code(kc2); \
48} \
49return false;
50
51// Always shifted
52#define SHIFT_ALL(kc1, kc2) \
53if (record->event.pressed) { \
54 timer_timeout_keymap(); \
55 register_code(KC_LSFT); \
56 if (lshift) { \
57 unregister_code(kc2); \
58 register_code(kc2); \
59 add_to_prev(kc2); \
60 } else { \
61 unregister_code(kc1); \
62 register_code(kc1); \
63 add_to_prev(kc1); \
64 } \
65} else { \
66 unregister_code(kc1); \
67 unregister_code(kc2); \
68 unreg_prev(); \
69 if (lshift) \
70 register_code(KC_LSFT); \
71 else \
72 unregister_code(KC_LSFT); \
73} \
74return false;
75
76// Never shifted
77#define SHIFT_NO(kc1, kc2) \
78if (record->event.pressed) { \
79 timer_timeout_keymap(); \
80 unregister_code(KC_LSFT); \
81 if (lshift) { \
82 unregister_code(kc2); \
83 register_code(kc2); \
84 add_to_prev(kc2); \
85 } else { \
86 unregister_code(kc1); \
87 register_code(kc1); \
88 } \
89} else { \
90 unregister_code(kc1); \
91 unregister_code(kc2); \
92 unreg_prev(); \
93 if (lshift) \
94 register_code(KC_LSFT); \
95 else \
96 unregister_code(KC_LSFT); \
97} \
98return false;
99
100//Never RALT
101#define RALT_NO(kc1, kc2) \
102if (record->event.pressed) { \
103 timer_timeout_keymap(); \
104 unregister_code(KC_RALT); \
105 if (ralt) { \
106 unregister_code(kc2); \
107 register_code(kc2); \
108 add_to_prev(kc2); \
109 } else { \
110 unregister_code(kc1); \
111 register_code(kc1); \
112 } \
113} else { \
114 unregister_code(kc1); \
115 unregister_code(kc2); \
116 unreg_prev(); \
117 if (ralt) \
118 register_code(KC_RALT); \
119 else \
120 unregister_code(KC_RALT); \
121} \
122return false;
diff --git a/keyboards/nack/keymaps/pastapojken/readme.md b/keyboards/nack/keymaps/pastapojken/readme.md
new file mode 100644
index 000000000..73e1e2add
--- /dev/null
+++ b/keyboards/nack/keymaps/pastapojken/readme.md
@@ -0,0 +1 @@
# pastapojken's keymap for nack
diff --git a/keyboards/nack/mcuconf.h b/keyboards/nack/mcuconf.h
new file mode 100644
index 000000000..0853242da
--- /dev/null
+++ b/keyboards/nack/mcuconf.h
@@ -0,0 +1,273 @@
1/*
2 ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15*/
16
17#ifndef MCUCONF_H
18#define MCUCONF_H
19
20/*
21 * STM32F3xx drivers configuration.
22 * The following settings override the default settings present in
23 * the various device driver implementation headers.
24 * Note that the settings for each driver only have effect if the whole
25 * driver is enabled in halconf.h.
26 *
27 * IRQ priorities:
28 * 15...0 Lowest...Highest.
29 *
30 * DMA priorities:
31 * 0...3 Lowest...Highest.
32 */
33
34#define STM32F3xx_MCUCONF
35#define STM32F303_MCUCONF
36
37/*
38 * HAL driver system settings.
39 */
40#define STM32_NO_INIT FALSE
41#define STM32_PVD_ENABLE FALSE
42#define STM32_PLS STM32_PLS_LEV0
43#define STM32_HSI_ENABLED TRUE
44#define STM32_LSI_ENABLED TRUE
45#define STM32_HSE_ENABLED TRUE
46#define STM32_LSE_ENABLED FALSE
47#define STM32_SW STM32_SW_PLL
48#define STM32_PLLSRC STM32_PLLSRC_HSE
49#define STM32_PREDIV_VALUE 1
50#define STM32_PLLMUL_VALUE 9
51#define STM32_HPRE STM32_HPRE_DIV1
52#define STM32_PPRE1 STM32_PPRE1_DIV2
53#define STM32_PPRE2 STM32_PPRE2_DIV2
54#define STM32_MCOSEL STM32_MCOSEL_NOCLOCK
55#define STM32_ADC12PRES STM32_ADC12PRES_DIV1
56#define STM32_ADC34PRES STM32_ADC34PRES_DIV1
57#define STM32_USART1SW STM32_USART1SW_PCLK
58#define STM32_USART2SW STM32_USART2SW_PCLK
59#define STM32_USART3SW STM32_USART3SW_PCLK
60#define STM32_UART4SW STM32_UART4SW_PCLK
61#define STM32_UART5SW STM32_UART5SW_PCLK
62#define STM32_I2C1SW STM32_I2C1SW_SYSCLK
63#define STM32_I2C2SW STM32_I2C2SW_SYSCLK
64#define STM32_TIM1SW STM32_TIM1SW_PCLK2
65#define STM32_TIM8SW STM32_TIM8SW_PCLK2
66#define STM32_RTCSEL STM32_RTCSEL_LSI
67#define STM32_USB_CLOCK_REQUIRED TRUE
68#define STM32_USBPRE STM32_USBPRE_DIV1P5
69
70/*
71 * IRQ system settings.
72 */
73#define STM32_IRQ_EXTI0_PRIORITY 6
74#define STM32_IRQ_EXTI1_PRIORITY 6
75#define STM32_IRQ_EXTI2_PRIORITY 6
76#define STM32_IRQ_EXTI3_PRIORITY 6
77#define STM32_IRQ_EXTI4_PRIORITY 6
78#define STM32_IRQ_EXTI5_9_PRIORITY 6
79#define STM32_IRQ_EXTI10_15_PRIORITY 6
80#define STM32_IRQ_EXTI16_PRIORITY 6
81#define STM32_IRQ_EXTI17_PRIORITY 15
82#define STM32_IRQ_EXTI18_PRIORITY 6
83#define STM32_IRQ_EXTI19_PRIORITY 15
84#define STM32_IRQ_EXTI20_PRIORITY 15
85#define STM32_IRQ_EXTI21_22_29_PRIORITY 6
86#define STM32_IRQ_EXTI30_32_PRIORITY 6
87#define STM32_IRQ_EXTI33_PRIORITY 6
88#define STM32_IRQ_TIM1_BRK_TIM15_PRIORITY 7
89#define STM32_IRQ_TIM1_UP_TIM16_PRIORITY 7
90#define STM32_IRQ_TIM1_TRGCO_TIM17_PRIORITY 7
91#define STM32_IRQ_TIM1_CC_PRIORITY 7
92
93/*
94 * ADC driver system settings.
95 */
96#define STM32_ADC_DUAL_MODE FALSE
97#define STM32_ADC_COMPACT_SAMPLES FALSE
98#define STM32_ADC_USE_ADC1 FALSE
99#define STM32_ADC_USE_ADC2 FALSE
100#define STM32_ADC_USE_ADC3 FALSE
101#define STM32_ADC_USE_ADC4 FALSE
102#define STM32_ADC_ADC1_DMA_STREAM STM32_DMA_STREAM_ID(1, 1)
103#define STM32_ADC_ADC2_DMA_STREAM STM32_DMA_STREAM_ID(2, 1)
104#define STM32_ADC_ADC3_DMA_STREAM STM32_DMA_STREAM_ID(2, 5)
105#define STM32_ADC_ADC4_DMA_STREAM STM32_DMA_STREAM_ID(2, 2)
106#define STM32_ADC_ADC1_DMA_PRIORITY 2
107#define STM32_ADC_ADC2_DMA_PRIORITY 2
108#define STM32_ADC_ADC3_DMA_PRIORITY 2
109#define STM32_ADC_ADC4_DMA_PRIORITY 2
110#define STM32_ADC_ADC12_IRQ_PRIORITY 5
111#define STM32_ADC_ADC3_IRQ_PRIORITY 5
112#define STM32_ADC_ADC4_IRQ_PRIORITY 5
113#define STM32_ADC_ADC1_DMA_IRQ_PRIORITY 5
114#define STM32_ADC_ADC2_DMA_IRQ_PRIORITY 5
115#define STM32_ADC_ADC3_DMA_IRQ_PRIORITY 5
116#define STM32_ADC_ADC4_DMA_IRQ_PRIORITY 5
117#define STM32_ADC_ADC12_CLOCK_MODE ADC_CCR_CKMODE_AHB_DIV1
118#define STM32_ADC_ADC34_CLOCK_MODE ADC_CCR_CKMODE_AHB_DIV1
119
120/*
121 * CAN driver system settings.
122 */
123#define STM32_CAN_USE_CAN1 FALSE
124#define STM32_CAN_CAN1_IRQ_PRIORITY 11
125
126/*
127 * DAC driver system settings.
128 */
129#define STM32_DAC_DUAL_MODE FALSE
130#define STM32_DAC_USE_DAC1_CH1 TRUE
131#define STM32_DAC_USE_DAC1_CH2 TRUE
132#define STM32_DAC_DAC1_CH1_IRQ_PRIORITY 10
133#define STM32_DAC_DAC1_CH2_IRQ_PRIORITY 10
134#define STM32_DAC_DAC1_CH1_DMA_PRIORITY 2
135#define STM32_DAC_DAC1_CH2_DMA_PRIORITY 2
136
137/*
138 * GPT driver system settings.
139 */
140#define STM32_GPT_USE_TIM1 FALSE
141#define STM32_GPT_USE_TIM2 FALSE
142#define STM32_GPT_USE_TIM3 FALSE
143#define STM32_GPT_USE_TIM4 FALSE
144#define STM32_GPT_USE_TIM6 TRUE
145#define STM32_GPT_USE_TIM7 TRUE
146#define STM32_GPT_USE_TIM8 TRUE
147#define STM32_GPT_USE_TIM15 TRUE
148#define STM32_GPT_USE_TIM16 FALSE
149#define STM32_GPT_USE_TIM17 FALSE
150#define STM32_GPT_TIM1_IRQ_PRIORITY 7
151#define STM32_GPT_TIM2_IRQ_PRIORITY 7
152#define STM32_GPT_TIM3_IRQ_PRIORITY 7
153#define STM32_GPT_TIM4_IRQ_PRIORITY 7
154#define STM32_GPT_TIM6_IRQ_PRIORITY 7
155#define STM32_GPT_TIM7_IRQ_PRIORITY 7
156#define STM32_GPT_TIM8_IRQ_PRIORITY 7
157
158/*
159 * I2C driver system settings.
160 */
161#define STM32_I2C_USE_I2C1 TRUE
162#define STM32_I2C_USE_I2C2 FALSE
163#define STM32_I2C_BUSY_TIMEOUT 50
164#define STM32_I2C_I2C1_IRQ_PRIORITY 10
165#define STM32_I2C_I2C2_IRQ_PRIORITY 10
166#define STM32_I2C_USE_DMA TRUE
167#define STM32_I2C_I2C1_DMA_PRIORITY 1
168#define STM32_I2C_I2C2_DMA_PRIORITY 1
169#define STM32_I2C_DMA_ERROR_HOOK(i2cp) osalSysHalt("DMA failure")
170
171/*
172 * ICU driver system settings.
173 */
174#define STM32_ICU_USE_TIM1 FALSE
175#define STM32_ICU_USE_TIM2 FALSE
176#define STM32_ICU_USE_TIM3 FALSE
177#define STM32_ICU_USE_TIM4 FALSE
178#define STM32_ICU_USE_TIM8 FALSE
179#define STM32_ICU_USE_TIM15 FALSE
180#define STM32_ICU_TIM1_IRQ_PRIORITY 7
181#define STM32_ICU_TIM2_IRQ_PRIORITY 7
182#define STM32_ICU_TIM3_IRQ_PRIORITY 7
183#define STM32_ICU_TIM4_IRQ_PRIORITY 7
184#define STM32_ICU_TIM8_IRQ_PRIORITY 7
185
186/*
187 * PWM driver system settings.
188 */
189#define STM32_PWM_USE_ADVANCED FALSE
190#define STM32_PWM_USE_TIM1 FALSE
191#define STM32_PWM_USE_TIM2 FALSE
192#define STM32_PWM_USE_TIM3 TRUE
193#define STM32_PWM_USE_TIM4 TRUE
194#define STM32_PWM_USE_TIM8 FALSE
195#define STM32_PWM_USE_TIM15 FALSE
196#define STM32_PWM_USE_TIM16 FALSE
197#define STM32_PWM_USE_TIM17 FALSE
198#define STM32_PWM_TIM1_IRQ_PRIORITY 7
199#define STM32_PWM_TIM2_IRQ_PRIORITY 7
200#define STM32_PWM_TIM3_IRQ_PRIORITY 7
201#define STM32_PWM_TIM4_IRQ_PRIORITY 7
202#define STM32_PWM_TIM8_IRQ_PRIORITY 7
203
204/*
205 * RTC driver system settings.
206 */
207#define STM32_RTC_PRESA_VALUE 32
208#define STM32_RTC_PRESS_VALUE 1024
209#define STM32_RTC_CR_INIT 0
210#define STM32_RTC_TAMPCR_INIT 0
211
212/*
213 * SERIAL driver system settings.
214 */
215#define STM32_SERIAL_USE_USART1 FALSE
216#define STM32_SERIAL_USE_USART2 TRUE
217#define STM32_SERIAL_USE_USART3 FALSE
218#define STM32_SERIAL_USE_UART4 FALSE
219#define STM32_SERIAL_USE_UART5 FALSE
220#define STM32_SERIAL_USART1_PRIORITY 12
221#define STM32_SERIAL_USART2_PRIORITY 12
222#define STM32_SERIAL_USART3_PRIORITY 12
223#define STM32_SERIAL_UART4_PRIORITY 12
224#define STM32_SERIAL_UART5_PRIORITY 12
225
226/*
227 * SPI driver system settings.
228 */
229#define STM32_SPI_USE_SPI1 TRUE
230#define STM32_SPI_USE_SPI2 FALSE
231#define STM32_SPI_USE_SPI3 FALSE
232#define STM32_SPI_SPI1_DMA_PRIORITY 1
233#define STM32_SPI_SPI2_DMA_PRIORITY 1
234#define STM32_SPI_SPI3_DMA_PRIORITY 1
235#define STM32_SPI_SPI1_IRQ_PRIORITY 10
236#define STM32_SPI_SPI2_IRQ_PRIORITY 10
237#define STM32_SPI_SPI3_IRQ_PRIORITY 10
238#define STM32_SPI_DMA_ERROR_HOOK(spip) osalSysHalt("DMA failure")
239
240/*
241 * ST driver system settings.
242 */
243#define STM32_ST_IRQ_PRIORITY 8
244#define STM32_ST_USE_TIMER 2
245
246/*
247 * UART driver system settings.
248 */
249#define STM32_UART_USE_USART1 FALSE
250#define STM32_UART_USE_USART2 FALSE
251#define STM32_UART_USE_USART3 FALSE
252#define STM32_UART_USART1_IRQ_PRIORITY 12
253#define STM32_UART_USART2_IRQ_PRIORITY 12
254#define STM32_UART_USART3_IRQ_PRIORITY 12
255#define STM32_UART_USART1_DMA_PRIORITY 0
256#define STM32_UART_USART2_DMA_PRIORITY 0
257#define STM32_UART_USART3_DMA_PRIORITY 0
258#define STM32_UART_DMA_ERROR_HOOK(uartp) osalSysHalt("DMA failure")
259
260/*
261 * USB driver system settings.
262 */
263#define STM32_USB_USE_USB1 TRUE
264#define STM32_USB_LOW_POWER_ON_SUSPEND FALSE
265#define STM32_USB_USB1_HP_IRQ_PRIORITY 13
266#define STM32_USB_USB1_LP_IRQ_PRIORITY 14
267
268/*
269 * WDG driver system settings.
270 */
271#define STM32_WDG_USE_IWDG FALSE
272
273#endif /* MCUCONF_H */
diff --git a/keyboards/nack/nack.c b/keyboards/nack/nack.c
new file mode 100644
index 000000000..185a96fda
--- /dev/null
+++ b/keyboards/nack/nack.c
@@ -0,0 +1,40 @@
1/* Copyright 2020 pastapojken <pastapojken@gmail.com>
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 QMK_KEYBOARD_H
18
19#ifdef RGB_MATRIX_ENABLE
20 led_config_t g_led_config = { {
21 // Key Matrix to LED Index
22 { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 },
23 { 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 },
24 { 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38 },
25 { 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51 }
26 }, {
27 // LED Index to Physical Position
28 { 0, 0 }, { 19, 0 }, { 38, 0 }, { 57, 0 }, { 76, 0 }, { 95, 0 }, { 114, 0 }, { 133, 0 }, { 152, 0 }, { 171, 0 }, { 190, 0 }, { 209, 0 }, { 223, 0 },
29 { 0, 21 }, { 19, 21 }, { 38, 21 }, { 57, 21 }, { 76, 21 }, { 95, 21 }, { 114, 21 }, { 133, 21 }, { 152, 21 }, { 171, 21 }, { 190, 21 }, { 209, 21 }, { 223, 21 },
30 { 0, 42 }, { 19, 42 }, { 38, 42 }, { 57, 42 }, { 76, 42 }, { 95, 42 }, { 114, 42 }, { 133, 42 }, { 152, 42 }, { 171, 42 }, { 190, 42 }, { 209, 42 }, { 223, 42 },
31 { 0, 63 }, { 19, 63 }, { 38, 63 }, { 57, 63 }, { 76, 63 }, { 95, 63 }, { 114, 63 }, { 133, 63 }, { 152, 63 }, { 171, 63 }, { 190, 63 }, { 209, 63 }, { 223, 63 }
32 }, {
33 // LED Index to Flag
34 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
35 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
36 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
37 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4
38 } };
39#endif
40
diff --git a/keyboards/nack/nack.h b/keyboards/nack/nack.h
new file mode 100644
index 000000000..30e310a48
--- /dev/null
+++ b/keyboards/nack/nack.h
@@ -0,0 +1,31 @@
1/* Copyright 2020 pastapojken <pastapojken@gmail.com>
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#include "quantum.h"
19
20#define LAYOUT( \
21 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k10, k11, k12,\
22 k13, k14, k15, k16, k17, k18, k19, k20, k21, k22, k23, k24, k25,\
23 k26, k27, k28, k29, k30, k31, k32, k33, k34, k35, k36, k37, k38,\
24 k39, k40, k41, k42, k43, k44, k45, k46, k47, k48, k49, k50, k51\
25) \
26{ \
27 { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k10, k11, k12 },\
28 { k13, k14, k15, k16, k17, k18, k19, k20, k21, k22, k23, k24, k25 },\
29 { k26, k27, k28, k29, k30, k31, k32, k33, k34, k35, k36, k37, k38 },\
30 { k39, k40, k41, k42, k43, k44, k45, k46, k47, k48, k49, k50, k51 },\
31}
diff --git a/keyboards/nack/readme.md b/keyboards/nack/readme.md
new file mode 100644
index 000000000..6a1adeaf7
--- /dev/null
+++ b/keyboards/nack/readme.md
@@ -0,0 +1,21 @@
1# nack
2
3
4A ISO-friendly ortholinear keyboard, 13x4 keys.
5See [screenshots](https://imgur.com/a/PPO18Lc).
6
7* Keyboard Maintainer: [pastapojken](https://github.com/pastapojken)
8* Hardware Supported: nack PCB
9* Hardware Availability: [github repo](https://github.com/pastapojken/nack)
10
11Make example for this keyboard (after setting up your build environment):
12
13 make nack:default
14
15Flashing example for this keyboard:
16
17 make nack:default:flash
18
19To reset the board into bootloader mode, press the reset button on top of the keyboard. It's the tiny button to the upper left of the board. If you are using the official case/plate you might need to use something thin to reach & press it.
20
21See 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/nack/rules.mk b/keyboards/nack/rules.mk
new file mode 100644
index 000000000..a3374bf21
--- /dev/null
+++ b/keyboards/nack/rules.mk
@@ -0,0 +1,23 @@
1# MCU name
2MCU = STM32F303
3
4# Build Options
5# change yes to no to disable
6#
7BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
8MOUSEKEY_ENABLE = no # Mouse keys
9EXTRAKEY_ENABLE = no # Audio control and System control
10CONSOLE_ENABLE = no # Console for debug
11COMMAND_ENABLE = no # Commands for debug and configuration
12# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
13SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
14# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
15NKRO_ENABLE = yes # USB Nkey Rollover
16BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
17RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
18BLUETOOTH_ENABLE = no # Enable Bluetooth
19AUDIO_ENABLE = yes # Audio output
20RGB_MATRIX_ENABLE = WS2812
21WS2812_DRIVER = spi
22AUDIO_DRIVER = dac_additive # How to drive the 2 speakers
23UNICODE_ENABLE = yes # Unicode support