aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/noxary/268/268.c15
-rw-r--r--keyboards/noxary/268/268.h29
-rw-r--r--keyboards/noxary/268/config.h38
-rw-r--r--keyboards/noxary/268/keymaps/via/keymap.c110
-rw-r--r--keyboards/noxary/268/keymaps/via/readme.md3
-rw-r--r--keyboards/noxary/268/keymaps/via/rules.mk5
-rw-r--r--keyboards/noxary/268/readme.md3
-rw-r--r--keyboards/noxary/268/rules.mk28
8 files changed, 193 insertions, 38 deletions
diff --git a/keyboards/noxary/268/268.c b/keyboards/noxary/268/268.c
index 9d819aa4e..60ea6070d 100644
--- a/keyboards/noxary/268/268.c
+++ b/keyboards/noxary/268/268.c
@@ -1 +1,16 @@
1/* Copyright 2019 Rozakiin
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 */
1#include "268.h" 16#include "268.h"
diff --git a/keyboards/noxary/268/268.h b/keyboards/noxary/268/268.h
index 28565318a..bef5ff5a0 100644
--- a/keyboards/noxary/268/268.h
+++ b/keyboards/noxary/268/268.h
@@ -1,11 +1,34 @@
1#ifndef noxary268_H 1/* Copyright 2020 Rozakiin
2#define noxary268_H 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#pragma once
3 17
4#include "quantum.h" 18#include "quantum.h"
5 19
6// readability 20// readability
7#define ____ KC_NO 21#define ____ KC_NO
8 22
23/* This a shortcut to help you visually see your layout.
24 *
25 * The first section contains all of the arguments representing the physical
26 * layout of the board and position of the keys.
27 *
28 * The second converts the arguments into a two-dimensional array which
29 * represents the switch matrix.
30 */
31
9/* 32/*
10 * LAYOUT OPTIONS 33 * LAYOUT OPTIONS
11 * 34 *
@@ -79,5 +102,3 @@
79 { K300, ____, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, ____, K314, K315 }, \ 102 { K300, ____, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, ____, K314, K315 }, \
80 { K400, K401, K402, ____, ____, ____, K406, ____, ____, ____, K410, K411, ____, K413, K414, K415 } \ 103 { K400, K401, K402, ____, ____, ____, K406, ____, ____, ____, K410, K411, ____, K413, K414, K415 } \
81} 104}
82
83#endif
diff --git a/keyboards/noxary/268/config.h b/keyboards/noxary/268/config.h
index 8264b8019..8038ef8bb 100644
--- a/keyboards/noxary/268/config.h
+++ b/keyboards/noxary/268/config.h
@@ -1,5 +1,5 @@
1/* 1/*
2Copyright 2017 Ruari Armstrong <ukkeyboards@gmail.com> 2Copyright 2020 Rozakiin
3 3
4This program is free software: you can redistribute it and/or modify 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 5it under the terms of the GNU General Public License as published by
@@ -15,29 +15,37 @@ You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17 17
18#ifndef CONFIG_H 18#pragma once
19#define CONFIG_H
20 19
21#include "config_common.h" 20#include "config_common.h"
22 21
23/* USB Device descriptor parameter */ 22/* USB Device descriptor parameter */
24#define VENDOR_ID 0x4E58 23#define VENDOR_ID 0x4E58 //"NX"
25#define PRODUCT_ID 0x0044 24#define PRODUCT_ID 0x010C //268
26#define DEVICE_VER 0x0001 25#define DEVICE_VER 0x0001
27#define MANUFACTURER Noxary 26#define MANUFACTURER Noxary
28#define PRODUCT 268 27#define PRODUCT 268
29#define DESCRIPTION QMK keyboard firmware for 268 28#define DESCRIPTION A fully customizable 65% keyboard.
30 29
31/* key matrix size */ 30/* key matrix size */
32#define MATRIX_ROWS 5 31#define MATRIX_ROWS 5
33#define MATRIX_COLS 16 32#define MATRIX_COLS 16
34 33
35/* key matrix pins */ 34/*
35 * Keyboard Matrix Assignments
36 *
37 * Change this to how you wired your keyboard
38 * COLS: AVR pins used for columns, left to right
39 * ROWS: AVR pins used for rows, top to bottom
40 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
41 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
42 *
43*/
36#define MATRIX_ROW_PINS { F5, F4, F0, F1, D0 } 44#define MATRIX_ROW_PINS { F5, F4, F0, F1, D0 }
37#define MATRIX_COL_PINS { C6, C7, F7, F6, E6, B0, D1, B2, B3, D2, D3, D5, D4, D6, D7, B4 } 45#define MATRIX_COL_PINS { C6, C7, F7, F6, E6, B0, D1, B2, B3, D2, D3, D5, D4, D6, D7, B4 }
38#define UNUSED_PINS 46#define UNUSED_PINS
39 47
40/* COL2ROW or ROW2COL */ 48/* COL2ROW, ROW2COL*/
41#define DIODE_DIRECTION COL2ROW 49#define DIODE_DIRECTION COL2ROW
42 50
43/* number of backlight levels */ 51/* number of backlight levels */
@@ -53,16 +61,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
53#define LOCKING_SUPPORT_ENABLE 61#define LOCKING_SUPPORT_ENABLE
54 62
55/* Locking resynchronize hack */ 63/* Locking resynchronize hack */
56#define LOCKING_RESYNC_ENABLE 64#define LOCKING_RESYNC_ENABLE \ No newline at end of file
57
58/* ws2812b options */
59#define RGB_DI_PIN B5
60#ifdef RGB_DI_PIN
61#define RGBLIGHT_ANIMATIONS
62#define RGBLED_NUM 18
63#define RGBLIGHT_HUE_STEP 16
64#define RGBLIGHT_SAT_STEP 16
65#define RGBLIGHT_VAL_STEP 16
66#endif
67
68#endif
diff --git a/keyboards/noxary/268/keymaps/via/keymap.c b/keyboards/noxary/268/keymaps/via/keymap.c
new file mode 100644
index 000000000..431ea5bac
--- /dev/null
+++ b/keyboards/noxary/268/keymaps/via/keymap.c
@@ -0,0 +1,110 @@
1/* Copyright 2020 Rozakiin
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// Each layer gets a name for readability, which is then used in the keymap matrix below.
19// The underscores don't mean anything - you can have a layer called STUFF or any other name.
20// Layer names don't all need to be of the same length, obviously, and you can also skip them
21// entirely and just use numbers.
22enum layer_names {
23 _BL,
24 _FL1,
25 _FL2,
26 _FL3
27};
28
29const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
30 /* Base Layer - For ISO enter use ANSI enter
31 * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┬───┐
32 * │Esc│ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │ \ │Bsp│ ` │
33 * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤
34 * │ Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ [ │ ] │ \ │Del│
35 * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
36 * │ Caps │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │ # │Ent │PgU│
37 * ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
38 * │Sft │ \ │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │Shift │ ↑ │PgD│
39 * ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┼───┴┬──┴─┬─┴──┬───┼───┼───┤
40 * │Ctrl│Win │Alt │ Space │Alt │M(1)│Ctrl│ ← │ ↓ │ → │
41 * └────┴────┴────┴─────────────────────┴────┴────┴────┴───┴───┴───┘
42 */
43 [_BL] = LAYOUT_all(
44 KC_ESC, 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_BSLS, KC_BSPC, KC_GRV,
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, KC_BSLS, KC_DEL,
46 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_NUHS, KC_ENT, KC_PGUP,
47 KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_RSFT, KC_UP, KC_PGDN,
48 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(_FL1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
49 ),
50 /* Function Layer 1 - For ISO enter use ANSI enter
51 * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┬───┐
52 * │ ` │F1 │F2 │F3 │F4 │F5 │F6 │F7 │F8 │F9 │F10│F11│F12│ │PSc│ │
53 * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤
54 * │ │ │ │ │RST│ │ │ │ │ │ │ │ │ │Ins│
55 * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
56 * │ │ │ │ │ │ │ │ │ │ │ │ │ │Hom│
57 * ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
58 * │ │ │ │ │ │ │ │ │ │Bl-│Bl+│ │ Mute │Vl+│End│
59 * ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┼───┴┬──┴─┬─┴──┬───┼───┼───┤
60 * │ │ │ │ BL_Toggle │ │ │ │ │Vl-│ │
61 * └────┴────┴────┴─────────────────────┴────┴────┴────┴───┴───┴───┘
62 */
63 [_FL1] = LAYOUT_all(
64 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_PSCR, _______,
65 _______, _______, _______, _______, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_INS,
66 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME,
67 _______, _______, _______, _______, _______, _______, _______, _______, _______, BL_DEC, BL_INC, _______, KC_MUTE, KC_MUTE, KC_VOLU, KC_END,
68 _______, _______, _______, BL_TOGG, _______, _______, _______, _______, KC_VOLD, _______
69 ),
70 /* Function Layer 2 - For ISO enter use ANSI enter
71 * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┬───┐
72 * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
73 * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤
74 * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
75 * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
76 * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
77 * ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
78 * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
79 * ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┼───┴┬──┴─┬─┴──┬───┼───┼───┤
80 * │ │ │ │ │ │ │ │ │ │ │
81 * └────┴────┴────┴─────────────────────┴────┴────┴────┴───┴───┴───┘
82 */
83 [_FL3] = LAYOUT_all(
84 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
85 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
86 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
87 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
88 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
89 ),
90 /* Function Layer 3 - For ISO enter use ANSI enter
91 * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┬───┐
92 * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
93 * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤
94 * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
95 * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
96 * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
97 * ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
98 * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
99 * ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┼───┴┬──┴─┬─┴──┬───┼───┼───┤
100 * │ │ │ │ │ │ │ │ │ │ │
101 * └────┴────┴────┴─────────────────────┴────┴────┴────┴───┴───┴───┘
102 */
103 [_FL3] = LAYOUT_all(
104 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
105 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
106 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
107 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
108 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
109 ),
110}; \ No newline at end of file
diff --git a/keyboards/noxary/268/keymaps/via/readme.md b/keyboards/noxary/268/keymaps/via/readme.md
new file mode 100644
index 000000000..e2adb0eef
--- /dev/null
+++ b/keyboards/noxary/268/keymaps/via/readme.md
@@ -0,0 +1,3 @@
1# The VIA keymap for Noxary 268
2
3![Noxary 268 Layout Image](https://i.imgur.com/D9jQz6g.png)
diff --git a/keyboards/noxary/268/keymaps/via/rules.mk b/keyboards/noxary/268/keymaps/via/rules.mk
new file mode 100644
index 000000000..c2e96d233
--- /dev/null
+++ b/keyboards/noxary/268/keymaps/via/rules.mk
@@ -0,0 +1,5 @@
1VIA_ENABLE = yes
2MOUSEKEY_ENABLE = no
3CONSOLE_ENABLE = no # Console for debug
4COMMAND_ENABLE = no # Commands for debug and configuration
5LTO_ENABLE = yes
diff --git a/keyboards/noxary/268/readme.md b/keyboards/noxary/268/readme.md
index adc1add18..e1f3f0642 100644
--- a/keyboards/noxary/268/readme.md
+++ b/keyboards/noxary/268/readme.md
@@ -6,8 +6,7 @@ A fully customizable 65% keyboard.
6 6
7* Keyboard Maintainer: [Rozakiin](https://github.com/rozakiin) 7* Keyboard Maintainer: [Rozakiin](https://github.com/rozakiin)
8* Hardware Supported: 268 PCB 8* Hardware Supported: 268 PCB
9 * rev1 9* Hardware Availability: [Noxary](https://noxary.co)
10* Hardware Availability: [Noxary](https://www.instagram.com/noxaryco/)
11 10
12Make example for this keyboard (after setting up your build environment): 11Make example for this keyboard (after setting up your build environment):
13 12
diff --git a/keyboards/noxary/268/rules.mk b/keyboards/noxary/268/rules.mk
index f2d381510..11c8a575b 100644
--- a/keyboards/noxary/268/rules.mk
+++ b/keyboards/noxary/268/rules.mk
@@ -12,15 +12,21 @@ MCU = atmega32u4
12BOOTLOADER = atmel-dfu 12BOOTLOADER = atmel-dfu
13 13
14# Build Options 14# Build Options
15# comment out to disable the options. 15# change yes to no to disable
16# 16#
17BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration 17BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
18MOUSEKEY_ENABLE = no # Mouse keys 18MOUSEKEY_ENABLE = yes # Mouse keys
19EXTRAKEY_ENABLE = yes # Audio control and System control 19EXTRAKEY_ENABLE = yes # Audio control and System control
20CONSOLE_ENABLE = no # Console for debug 20CONSOLE_ENABLE = yes # Console for debug
21COMMAND_ENABLE = no # Commands for debug and configuration 21COMMAND_ENABLE = yes # Commands for debug and configuration
22SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 22# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
23NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work 23SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
24BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality 24# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
25AUDIO_ENABLE = no 25NKRO_ENABLE = no # USB Nkey Rollover
26RGBLIGHT_ENABLE = no 26BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
27RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
28MIDI_ENABLE = no # MIDI support
29UNICODE_ENABLE = no # Unicode
30BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
31AUDIO_ENABLE = no # Audio output on port C6
32FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches