aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryiancar <yiangosyiangou@cytanet.com.cy>2022-01-11 01:36:44 +0000
committerGitHub <noreply@github.com>2022-01-10 17:36:44 -0800
commitda1a01b811a382ac92b44558dc4f6eec9314571f (patch)
treedf2a85f1b0eedcb1f51cf125b37ce92497674081
parent79a8b55af250932e7c30a5f5864eda23c829737e (diff)
downloadqmk_firmware-da1a01b811a382ac92b44558dc4f6eec9314571f.tar.gz
qmk_firmware-da1a01b811a382ac92b44558dc4f6eec9314571f.zip
[Keyboard] Add Nebula65B (#15433)
Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com> Co-authored-by: yiancar <yiancar@gmail.com>
-rwxr-xr-xkeyboards/nebula68b/config.h134
-rwxr-xr-xkeyboards/nebula68b/info.json84
-rwxr-xr-xkeyboards/nebula68b/keymaps/default/keymap.c32
-rwxr-xr-xkeyboards/nebula68b/keymaps/default/readme.md7
-rwxr-xr-xkeyboards/nebula68b/keymaps/via/keymap.c46
-rwxr-xr-xkeyboards/nebula68b/keymaps/via/readme.md7
-rwxr-xr-xkeyboards/nebula68b/keymaps/via/rules.mk1
-rwxr-xr-xkeyboards/nebula68b/nebula68b.c111
-rwxr-xr-xkeyboards/nebula68b/nebula68b.h36
-rwxr-xr-xkeyboards/nebula68b/readme.md32
-rwxr-xr-xkeyboards/nebula68b/rules.mk22
11 files changed, 512 insertions, 0 deletions
diff --git a/keyboards/nebula68b/config.h b/keyboards/nebula68b/config.h
new file mode 100755
index 000000000..1c0d6db23
--- /dev/null
+++ b/keyboards/nebula68b/config.h
@@ -0,0 +1,134 @@
1/*
2Copyright 2021 Yiancar
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
20#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0x8968
24#define PRODUCT_ID 0x5338
25#define DEVICE_VER 0x0001
26#define MANUFACTURER Yiancar-Designs
27#define PRODUCT NEBULA68B
28
29/* key matrix size */
30#define MATRIX_ROWS 5
31#define MATRIX_COLS 15
32
33#define MATRIX_ROW_PINS { D4, D6, D7, B4, E6 }
34#define MATRIX_COL_PINS { D0, D1, D2, D3, D5, B5, B6, C6, C7, F7, F6, F5, F4, F1, F0 }
35
36/* COL2ROW, ROW2COL*/
37#define DIODE_DIRECTION COL2ROW
38
39/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
40#define DEBOUNCE 5
41
42/* define if matrix has ghost (lacks anti-ghosting diodes) */
43// #define MATRIX_HAS_GHOST
44
45/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
46 * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
47 */
48// #define GRAVE_ESC_CTRL_OVERRIDE
49
50/*
51 * Force NKRO
52 *
53 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
54 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
55 * makefile for this to work.)
56 *
57 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
58 * until the next keyboard reset.
59 *
60 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
61 * fully operational during normal computer usage.
62 *
63 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
64 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
65 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
66 * power-up.
67 *
68 */
69// #define FORCE_NKRO
70
71/* Bootmagic Lite key configuration */
72#define BOOTMAGIC_LITE_ROW 0
73#define BOOTMAGIC_LITE_COLUMN 0
74
75/* RGB options */
76
77#define RGB_DI_PIN B7
78#define DRIVER_LED_TOTAL 79
79#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 130
80#define RGB_DISABLE_WHEN_USB_SUSPENDED
81#define RGB_MATRIX_KEYPRESSES
82#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
83
84// RGB Matrix Animation modes. Explicitly enabled
85// For full list of effects, see:
86// https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects
87#define ENABLE_RGB_MATRIX_ALPHAS_MODS
88#define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
89#define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
90#define ENABLE_RGB_MATRIX_BREATHING
91#define ENABLE_RGB_MATRIX_BAND_SAT
92#define ENABLE_RGB_MATRIX_BAND_VAL
93#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
94#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
95#define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
96#define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
97#define ENABLE_RGB_MATRIX_CYCLE_ALL
98#define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
99#define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
100#define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
101#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN
102#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
103#define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
104#define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
105#define ENABLE_RGB_MATRIX_DUAL_BEACON
106#define ENABLE_RGB_MATRIX_RAINBOW_BEACON
107#define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
108#define ENABLE_RGB_MATRIX_RAINDROPS
109#define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
110#define ENABLE_RGB_MATRIX_HUE_BREATHING
111#define ENABLE_RGB_MATRIX_HUE_PENDULUM
112#define ENABLE_RGB_MATRIX_HUE_WAVE
113#define ENABLE_RGB_MATRIX_PIXEL_RAIN
114#define ENABLE_RGB_MATRIX_PIXEL_FLOW
115#define ENABLE_RGB_MATRIX_PIXEL_FRACTAL
116// enabled only if RGB_MATRIX_FRAMEBUFFER_EFFECTS is defined
117#define ENABLE_RGB_MATRIX_TYPING_HEATMAP
118#define ENABLE_RGB_MATRIX_DIGITAL_RAIN
119// enabled only of RGB_MATRIX_KEYPRESSES or RGB_MATRIX_KEYRELEASES is defined
120#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
121#define ENABLE_RGB_MATRIX_SOLID_REACTIVE
122#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
123#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
124#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
125#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
126#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
127#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
128#define ENABLE_RGB_MATRIX_SPLASH
129#define ENABLE_RGB_MATRIX_MULTISPLASH
130#define ENABLE_RGB_MATRIX_SOLID_SPLASH
131#define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
132
133// // VIA lighting is handled by the keyboard-level code
134#define VIA_CUSTOM_LIGHTING_ENABLE
diff --git a/keyboards/nebula68b/info.json b/keyboards/nebula68b/info.json
new file mode 100755
index 000000000..253e9682e
--- /dev/null
+++ b/keyboards/nebula68b/info.json
@@ -0,0 +1,84 @@
1{
2 "keyboard_name": "NEBULA68B",
3 "url": "",
4 "maintainer": "yiancar",
5 "layouts": {
6 "LAYOUT_68_ansi_split_bs": {
7 "layout": [
8 {"x":0, "y":0},
9 {"x":1, "y":0},
10 {"x":2, "y":0},
11 {"x":3, "y":0},
12 {"x":4, "y":0},
13 {"x":5, "y":0},
14 {"x":6, "y":0},
15 {"x":7, "y":0},
16 {"x":8, "y":0},
17 {"x":9, "y":0},
18 {"x":10, "y":0},
19 {"x":11, "y":0},
20 {"x":12, "y":0},
21 {"x":13, "y":0},
22 {"x":14, "y":0},
23 {"x":15.25, "y":0},
24 {"x":16.25, "y":0},
25
26 {"x":0, "y":1, "w":1.5},
27 {"x":1.5, "y":1},
28 {"x":2.5, "y":1},
29 {"x":3.5, "y":1},
30 {"x":4.5, "y":1},
31 {"x":5.5, "y":1},
32 {"x":6.5, "y":1},
33 {"x":7.5, "y":1},
34 {"x":8.5, "y":1},
35 {"x":9.5, "y":1},
36 {"x":10.5, "y":1},
37 {"x":11.5, "y":1},
38 {"x":12.5, "y":1},
39 {"x":13.5, "y":1, "w":1.5},
40 {"x":15.25, "y":1},
41 {"x":16.25, "y":1},
42
43 {"x":0, "y":2, "w":1.75},
44 {"x":1.75, "y":2},
45 {"x":2.75, "y":2},
46 {"x":3.75, "y":2},
47 {"x":4.75, "y":2},
48 {"x":5.75, "y":2},
49 {"x":6.75, "y":2},
50 {"x":7.75, "y":2},
51 {"x":8.75, "y":2},
52 {"x":9.75, "y":2},
53 {"x":10.75, "y":2},
54 {"x":11.75, "y":2},
55 {"x":12.75, "y":2, "w":2.25},
56
57 {"x":0, "y":3, "w":2.25},
58 {"x":2.25, "y":3},
59 {"x":3.25, "y":3},
60 {"x":4.25, "y":3},
61 {"x":5.25, "y":3},
62 {"x":6.25, "y":3},
63 {"x":7.25, "y":3},
64 {"x":8.25, "y":3},
65 {"x":9.25, "y":3},
66 {"x":10.25, "y":3},
67 {"x":11.25, "y":3},
68 {"x":12.25, "y":3, "w":2.75},
69 {"x":15.25, "y":3},
70
71 {"x":0, "y":4, "w":1.25},
72 {"x":1.25, "y":4, "w":1.25},
73 {"x":2.5, "y":4, "w":1.25},
74 {"x":3.75, "y":4, "w":6.25},
75 {"x":10, "y":4, "w":1.25},
76 {"x":11.25, "y":4, "w":1.25},
77 {"x":12.5, "y":4, "w":1.25},
78 {"x":14.25, "y":4},
79 {"x":15.25, "y":4},
80 {"x":16.25, "y":4}
81 ]
82 }
83 }
84}
diff --git a/keyboards/nebula68b/keymaps/default/keymap.c b/keyboards/nebula68b/keymaps/default/keymap.c
new file mode 100755
index 000000000..efb16d920
--- /dev/null
+++ b/keyboards/nebula68b/keymaps/default/keymap.c
@@ -0,0 +1,32 @@
1/* Copyright 2021 Yiancar
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
18const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
19[0] = LAYOUT_68_ansi_split_bs( /* Base */
20 KC_GESC, 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_DEL, KC_BSPC, KC_INS, KC_PGUP,
21 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, KC_PGDN,
22 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,
23 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
24 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
25
26[1] = LAYOUT_68_ansi_split_bs( /* FN */
27 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, KC_TRNS, KC_TRNS,
28 KC_TRNS, RGB_TOG, RGB_MOD, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, RGB_VAD, RGB_VAI, RGB_SPD, RGB_SPI, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
29 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,
30 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,
31 KC_VOLU, KC_VOLD, KC_MUTE, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS)
32};
diff --git a/keyboards/nebula68b/keymaps/default/readme.md b/keyboards/nebula68b/keymaps/default/readme.md
new file mode 100755
index 000000000..699c74155
--- /dev/null
+++ b/keyboards/nebula68b/keymaps/default/readme.md
@@ -0,0 +1,7 @@
1# The default keymap for Nebula68. VIA support disabled.
2
3![Layer 0](https://i.imgur.com/dXyRwb1.png)
4
5![Layer 1](https://i.imgur.com/kxXnxVQ.png)
6
7Default layer is normal ANSI 68%
diff --git a/keyboards/nebula68b/keymaps/via/keymap.c b/keyboards/nebula68b/keymaps/via/keymap.c
new file mode 100755
index 000000000..565e11bd3
--- /dev/null
+++ b/keyboards/nebula68b/keymaps/via/keymap.c
@@ -0,0 +1,46 @@
1/* Copyright 2021 Yiancar
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
18const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
19[0] = LAYOUT_68_ansi_split_bs( /* Base */
20 KC_GESC, 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_DEL, KC_BSPC, KC_INS, KC_PGUP,
21 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, KC_PGDN,
22 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,
23 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
24 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
25
26[1] = LAYOUT_68_ansi_split_bs( /* FN */
27 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, KC_TRNS, KC_TRNS,
28 KC_TRNS, RGB_TOG, RGB_MOD, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, RGB_VAD, RGB_VAI, RGB_SPD, RGB_SPI, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
29 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,
30 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,
31 KC_VOLU, KC_VOLD, KC_MUTE, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
32
33[2] = LAYOUT_68_ansi_split_bs( /* Empty for dynamic keymaps */
34 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, KC_TRNS, KC_TRNS, KC_TRNS,
35 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, KC_TRNS, KC_TRNS,
36 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,
37 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,
38 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
39
40[3] = LAYOUT_68_ansi_split_bs( /* Empty for dynamic keymaps */
41 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, KC_TRNS, KC_TRNS, KC_TRNS,
42 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, KC_TRNS, KC_TRNS,
43 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,
44 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,
45 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS)
46};
diff --git a/keyboards/nebula68b/keymaps/via/readme.md b/keyboards/nebula68b/keymaps/via/readme.md
new file mode 100755
index 000000000..75cbcac25
--- /dev/null
+++ b/keyboards/nebula68b/keymaps/via/readme.md
@@ -0,0 +1,7 @@
1# The default keymap for Nebula68. VIA support enabled.
2
3![Layer 0](https://i.imgur.com/dXyRwb1.png)
4
5![Layer 1](https://i.imgur.com/kxXnxVQ.png)
6
7Default layer is normal ANSI 68%
diff --git a/keyboards/nebula68b/keymaps/via/rules.mk b/keyboards/nebula68b/keymaps/via/rules.mk
new file mode 100755
index 000000000..1e5b99807
--- /dev/null
+++ b/keyboards/nebula68b/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes
diff --git a/keyboards/nebula68b/nebula68b.c b/keyboards/nebula68b/nebula68b.c
new file mode 100755
index 000000000..4842d9be9
--- /dev/null
+++ b/keyboards/nebula68b/nebula68b.c
@@ -0,0 +1,111 @@
1/* Copyright 2021 Yiancar
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 "nebula68b.h"
18#include <lib/lib8tion/lib8tion.h>
19
20#ifdef RGB_MATRIX_ENABLE
21// clang-format off
22led_config_t g_led_config = { {
23 { 0, 1, 2, 4, 5, 6, 7, 9, 10, 11, 13, 14, 15, 18, 19 },
24 { 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 16, 22 },
25 { 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 23, 50, 20 },
26 { 64, NO_LED, 63, 62, 61, 60, 59, 58, 57, 56, 55, 54, 53, 52, 21 },
27 { 65, 66, 68, NO_LED, NO_LED, NO_LED, 70, NO_LED, NO_LED, 72, 73, 74, 76, 77, 78 }
28}, {
29 { 6, 10}, { 19, 10}, { 32, 10}, { 44, 13}, { 45, 10}, { 58, 10}, { 71, 10}, { 84, 10}, { 88, 13}, { 97, 10}, {110, 10}, {123, 10}, {132, 13}, {136, 10}, {149, 10}, {162, 10},
30 {175, 10}, {179, 13}, {188, 10}, {205, 10}, {218, 10}, {218, 23}, {205, 23}, {185, 23}, {169, 23}, {156, 23}, {143, 23}, {130, 23}, {117, 23}, {104, 23}, { 91, 23}, { 78, 23},
31 { 65, 23}, { 52, 23}, { 39, 23}, { 26, 23}, { 10, 23}, { 4, 26}, { 11, 35}, { 29, 35}, { 42, 35}, { 55, 35}, { 68, 35}, { 81, 35}, { 94, 35}, {107, 35}, {120, 35}, {133, 35},
32 {146, 35}, {159, 35}, {180, 35}, {220, 32}, {205, 48}, {177, 48}, {153, 48}, {140, 48}, {127, 48}, {114, 48}, {101, 48}, { 88, 48}, { 75, 48}, { 62, 48}, { 49, 48}, { 36, 48},
33 { 15, 48}, { 8, 61}, { 24, 61}, { 32, 52}, { 41, 61}, { 82, 56}, { 89, 61}, {132, 53}, {138, 61}, {154, 61}, {170, 61}, {179, 53}, {192, 61}, {205, 61}, {218, 61}
34}, {
35 1, 4, 4, 2, 4, 4, 4, 4, 2, 4, 4, 4, 2, 4, 4, 4, 4, 2, 1, 1, 1,
36 1, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 2,
37 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 2,
38 1, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1,
39 1, 1, 2, 1, 2, 4, 2, 1, 1, 1, 2, 1, 1, 1
40} };
41// clang-format on
42#endif
43
44#if defined(RGB_MATRIX_ENABLE) && defined(VIA_ENABLE)
45void raw_hid_receive_kb(uint8_t *data, uint8_t length) {
46 uint8_t *command_id = &(data[0]);
47 uint8_t *command_data = &(data[1]);
48 switch (*command_id) {
49 case id_lighting_set_value: {
50 uint8_t *value_id = &(command_data[0]);
51 uint8_t *value_data = &(command_data[1]);
52 switch (*value_id) {
53 case id_qmk_rgblight_brightness: {
54 rgb_matrix_sethsv_noeeprom(rgb_matrix_get_hue(), rgb_matrix_get_sat(), scale8(value_data[0], RGB_MATRIX_MAXIMUM_BRIGHTNESS));
55 break;
56 }
57 case id_qmk_rgblight_effect: {
58 rgb_matrix_mode_noeeprom(value_data[0]);
59 if (value_data[0] == 0) {
60 rgb_matrix_disable_noeeprom();
61 } else {
62 rgb_matrix_enable_noeeprom();
63 }
64 break;
65 }
66 case id_qmk_rgblight_effect_speed: {
67 rgb_matrix_set_speed_noeeprom(value_data[0] * 85);
68 break;
69 }
70 case id_qmk_rgblight_color: {
71 rgb_matrix_sethsv_noeeprom(value_data[0], value_data[1], rgb_matrix_get_val());
72 break;
73 }
74 }
75 break;
76 }
77 case id_lighting_get_value: {
78 uint8_t *value_id = &(command_data[0]);
79 uint8_t *value_data = &(command_data[1]);
80 switch (*value_id) {
81 case id_qmk_rgblight_brightness: {
82 value_data[0] = ((uint16_t)rgb_matrix_get_val() * 255) / RGB_MATRIX_MAXIMUM_BRIGHTNESS;
83 break;
84 }
85 case id_qmk_rgblight_effect: {
86 value_data[0] = rgb_matrix_get_mode();
87 break;
88 }
89 case id_qmk_rgblight_effect_speed: {
90 value_data[0] = rgb_matrix_get_speed() / 85;
91 break;
92 }
93 case id_qmk_rgblight_color: {
94 value_data[0] = rgb_matrix_get_hue();
95 value_data[1] = rgb_matrix_get_sat();
96 break;
97 }
98 }
99 break;
100 }
101 case id_lighting_save: {
102 eeconfig_update_rgb_matrix();
103 break;
104 }
105 default: {
106 *command_id = id_unhandled;
107 break;
108 }
109 }
110}
111#endif
diff --git a/keyboards/nebula68b/nebula68b.h b/keyboards/nebula68b/nebula68b.h
new file mode 100755
index 000000000..dd3469c54
--- /dev/null
+++ b/keyboards/nebula68b/nebula68b.h
@@ -0,0 +1,36 @@
1/* Copyright 2021 Yiancar
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
17
18#define XXX KC_NO
19
20#include "quantum.h"
21
22// This a shortcut to help you visually see your layout.
23
24#define LAYOUT_68_ansi_split_bs( \
25 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K1D, K0D, K0E, K2E, \
26 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K2C, K1E, K3E, \
27 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2D, \
28 K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, \
29 K40, K41, K42, K46, K49, K4A, K4B, K4C, K4D, K4E \
30) { \
31 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \
32 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E }, \
33 { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E }, \
34 { K30, XXX, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \
35 { K40, K41, K42, XXX, XXX, XXX, K46, XXX, XXX, K49, K4A, K4B, K4C, K4D, K4E } \
36}
diff --git a/keyboards/nebula68b/readme.md b/keyboards/nebula68b/readme.md
new file mode 100755
index 000000000..c0834e463
--- /dev/null
+++ b/keyboards/nebula68b/readme.md
@@ -0,0 +1,32 @@
1# Nebula68B
2
3This is a standard fixed layout 68% PCB. It supports VIA, full per-key RGB and underglow RGB. This is revision B.
4
5* Keyboard Maintainer: [Yiancar](http://yiancar-designs.com/) and on [GitHub](https://github.com/yiancar)
6* Hardware Supported: A 68% keyboard with ATMEGA32U4
7* Hardware Availability: https://spaceholdings.net/
8
9## Instructions
10
11### Build
12
13Make example for this keyboard (after setting up your build environment):
14
15 make nebula68b:via
16
17See 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).
18
19### Reset
20
21- Unplug
22- Hold Escape
23- Plug In
24- Unplug
25- Release Escape
26
27### Flash
28
29- Unplug
30- Hold Escape
31- Plug In
32- Flash using QMK Toolbox or dfu-util (`make nebula65b:<keymap>:flash`)
diff --git a/keyboards/nebula68b/rules.mk b/keyboards/nebula68b/rules.mk
new file mode 100755
index 000000000..92dd19880
--- /dev/null
+++ b/keyboards/nebula68b/rules.mk
@@ -0,0 +1,22 @@
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 = yes # Enable Bootmagic Lite
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15NKRO_ENABLE = yes # Enable N-Key Rollover
16BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
17RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
18AUDIO_ENABLE = no # Audio output
19RGB_MATRIX_ENABLE = yes # Enable Per-key RGB
20RGB_MATRIX_DRIVER = WS2812 # Per-key RGB Driver
21
22LTO_ENABLE = yes