-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Slight changes to schematic ESD - better USB routing - finished firmware - unnecessary NRST button removed
- Loading branch information
Showing
31 changed files
with
77,163 additions
and
49,950 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
**auto_save** | ||
**autosave** | ||
**cache** | ||
kicad/production |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,68 @@ | ||
#pragma once | ||
|
||
#define ENCODER_MAP_ENABLE | ||
|
||
#define WS2812_DI_PIN A15 | ||
#define RGB_MATRIX_LED_COUNT 11 | ||
#define DRIVER_LED_TOTAL RGB_MATRIX_LED_COUNT | ||
|
||
#define RGB_MATRIX_MODS_INDICATOR | ||
#define RGB_MATRIX_LAYER_INDICATOR | ||
|
||
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS | ||
#define RGB_MATRIX_KEYPRESSES | ||
#define RGB_TRIGGER_ON_KEYDOWN | ||
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 | ||
#define RGB_MATRIX_HUE_STEP 4 | ||
#define RGB_MATRIX_SAT_STEP 4 | ||
#define RGB_MATRIX_VAL_STEP 4 | ||
#define RGB_MATRIX_SPD_STEP 16 | ||
#define RGB_MATRIX_DEFAULT_MODE RGB_MATRIX_CYCLE_ALL | ||
#define RGB_MATRIX_DEFAULT_HUE 0 | ||
#define RGB_MATRIX_DEFAULT_SAT 255 | ||
#define RGB_MATRIX_DEFAULT_VAL 32 | ||
#define RGB_MATRIX_DEFAULT_SPD 32 | ||
|
||
#define ENABLE_RGB_MATRIX_ALPHAS_MODS | ||
#define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN | ||
#define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT | ||
#define ENABLE_RGB_MATRIX_BREATHING | ||
#define ENABLE_RGB_MATRIX_BAND_SAT | ||
#define ENABLE_RGB_MATRIX_BAND_VAL | ||
#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT | ||
#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL | ||
#define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT | ||
#define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL | ||
#define ENABLE_RGB_MATRIX_CYCLE_ALL | ||
#define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT | ||
#define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN | ||
#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN | ||
#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL | ||
#define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON | ||
#define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL | ||
#define ENABLE_RGB_MATRIX_CYCLE_SPIRAL | ||
#define ENABLE_RGB_MATRIX_DUAL_BEACON | ||
#define ENABLE_RGB_MATRIX_RAINBOW_BEACON | ||
#define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS | ||
#define ENABLE_RGB_MATRIX_RAINDROPS | ||
#define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS | ||
#define ENABLE_RGB_MATRIX_HUE_BREATHING | ||
#define ENABLE_RGB_MATRIX_HUE_PENDULUM | ||
#define ENABLE_RGB_MATRIX_HUE_WAVE | ||
#define ENABLE_RGB_MATRIX_PIXEL_FRACTAL | ||
#define ENABLE_RGB_MATRIX_PIXEL_FLOW | ||
#define ENABLE_RGB_MATRIX_PIXEL_RAIN | ||
#define ENABLE_RGB_MATRIX_TYPING_HEATMAP | ||
#define ENABLE_RGB_MATRIX_DIGITAL_RAIN | ||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE | ||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE | ||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE | ||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE | ||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS | ||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS | ||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS | ||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS | ||
#define ENABLE_RGB_MATRIX_SPLASH | ||
#define ENABLE_RGB_MATRIX_MULTISPLASH | ||
#define ENABLE_RGB_MATRIX_SOLID_SPLASH | ||
#define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
VIA_ENABLE = yes | ||
VIAL_ENABLE = yes | ||
VIAL_INSECURE = yes | ||
ENCODER_MAP_ENABLE = yes | ||
|
||
VIALRGB_ENABLE = yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,14 @@ | ||
{ | ||
"lighting": "none", | ||
"lighting": "vialrgb", | ||
"matrix": { | ||
"rows": 4, | ||
"cols": 13 | ||
"cols": 10 | ||
}, | ||
"layouts": { | ||
"keymap": | ||
[ | ||
[ { "rx": 7, "ry": 1, "y": 0.75, "x": -1.25 }, "0,0\n\n\n\n\n\n\n\n\ne" ], | ||
[ { "x": -1.25 }, "0,1\n\n\n\n\n\n\n\n\ne" ], | ||
[ { "rx": 7.5, "y": -0.25, "x": -1.75 }, "3,5" ], | ||
[ { "r": 7, "rx": 5.5, "y": -0.75, "x": -3 }, "0,2" ], | ||
[ { "y": -0.75, "x": -4 }, "0,1", { "x": 1 }, "0,3", "0,4" ], | ||
[ { "y": -0.75, "x": -5 }, "0,0" ], | ||
[ { "y": -0.5, "x": -3 }, "1,2" ], | ||
[ { "y": -0.75, "x": -4 }, "1,1", { "x": 1 }, "1,3", "1,4" ], | ||
[ { "y": -0.75, "x": -5 }, "1,0" ], | ||
[ { "y": -0.5, "x": -3 }, "2,2" ], | ||
[ { "y": -0.75, "x": -4 }, "2,1", { "x": 1 }, "2,3", "2,4" ], | ||
[ { "y": -0.75, "x": -5 }, "2,0" ], | ||
[ { "y": -0.25, "x": -3.25, "w": 1.25 }, "3,2", { "w": 2 }, "3,4" ], | ||
[ { "r": -7, "rx": 7, "y": -0.75, "x": 2 }, "0,7" ], | ||
[ { "y": -0.75 }, "0,5", "0,6", { "x": 1 }, "0,8" ], | ||
[ { "y": -0.75, "x": 4 }, "0,9" ], | ||
[ { "y": -0.5, "x": 2 }, "1,7" ], | ||
[ { "y": -0.75 }, "1,5", "1,6", { "x": 1 }, "1,8" ], | ||
[ { "y": -0.75, "x": 4 }, "1,9" ], | ||
[ { "y": -0.5, "x": 2 }, "2,7" ], | ||
[ { "y": -0.75 }, "2,5", "2,6", { "x": 1 }, "2,8" ], | ||
[ { "y": -0.75, "x": 4 }, "2,9" ], | ||
[ { "y": -0.25, "w": 2 }, "3,6", { "w": 1.25 }, "3,7" ] | ||
] | ||
} | ||
[ [ { "rx": 7, "ry": 1, "y": 0.75, "x": -1.25 }, "0,0\n\n\n\n\n\n\n\n\ne" ], [ { "x": -1.25 }, "0,1\n\n\n\n\n\n\n\n\ne" ], [ { "rx": 7.5, "y": -0.25, "x": -1.75 }, "3,5" ], [ { "r": 7, "rx": 5.5, "y": -0.75, "x": -3 }, "0,2" ], [ { "y": -0.75, "x": -4 }, "0,1", { "x": 1 }, "0,3", "0,4" ], [ { "y": -0.75, "x": -5 }, "0,0" ], [ { "y": -0.5, "x": -3 }, "1,2" ], [ { "y": -0.75, "x": -4 }, "1,1", { "x": 1 }, "1,3", "1,4" ], [ { "y": -0.75, "x": -5 }, "1,0" ], [ { "y": -0.5, "x": -3 }, "2,2" ], [ { "y": -0.75, "x": -4 }, "2,1", { "x": 1 }, "2,3", "2,4" ], [ { "y": -0.75, "x": -5 }, "2,0" ], [ { "y": -0.25, "x": -3.25, "w": 1.25 }, "3,2", { "w": 2 }, "3,4" ], [ { "r": -7, "rx": 7, "y": -0.75, "x": 2 }, "0,7" ], [ { "y": -0.75 }, "0,5", "0,6", { "x": 1 }, "0,8" ], [ { "y": -0.75, "x": 4 }, "0,9" ], [ { "y": -0.5, "x": 2 }, "1,7" ], [ { "y": -0.75 }, "1,5", "1,6", { "x": 1 }, "1,8" ], [ { "y": -0.75, "x": 4 }, "1,9" ], [ { "y": -0.5, "x": 2 }, "2,7" ], [ { "y": -0.75 }, "2,5", "2,6", { "x": 1 }, "2,8" ], [ { "y": -0.75, "x": 4 }, "2,9" ], [ { "y": -0.25, "w": 2 }, "3,6", { "w": 1.25 }, "3,7" ] ] | ||
}, | ||
"labels":[ | ||
"Split Backspace" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
#ifdef RGB_MATRIX_ENABLE | ||
// LED index | ||
// 9 10 2 3 | ||
// 1 | ||
// 0 | ||
// 8 7 6 5 4 | ||
|
||
led_config_t g_led_config = { | ||
// Key Matrix to LED Index | ||
{ | ||
{9, 9, 9, 9, 9, 3, 3, 3, 3, 3 }, | ||
{10, 10, 10, 10, 10, 2, 2, 2, 2, 2 }, | ||
{8, 8, 8, 8, 8, 4, 4, 4, 4, 4 }, | ||
{NO_LED, NO_LED, 7, NO_LED, 6, 6, 6, 5, NO_LED, NO_LED, } | ||
}, | ||
// LED Index to Physical Positon | ||
{ | ||
{ 128, 40 }, | ||
{ 128, 30 }, | ||
{ 166, 0 }, | ||
{ 255, 0 }, | ||
{ 255, 48 }, | ||
{ 178, 64 }, | ||
{ 128, 64 }, | ||
{ 77, 64 }, | ||
{ 0, 48 }, | ||
{ 0, 0 }, | ||
{ 115, 0 } | ||
}, | ||
// LED Index to Flag | ||
// https://docs.qmk.fm/#/feature_rgb_matrix?id=flags | ||
{ 8, 8, 2, 2, 2, 2, 2, 2, 2, 2, 2 } | ||
}; | ||
|
||
// Layer and Mods indicator | ||
#define LED_CENTER_TOP 1 | ||
#define LED_CENTER_BOTTOM 0 | ||
|
||
#define LAYER_R layer_colors[layer][0] * RGB_MATRIX_DEFAULT_VAL / RGB_MATRIX_MAXIMUM_BRIGHTNESS | ||
#define LAYER_G layer_colors[layer][1] * RGB_MATRIX_DEFAULT_VAL / RGB_MATRIX_MAXIMUM_BRIGHTNESS | ||
#define LAYER_B layer_colors[layer][2] * RGB_MATRIX_DEFAULT_VAL / RGB_MATRIX_MAXIMUM_BRIGHTNESS | ||
|
||
#define MODS_ACTIVE(mods) \ | ||
((get_mods()|get_oneshot_mods()) & MOD_MASK_##mods ? RGB_MATRIX_DEFAULT_VAL:0) | ||
#define SHIFT_ACTIVE (get_mods() & MOD_MASK_SHIFT ? RGB_MATRIX_DEFAULT_VAL/4:0) | ||
#define MODS_R MODS_ACTIVE(CTRL) + SHIFT_ACTIVE | ||
#define MODS_G MODS_ACTIVE(GUI) + SHIFT_ACTIVE | ||
#define MODS_B MODS_ACTIVE(ALT) + SHIFT_ACTIVE | ||
|
||
const uint8_t PROGMEM layer_colors[][3] = { | ||
{RGB_OFF}, | ||
{RGB_RED}, | ||
{RGB_GREEN}, | ||
{RGB_BLUE}, | ||
{RGB_YELLOW}, | ||
{RGB_PURPLE}, | ||
{RGB_PINK}, | ||
{RGB_TEAL} | ||
}; | ||
|
||
void set_rgb_matrix_indicators(uint8_t led_min, uint8_t led_max) { | ||
#ifdef RGB_MATRIX_LAYER_INDICATOR | ||
int layer = get_highest_layer(layer_state|default_layer_state); | ||
RGB_MATRIX_INDICATOR_SET_COLOR(LED_CENTER_TOP, layer_colors[layer][0], layer_colors[layer][1], layer_colors[layer][2]); | ||
/* uprintf("layer RGB: (%u, %u, %u)\n", LAYER_R, LAYER_G, LAYER_B); */ | ||
#endif | ||
|
||
#ifdef RGB_MATRIX_MODS_INDICATOR | ||
RGB_MATRIX_INDICATOR_SET_COLOR(LED_CENTER_BOTTOM, MODS_R, MODS_G, MODS_B); | ||
/* uprintf("mod RGB: (%u, %u, %u)\n", MODS_R, MODS_G, MODS_B); */ | ||
#endif | ||
} | ||
|
||
#ifndef VIAL_ENABLE | ||
bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) { | ||
set_rgb_matrix_indicators(led_min, led_max); | ||
return false; | ||
} | ||
#endif | ||
|
||
#ifdef VIAL_ENABLE | ||
void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) { | ||
set_rgb_matrix_indicators(led_min, led_max); | ||
} | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
DFU_SUFFIX_ARGS = -p FFFF -v FFFF # allow for APM32 MCU | ||
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE | ||
RGB_MATRIX_ENABLE = yes | ||
RGB_MATRIX_DRIVER = WS2812 |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.