[Keyboard] Update ZSA Keyboard Readmes and keymaps (#13041)
* [Keyboard] Update ZSA Keyboard Readmes and keymaps * Apply suggestions from code review Co-authored-by: Ryan <fauxpark@gmail.com> * Remove custom rgb code for RGB_M_P * Fix inevitable typo Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/planck/ez/readme.md Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Ryan <fauxpark@gmail.com>
This commit is contained in:
parent
fc9fb2c775
commit
d45da3f0fb
20 changed files with 385 additions and 554 deletions
|
@ -80,8 +80,7 @@ void matrix_init_kb(void) {
|
||||||
matrix_init_user();
|
matrix_init_user();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ergodox_blink_all_leds(void)
|
void ergodox_blink_all_leds(void) {
|
||||||
{
|
|
||||||
ergodox_led_all_off();
|
ergodox_led_all_off();
|
||||||
ergodox_led_all_set(LED_BRIGHTNESS_DEFAULT);
|
ergodox_led_all_set(LED_BRIGHTNESS_DEFAULT);
|
||||||
ergodox_right_led_1_on();
|
ergodox_right_led_1_on();
|
||||||
|
@ -156,20 +155,28 @@ uint8_t init_mcp23018(void) {
|
||||||
// - unused : input : 1
|
// - unused : input : 1
|
||||||
// - input : input : 1
|
// - input : input : 1
|
||||||
// - driving : output : 0
|
// - driving : output : 0
|
||||||
mcp23018_status = i2c_start(I2C_ADDR_WRITE, ERGODOX_EZ_I2C_TIMEOUT); if (mcp23018_status) goto out;
|
mcp23018_status = i2c_start(I2C_ADDR_WRITE, ERGODOX_EZ_I2C_TIMEOUT);
|
||||||
mcp23018_status = i2c_write(IODIRA, ERGODOX_EZ_I2C_TIMEOUT); if (mcp23018_status) goto out;
|
if (mcp23018_status) goto out;
|
||||||
mcp23018_status = i2c_write(0b00000000, ERGODOX_EZ_I2C_TIMEOUT); if (mcp23018_status) goto out;
|
mcp23018_status = i2c_write(IODIRA, ERGODOX_EZ_I2C_TIMEOUT);
|
||||||
mcp23018_status = i2c_write(0b00111111, ERGODOX_EZ_I2C_TIMEOUT); if (mcp23018_status) goto out;
|
if (mcp23018_status) goto out;
|
||||||
|
mcp23018_status = i2c_write(0b00000000, ERGODOX_EZ_I2C_TIMEOUT);
|
||||||
|
if (mcp23018_status) goto out;
|
||||||
|
mcp23018_status = i2c_write(0b00111111, ERGODOX_EZ_I2C_TIMEOUT);
|
||||||
|
if (mcp23018_status) goto out;
|
||||||
i2c_stop();
|
i2c_stop();
|
||||||
|
|
||||||
// set pull-up
|
// set pull-up
|
||||||
// - unused : on : 1
|
// - unused : on : 1
|
||||||
// - input : on : 1
|
// - input : on : 1
|
||||||
// - driving : off : 0
|
// - driving : off : 0
|
||||||
mcp23018_status = i2c_start(I2C_ADDR_WRITE, ERGODOX_EZ_I2C_TIMEOUT); if (mcp23018_status) goto out;
|
mcp23018_status = i2c_start(I2C_ADDR_WRITE, ERGODOX_EZ_I2C_TIMEOUT);
|
||||||
mcp23018_status = i2c_write(GPPUA, ERGODOX_EZ_I2C_TIMEOUT); if (mcp23018_status) goto out;
|
if (mcp23018_status) goto out;
|
||||||
mcp23018_status = i2c_write(0b00000000, ERGODOX_EZ_I2C_TIMEOUT); if (mcp23018_status) goto out;
|
mcp23018_status = i2c_write(GPPUA, ERGODOX_EZ_I2C_TIMEOUT);
|
||||||
mcp23018_status = i2c_write(0b00111111, ERGODOX_EZ_I2C_TIMEOUT); if (mcp23018_status) goto out;
|
if (mcp23018_status) goto out;
|
||||||
|
mcp23018_status = i2c_write(0b00000000, ERGODOX_EZ_I2C_TIMEOUT);
|
||||||
|
if (mcp23018_status) goto out;
|
||||||
|
mcp23018_status = i2c_write(0b00111111, ERGODOX_EZ_I2C_TIMEOUT);
|
||||||
|
if (mcp23018_status) goto out;
|
||||||
|
|
||||||
out:
|
out:
|
||||||
i2c_stop();
|
i2c_stop();
|
||||||
|
@ -200,14 +207,9 @@ uint8_t ergodox_left_leds_update(void) {
|
||||||
if (mcp23018_status) goto out;
|
if (mcp23018_status) goto out;
|
||||||
mcp23018_status = i2c_write(OLATA, ERGODOX_EZ_I2C_TIMEOUT);
|
mcp23018_status = i2c_write(OLATA, ERGODOX_EZ_I2C_TIMEOUT);
|
||||||
if (mcp23018_status) goto out;
|
if (mcp23018_status) goto out;
|
||||||
mcp23018_status = i2c_write(0b11111111
|
mcp23018_status = i2c_write(0b11111111 & ~(ergodox_left_led_3 << LEFT_LED_3_SHIFT), ERGODOX_EZ_I2C_TIMEOUT);
|
||||||
& ~(ergodox_left_led_3<<LEFT_LED_3_SHIFT),
|
|
||||||
ERGODOX_EZ_I2C_TIMEOUT);
|
|
||||||
if (mcp23018_status) goto out;
|
if (mcp23018_status) goto out;
|
||||||
mcp23018_status = i2c_write(0b11111111
|
mcp23018_status = i2c_write(0b11111111 & ~(ergodox_left_led_2 << LEFT_LED_2_SHIFT) & ~(ergodox_left_led_1 << LEFT_LED_1_SHIFT), ERGODOX_EZ_I2C_TIMEOUT);
|
||||||
& ~(ergodox_left_led_2<<LEFT_LED_2_SHIFT)
|
|
||||||
& ~(ergodox_left_led_1<<LEFT_LED_1_SHIFT),
|
|
||||||
ERGODOX_EZ_I2C_TIMEOUT);
|
|
||||||
if (mcp23018_status) goto out;
|
if (mcp23018_status) goto out;
|
||||||
|
|
||||||
out:
|
out:
|
||||||
|
@ -216,7 +218,6 @@ uint8_t ergodox_left_leds_update(void) {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef SWAP_HANDS_ENABLE
|
#ifdef SWAP_HANDS_ENABLE
|
||||||
__attribute__((weak))
|
__attribute__((weak))
|
||||||
// swap-hands action needs a matrix to define the swap
|
// swap-hands action needs a matrix to define the swap
|
||||||
|
@ -241,6 +242,7 @@ const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef RGB_MATRIX_ENABLE
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
|
// clang-format off
|
||||||
const is31_led g_is31_leds[DRIVER_LED_TOTAL] = {
|
const is31_led g_is31_leds[DRIVER_LED_TOTAL] = {
|
||||||
/* driver
|
/* driver
|
||||||
* | R location
|
* | R location
|
||||||
|
@ -335,17 +337,7 @@ led_config_t g_led_config = { {
|
||||||
4, 4, 4, 4, 4, 4,
|
4, 4, 4, 4, 4, 4,
|
||||||
4, 4, 1, 1, 1, 1
|
4, 4, 1, 1, 1, 1
|
||||||
} };
|
} };
|
||||||
|
// clang-format on
|
||||||
void suspend_power_down_kb(void) {
|
|
||||||
rgb_matrix_set_color_all(0, 0, 0);
|
|
||||||
rgb_matrix_set_suspend_state(true);
|
|
||||||
suspend_power_down_user();
|
|
||||||
}
|
|
||||||
|
|
||||||
void suspend_wakeup_init_kb(void) {
|
|
||||||
rgb_matrix_set_suspend_state(false);
|
|
||||||
suspend_wakeup_init_user();
|
|
||||||
}
|
|
||||||
|
|
||||||
# ifdef ORYX_CONFIGURATOR
|
# ifdef ORYX_CONFIGURATOR
|
||||||
void keyboard_post_init_kb(void) {
|
void keyboard_post_init_kb(void) {
|
||||||
|
@ -373,8 +365,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
|
||||||
case TOGGLE_LAYER_COLOR:
|
case TOGGLE_LAYER_COLOR:
|
||||||
if (record->event.pressed) {
|
if (record->event.pressed) {
|
||||||
keyboard_config.disable_layer_led ^= 1;
|
keyboard_config.disable_layer_led ^= 1;
|
||||||
if (keyboard_config.disable_layer_led)
|
if (keyboard_config.disable_layer_led) rgb_matrix_set_color_all(0, 0, 0);
|
||||||
rgb_matrix_set_color_all(0, 0, 0);
|
|
||||||
eeconfig_update_kb(keyboard_config.raw);
|
eeconfig_update_kb(keyboard_config.raw);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -385,13 +376,11 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
|
||||||
rgb_matrix_set_flags(LED_FLAG_NONE);
|
rgb_matrix_set_flags(LED_FLAG_NONE);
|
||||||
keyboard_config.rgb_matrix_enable = false;
|
keyboard_config.rgb_matrix_enable = false;
|
||||||
rgb_matrix_set_color_all(0, 0, 0);
|
rgb_matrix_set_color_all(0, 0, 0);
|
||||||
}
|
} break;
|
||||||
break;
|
|
||||||
default: {
|
default: {
|
||||||
rgb_matrix_set_flags(LED_FLAG_ALL);
|
rgb_matrix_set_flags(LED_FLAG_ALL);
|
||||||
keyboard_config.rgb_matrix_enable = true;
|
keyboard_config.rgb_matrix_enable = true;
|
||||||
}
|
} break;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
eeconfig_update_kb(keyboard_config.raw);
|
eeconfig_update_kb(keyboard_config.raw);
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,9 +13,9 @@ enum custom_keycodes {
|
||||||
#else
|
#else
|
||||||
VRSN = SAFE_RANGE,
|
VRSN = SAFE_RANGE,
|
||||||
#endif
|
#endif
|
||||||
RGB_SLD
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// clang-format off
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
/* Keymap 0: Basic layer
|
/* Keymap 0: Basic layer
|
||||||
*
|
*
|
||||||
|
@ -77,7 +77,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
KC_TRNS, KC_HASH, KC_DLR, KC_LPRN, KC_RPRN, KC_GRV, KC_DOWN, KC_4, KC_5, KC_6, KC_PLUS, KC_TRNS,
|
KC_TRNS, KC_HASH, KC_DLR, KC_LPRN, KC_RPRN, KC_GRV, KC_DOWN, KC_4, KC_5, KC_6, KC_PLUS, KC_TRNS,
|
||||||
KC_TRNS, KC_PERC, KC_CIRC, KC_LBRC, KC_RBRC, KC_TILD, KC_TRNS, KC_TRNS, KC_AMPR, KC_1, KC_2, KC_3, KC_BSLS, KC_TRNS,
|
KC_TRNS, KC_PERC, KC_CIRC, KC_LBRC, KC_RBRC, KC_TILD, KC_TRNS, KC_TRNS, KC_AMPR, KC_1, KC_2, KC_3, KC_BSLS, KC_TRNS,
|
||||||
EEP_RST, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_DOT, KC_0, KC_EQL, KC_TRNS,
|
EEP_RST, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_DOT, KC_0, KC_EQL, KC_TRNS,
|
||||||
RGB_MOD, KC_TRNS, RGB_TOG, RGB_SLD,
|
RGB_MOD, KC_TRNS, RGB_TOG, RGB_M_P,
|
||||||
KC_TRNS, KC_TRNS,
|
KC_TRNS, KC_TRNS,
|
||||||
RGB_VAD, RGB_VAI, KC_TRNS, KC_TRNS, RGB_HUD, RGB_HUI
|
RGB_VAD, RGB_VAI, KC_TRNS, KC_TRNS, RGB_HUD, RGB_HUI
|
||||||
),
|
),
|
||||||
|
@ -115,6 +115,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_WBAK
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_WBAK
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
|
// clang-format on
|
||||||
|
|
||||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
if (record->event.pressed) {
|
if (record->event.pressed) {
|
||||||
|
@ -122,11 +123,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
case VRSN:
|
case VRSN:
|
||||||
SEND_STRING(QMK_KEYBOARD "/" QMK_KEYMAP " @ " QMK_VERSION);
|
SEND_STRING(QMK_KEYBOARD "/" QMK_KEYMAP " @ " QMK_VERSION);
|
||||||
return false;
|
return false;
|
||||||
#ifdef RGBLIGHT_ENABLE
|
|
||||||
case RGB_SLD:
|
|
||||||
rgblight_mode(1);
|
|
||||||
return false;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -2,13 +2,6 @@
|
||||||
MCU = atmega32u4
|
MCU = atmega32u4
|
||||||
|
|
||||||
# Bootloader selection
|
# Bootloader selection
|
||||||
# Teensy halfkay
|
|
||||||
# Pro Micro caterina
|
|
||||||
# Atmel DFU atmel-dfu
|
|
||||||
# LUFA DFU lufa-dfu
|
|
||||||
# QMK DFU qmk-dfu
|
|
||||||
# ATmega32A bootloadHID
|
|
||||||
# ATmega328P USBasp
|
|
||||||
BOOTLOADER = halfkay
|
BOOTLOADER = halfkay
|
||||||
|
|
||||||
# If you have Left LEDs (see
|
# If you have Left LEDs (see
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* Copyright 2020 ZSA Technology Labs, Inc <@zsa>
|
/* Copyright 2020 ZSA Technology Labs, Inc <@zsa>
|
||||||
* Copyright 2020 Jack Humbert <jack.humb@gmail.com>
|
* Copyright 2020 Jack Humbert <jack.humb@gmail.com>
|
||||||
* Copyright 2020 Christopher Courtney <drashna@live.com> (@drashna)
|
* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* Copyright 2020 ZSA Technology Labs, Inc <@zsa>
|
/* Copyright 2020 ZSA Technology Labs, Inc <@zsa>
|
||||||
* Copyright 2020 Jack Humbert <jack.humb@gmail.com>
|
* Copyright 2020 Jack Humbert <jack.humb@gmail.com>
|
||||||
* Copyright 2020 Christopher Courtney <drashna@live.com> (@drashna)
|
* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* Copyright 2020 ZSA Technology Labs, Inc <@zsa>
|
/* Copyright 2020 ZSA Technology Labs, Inc <@zsa>
|
||||||
* Copyright 2020 Jack Humbert <jack.humb@gmail.com>
|
* Copyright 2020 Jack Humbert <jack.humb@gmail.com>
|
||||||
* Copyright 2020 Christopher Courtney <drashna@live.com> (@drashna)
|
* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* Copyright 2020 ZSA Technology Labs, Inc <@zsa>
|
/* Copyright 2020 ZSA Technology Labs, Inc <@zsa>
|
||||||
* Copyright 2020 Jack Humbert <jack.humb@gmail.com>
|
* Copyright 2020 Jack Humbert <jack.humb@gmail.com>
|
||||||
* Copyright 2020 Christopher Courtney <drashna@live.com> (@drashna)
|
* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* Copyright 2020 ZSA Technology Labs, Inc <@zsa>
|
/* Copyright 2020 ZSA Technology Labs, Inc <@zsa>
|
||||||
* Copyright 2020 Jack Humbert <jack.humb@gmail.com>
|
* Copyright 2020 Jack Humbert <jack.humb@gmail.com>
|
||||||
* Copyright 2020 Christopher Courtney <drashna@live.com> (@drashna)
|
* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -340,15 +340,6 @@ led_config_t g_led_config = { {
|
||||||
} };
|
} };
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
|
||||||
void suspend_power_down_kb(void) {
|
|
||||||
rgb_matrix_set_suspend_state(true);
|
|
||||||
suspend_power_down_user();
|
|
||||||
}
|
|
||||||
|
|
||||||
void suspend_wakeup_init_kb(void) {
|
|
||||||
rgb_matrix_set_suspend_state(false);
|
|
||||||
suspend_wakeup_init_user();
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef AUDIO_ENABLE
|
#ifdef AUDIO_ENABLE
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* Copyright 2020 ZSA Technology Labs, Inc <@zsa>
|
/* Copyright 2020 ZSA Technology Labs, Inc <@zsa>
|
||||||
* Copyright 2020 Jack Humbert <jack.humb@gmail.com>
|
* Copyright 2020 Jack Humbert <jack.humb@gmail.com>
|
||||||
* Copyright 2020 Christopher Courtney <drashna@live.com> (@drashna)
|
* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -19,7 +19,23 @@ Flashing example for this keyboard:
|
||||||
|
|
||||||
See 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).
|
See 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).
|
||||||
|
|
||||||
## Oryx Configuation
|
|
||||||
|
## Moonlander Customization
|
||||||
|
|
||||||
|
### Indicator LEDs
|
||||||
|
|
||||||
|
There are 6 functions for enabling and disabling the LEDs on the top of the boards. The functions are `ML_LED_1(bool)` through `ML_LED_6(bool)`, with the first LED being the left most LED on the left hand, and the sixth LED being the right most LED on the right side.
|
||||||
|
|
||||||
|
By default, the Indicator LEDs are used to indicate the layer state for the keyboard. If you wish to change this (and indicate caps/num/scroll lock status instead), then define `MOONLANDER_USER_LEDS` in your `config.h` file.
|
||||||
|
|
||||||
|
|
||||||
|
### Oryx Configuration
|
||||||
|
|
||||||
|
To enable the features from Oryx (ZSA's Configurator), either compile the the `default` keymap, or add `#define ORYX_CONFIGURATOR` to your `config.h` file.
|
||||||
|
|
||||||
|
This enables the front Indicator LEDs, and the `TOGGLE_LAYER_COLOR` keycode. The `TOGGLE_LAYER_COLOR` keycode toggles the customized LED map configured on Oryx.
|
||||||
|
|
||||||
|
### RGB Matrix Features
|
||||||
|
|
||||||
If you're using the Smart LED (layer indication) feature from the Oryx Configurator, you want to make sure that you enable these options by adding `#define ORYX_CONFIGURATOR` to your keymap's `config.h`.
|
If you're using the Smart LED (layer indication) feature from the Oryx Configurator, you want to make sure that you enable these options by adding `#define ORYX_CONFIGURATOR` to your keymap's `config.h`.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/*
|
/* Copyright 2018 Jack Humbert <jack.humb@gmail.com>
|
||||||
* Copyright 2018 Jack Humbert <jack.humb@gmail.com>
|
* Copyright 2015 ZSA Technology Labs Inc (@zsa)
|
||||||
|
* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
/* Copyright 2018 Jack Humbert <jack.humb@gmail.com>
|
/* Copyright 2018 Jack Humbert <jack.humb@gmail.com>
|
||||||
|
* Copyright 2015 ZSA Technology Labs Inc (@zsa)
|
||||||
|
* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
/* Copyright 2018 Jack Humbert <jack.humb@gmail.com>
|
/* Copyright 2018 Jack Humbert <jack.humb@gmail.com>
|
||||||
|
* Copyright 2015 ZSA Technology Labs Inc (@zsa)
|
||||||
|
* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/*
|
/* Copyright 2018 Jack Humbert <jack.humb@gmail.com>
|
||||||
* Copyright 2018 Jack Humbert <jack.humb@gmail.com>
|
* Copyright 2015 ZSA Technology Labs Inc (@zsa)
|
||||||
|
* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -1 +1,19 @@
|
||||||
|
/* Copyright 2018 Jack Humbert <jack.humb@gmail.com>
|
||||||
|
* Copyright 2015 ZSA Technology Labs Inc (@zsa)
|
||||||
|
* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
#include "glow.h"
|
#include "glow.h"
|
||||||
|
|
|
@ -1,3 +1,21 @@
|
||||||
|
/* Copyright 2018 Jack Humbert <jack.humb@gmail.com>
|
||||||
|
* Copyright 2015 ZSA Technology Labs Inc (@zsa)
|
||||||
|
* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "ez.h"
|
#include "ez.h"
|
||||||
|
|
|
@ -4,24 +4,26 @@
|
||||||
|
|
||||||
A variant of the Planck featuring a 2u spacebar and per-key RGB backlighting.
|
A variant of the Planck featuring a 2u spacebar and per-key RGB backlighting.
|
||||||
|
|
||||||
Keyboard Maintainer: [Jack Humbert](https://github.com/jackhumbert)
|
Keyboard Maintainer: [Jack Humbert](https://github.com/jackhumbert), [Drashna Jael're](https://github.com/drashna)
|
||||||
Hardware Supported: Planck EZ
|
Hardware Supported: Planck EZ
|
||||||
Hardware Availability: [ergodox-ez.com](https://ergodox-ez.com/pages/planck)
|
Hardware Availability: [ZSA](https://www.zsa.io/planck/)
|
||||||
|
|
||||||
Make example for this keyboard (after setting up your build environment):
|
Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
make planck/ez:default
|
make planck/ez:oryx
|
||||||
|
|
||||||
See 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).
|
|
||||||
|
|
||||||
# Planck EZ Glow
|
|
||||||
|
|
||||||
For the per key RGB version of this keyboard, you want to use the "glow" subdirectory. For example:
|
For the per key RGB version of this keyboard, you want to use the "glow" subdirectory. For example:
|
||||||
|
|
||||||
make planck/ez/glow:default
|
make planck/ez/glow:oryx
|
||||||
|
|
||||||
|
See 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).
|
||||||
|
|
||||||
## Planck EZ Configuration (from Oryx)
|
## Planck EZ Configuration (from Oryx)
|
||||||
|
|
||||||
|
To enable the features from Oryx (ZSA's Configurator), either compile the the `oryx` keymap, or add `#define ORYX_CONFIGURATOR` to your `config.h` file.
|
||||||
|
|
||||||
|
This enables the front Indicator LEDs, and the `TOGGLE_LAYER_COLOR`, and `LED_LEVEL` keycodes. The `TOGGLE_LAYER_COLOR` keycode toggles the customized LED map configured on Oryx. The `LED_LEVEL` cycles through the brightness levels for the front "teeth" LEDs.
|
||||||
|
|
||||||
### Indicator LEDs
|
### Indicator LEDs
|
||||||
|
|
||||||
The two front "teeth" LED indicators are PWM controlled. If you have `ORYX_CONFIGURATOR` defined in your keymap's `config.h`, you can use the `LED_LEVEL` to cycle through preset vales (0, 25%, 50%, 75%, 100%), and will be saved to EEPROM (persistent storage)
|
The two front "teeth" LED indicators are PWM controlled. If you have `ORYX_CONFIGURATOR` defined in your keymap's `config.h`, you can use the `LED_LEVEL` to cycle through preset vales (0, 25%, 50%, 75%, 100%), and will be saved to EEPROM (persistent storage)
|
||||||
|
|
|
@ -1,3 +1,20 @@
|
||||||
|
/* Copyright 2020 ZSA Technology Inc
|
||||||
|
* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifdef AUDIO_ENABLE
|
#ifdef AUDIO_ENABLE
|
||||||
|
@ -8,9 +25,15 @@
|
||||||
|
|
||||||
#define ENCODER_RESOLUTION 4
|
#define ENCODER_RESOLUTION 4
|
||||||
|
|
||||||
#define ORYX_CONFIGURATOR
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Set any config.h overrides for your specific keymap here.
|
Set any config.h overrides for your specific keymap here.
|
||||||
See config.h options at https://docs.qmk.fm/#/config_options?id=the-configh-file
|
See config.h options at https://docs.qmk.fm/#/config_options?id=the-configh-file
|
||||||
*/
|
*/
|
||||||
|
#define ORYX_CONFIGURATOR
|
||||||
|
#define USB_SUSPEND_WAKEUP_DELAY 0
|
||||||
|
#define FIRMWARE_VERSION u8"vAxxa/ZlQEV"
|
||||||
|
#define RGB_MATRIX_STARTUP_SPD 60
|
||||||
|
|
||||||
|
#define PLANCK_EZ_LED_LOWER 1
|
||||||
|
#define PLANCK_EZ_LED_RAISE 2
|
||||||
|
#define PLANCK_EZ_LED_ADJUST 3
|
||||||
|
|
|
@ -1,200 +1,75 @@
|
||||||
|
/* Copyright 2020 ZSA Technology Inc
|
||||||
|
* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
#include "muse.h"
|
|
||||||
#include "eeprom.h"
|
|
||||||
#include "keymap_german.h"
|
|
||||||
#include "keymap_nordic.h"
|
|
||||||
#include "keymap_french.h"
|
|
||||||
#include "keymap_spanish.h"
|
|
||||||
#include "keymap_hungarian.h"
|
|
||||||
#include "keymap_swedish.h"
|
|
||||||
//#include "keymap_br_abnt2.h"
|
|
||||||
#include "keymap_canadian_multilingual.h"
|
|
||||||
#include "keymap_german_ch.h"
|
|
||||||
|
|
||||||
#define KC_MAC_UNDO LGUI(KC_Z)
|
|
||||||
#define KC_MAC_CUT LGUI(KC_X)
|
|
||||||
#define KC_MAC_COPY LGUI(KC_C)
|
|
||||||
#define KC_MAC_PASTE LGUI(KC_V)
|
|
||||||
#define KC_PC_UNDO LCTL(KC_Z)
|
|
||||||
#define KC_PC_CUT LCTL(KC_X)
|
|
||||||
#define KC_PC_COPY LCTL(KC_C)
|
|
||||||
#define KC_PC_PASTE LCTL(KC_V)
|
|
||||||
#define NO_TH ALGR(KC_T)
|
|
||||||
#define NO_ETH ALGR(KC_D)
|
|
||||||
|
|
||||||
enum planck_layers {
|
|
||||||
_QWERTY,
|
|
||||||
_COLEMAK,
|
|
||||||
_DVORAK,
|
|
||||||
_LOWER,
|
|
||||||
_RAISE,
|
|
||||||
_PLOVER,
|
|
||||||
_ADJUST
|
|
||||||
};
|
|
||||||
|
|
||||||
enum planck_keycodes {
|
enum planck_keycodes {
|
||||||
QWERTY = EZ_SAFE_RANGE,
|
RGB_SLD = EZ_SAFE_RANGE,
|
||||||
COLEMAK,
|
};
|
||||||
DVORAK,
|
|
||||||
PLOVER,
|
enum planck_layers {
|
||||||
BACKLIT,
|
_BASE,
|
||||||
EXT_PLV,
|
_LOWER,
|
||||||
RGB_SLD
|
_RAISE,
|
||||||
|
_ADJUST,
|
||||||
};
|
};
|
||||||
|
|
||||||
# define LOWER MO(_LOWER)
|
# define LOWER MO(_LOWER)
|
||||||
# define RAISE MO(_RAISE)
|
# define RAISE MO(_RAISE)
|
||||||
|
|
||||||
|
// clang-format off
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[_BASE] = LAYOUT_planck_grid(
|
||||||
/* Qwerty
|
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPACE,
|
||||||
* ,-----------------------------------------------------------------------------------.
|
KC_ESCAPE, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCOLON, KC_QUOTE,
|
||||||
* | Tab | Q | W | E | R | T | Y | U | I | O | P | Bksp |
|
KC_LSHIFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMMA, KC_DOT, KC_SLASH, KC_ENTER,
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
WEBUSB_PAIR, KC_LCTRL, KC_LALT, KC_LGUI, LOWER, KC_SPACE, KC_NO, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT
|
||||||
* | Esc | A | S | D | F | G | H | J | K | L | ; | " |
|
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
|
||||||
* | Shift| Z | X | C | V | B | N | M | , | . | / |Enter |
|
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
|
||||||
* | Brite| Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right |
|
|
||||||
* `-----------------------------------------------------------------------------------'
|
|
||||||
*/
|
|
||||||
[_QWERTY] = LAYOUT_planck_grid(
|
|
||||||
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_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
|
|
||||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT ,
|
|
||||||
BACKLIT, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
|
|
||||||
),
|
),
|
||||||
|
|
||||||
/* Colemak
|
|
||||||
* ,-----------------------------------------------------------------------------------.
|
|
||||||
* | Tab | Q | W | F | P | G | J | L | U | Y | ; | Bksp |
|
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
|
||||||
* | Esc | A | R | S | T | D | H | N | E | I | O | " |
|
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
|
||||||
* | Shift| Z | X | C | V | B | K | M | , | . | / |Enter |
|
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
|
||||||
* | Brite| Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right |
|
|
||||||
* `-----------------------------------------------------------------------------------'
|
|
||||||
*/
|
|
||||||
[_COLEMAK] = LAYOUT_planck_grid(
|
|
||||||
KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC,
|
|
||||||
KC_ESC, KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT,
|
|
||||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT ,
|
|
||||||
BACKLIT, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
|
|
||||||
),
|
|
||||||
|
|
||||||
/* Dvorak
|
|
||||||
* ,-----------------------------------------------------------------------------------.
|
|
||||||
* | Tab | " | , | . | P | Y | F | G | C | R | L | Bksp |
|
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
|
||||||
* | Esc | A | O | E | U | I | D | H | T | N | S | / |
|
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
|
||||||
* | Shift| ; | Q | J | K | X | B | M | W | V | Z |Enter |
|
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
|
||||||
* | Brite| Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right |
|
|
||||||
* `-----------------------------------------------------------------------------------'
|
|
||||||
*/
|
|
||||||
[_DVORAK] = LAYOUT_planck_grid(
|
|
||||||
KC_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_BSPC,
|
|
||||||
KC_ESC, KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_SLSH,
|
|
||||||
KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_ENT ,
|
|
||||||
BACKLIT, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
|
|
||||||
),
|
|
||||||
|
|
||||||
/* Lower
|
|
||||||
* ,-----------------------------------------------------------------------------------.
|
|
||||||
* | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bksp |
|
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
|
||||||
* | Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | | |
|
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
|
||||||
* | | F7 | F8 | F9 | F10 | F11 | F12 |ISO ~ |ISO | | Home | End | |
|
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
|
||||||
* | | | | | | | | Next | Vol- | Vol+ | Play |
|
|
||||||
* `-----------------------------------------------------------------------------------'
|
|
||||||
*/
|
|
||||||
[_LOWER] = LAYOUT_planck_grid(
|
[_LOWER] = LAYOUT_planck_grid(
|
||||||
KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC,
|
KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______,
|
||||||
KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE,
|
KC_DELETE, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE,
|
||||||
_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, S(KC_NUHS), S(KC_NUBS), KC_HOME, KC_END, _______,
|
_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NONUS_HASH, KC_NONUS_BSLASH,KC_HOME, KC_END, _______,
|
||||||
_______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
|
KC_COMMA, _______, _______, _______, _______, _______, KC_NO, _______, KC_MEDIA_NEXT_TRACK,KC_AUDIO_VOL_DOWN,KC_AUDIO_VOL_UP,KC_MEDIA_PLAY_PAUSE
|
||||||
),
|
),
|
||||||
|
|
||||||
/* Raise
|
|
||||||
* ,-----------------------------------------------------------------------------------.
|
|
||||||
* | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp |
|
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
|
||||||
* | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ |
|
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
|
||||||
* | | F7 | F8 | F9 | F10 | F11 | F12 |ISO # |ISO / |Pg Up |Pg Dn | |
|
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
|
||||||
* | | | | | | | | Next | Vol- | Vol+ | Play |
|
|
||||||
* `-----------------------------------------------------------------------------------'
|
|
||||||
*/
|
|
||||||
[_RAISE] = LAYOUT_planck_grid(
|
[_RAISE] = LAYOUT_planck_grid(
|
||||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
|
KC_GRAVE,KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______,
|
||||||
KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS,
|
KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINUS, KC_EQUAL, KC_LBRACKET, KC_RBRACKET, KC_BSLASH,
|
||||||
_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, KC_PGUP, KC_PGDN, _______,
|
_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NONUS_HASH, KC_NONUS_BSLASH,KC_PGUP, KC_PGDOWN, _______,
|
||||||
_______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
|
_______, _______, _______, _______, _______, _______, KC_NO, _______, KC_MEDIA_NEXT_TRACK,KC_AUDIO_VOL_DOWN,KC_AUDIO_VOL_UP,KC_MEDIA_PLAY_PAUSE
|
||||||
),
|
),
|
||||||
|
|
||||||
/* Plover layer (http://opensteno.org)
|
|
||||||
* ,-----------------------------------------------------------------------------------.
|
|
||||||
* | # | # | # | # | # | # | # | # | # | # | # | # |
|
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
|
||||||
* | | S | T | P | H | * | * | F | P | L | T | D |
|
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
|
||||||
* | | S | K | W | R | * | * | R | B | G | S | Z |
|
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
|
||||||
* | Exit | | | A | O | | E | U | | | |
|
|
||||||
* `-----------------------------------------------------------------------------------'
|
|
||||||
*/
|
|
||||||
[_PLOVER] = LAYOUT_planck_grid(
|
|
||||||
KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1 ,
|
|
||||||
XXXXXXX, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC,
|
|
||||||
XXXXXXX, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
|
|
||||||
EXT_PLV, XXXXXXX, XXXXXXX, KC_C, KC_V, XXXXXXX, XXXXXXX, KC_N, KC_M, XXXXXXX, XXXXXXX, XXXXXXX
|
|
||||||
),
|
|
||||||
|
|
||||||
/* Adjust (Lower + Raise)
|
|
||||||
* v------------------------RGB CONTROL--------------------v
|
|
||||||
* ,-----------------------------------------------------------------------------------
|
|
||||||
* | | Reset|Debug | RGB |RGBMOD| HUE+ | HUE- | SAT+ | SAT- |BRGTH+|BRGTH-| Del |
|
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
|
||||||
* | | | |Aud on|Audoff|AGnorm|AGswap|Qwerty|Colemk|Dvorak|Plover| |
|
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
|
||||||
* | |Voice-|Voice+|Mus on|Musoff|MIDIon|MIDIof| | | | | |
|
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
|
||||||
* | | | | | | | | | | | |
|
|
||||||
* `-----------------------------------------------------------------------------------'
|
|
||||||
*/
|
|
||||||
[_ADJUST] = LAYOUT_planck_grid(
|
[_ADJUST] = LAYOUT_planck_grid(
|
||||||
_______, RESET, DEBUG, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_DEL ,
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
_______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, PLOVER, _______,
|
KC_DEL, _______, AU_ON, AU_OFF, AU_TOG, _______, _______, RGB_TOG, RGB_VAI, RGB_VAD, LED_LEVEL, RESET,
|
||||||
_______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, TERM_ON, TERM_OFF, TOGGLE_LAYER_COLOR, LED_LEVEL, _______,
|
_______, _______, MU_ON, MU_OFF, MU_TOG, _______, _______, RGB_MOD, RGB_HUI, RGB_HUD, TOGGLE_LAYER_COLOR, _______,
|
||||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
_______, _______, _______, _______, _______, _______, KC_NO, _______, _______, _______, _______, _______
|
||||||
)
|
),
|
||||||
|
|
||||||
};
|
};
|
||||||
|
// clang-format on
|
||||||
|
|
||||||
#ifdef AUDIO_ENABLE
|
|
||||||
float plover_song[][2] = SONG(PLOVER_SOUND);
|
|
||||||
float plover_gb_song[][2] = SONG(PLOVER_GOODBYE_SOUND);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
layer_state_t layer_state_set_user(layer_state_t state) {
|
|
||||||
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
|
||||||
}
|
|
||||||
|
|
||||||
const uint8_t PROGMEM ledmap[][DRIVER_LED_TOTAL][3] = {
|
const uint8_t PROGMEM ledmap[][DRIVER_LED_TOTAL][3] = {
|
||||||
[0] = { {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255}, {130,255,255} },
|
[0] = {{42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {146, 224, 255}, {146, 224, 255}, {146, 224, 255}, {146, 224, 255}, {146, 224, 255}, {146, 224, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {146, 224, 255}, {146, 224, 255}, {146, 224, 255}, {146, 224, 255}, {146, 224, 255}, {146, 224, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {32, 255, 234}, {32, 255, 234}, {32, 255, 234}, {32, 255, 234}},
|
||||||
|
|
||||||
[1] = { {42,255,255}, {42,255,255}, {42,255,255}, {42,255,255}, {42,255,255}, {42,255,255}, {42,255,255}, {42,255,255}, {42,255,255}, {42,255,255}, {42,255,255}, {42,255,255}, {42,255,255}, {146,224,255}, {146,224,255}, {146,224,255}, {146,224,255}, {146,224,255}, {146,224,255}, {42,255,255}, {42,255,255}, {42,255,255}, {42,255,255}, {42,255,255}, {42,255,255}, {146,224,255}, {146,224,255}, {146,224,255}, {146,224,255}, {146,224,255}, {146,224,255}, {42,255,255}, {42,255,255}, {42,255,255}, {42,255,255}, {42,255,255}, {42,255,255}, {42,255,255}, {42,255,255}, {42,255,255}, {42,255,255}, {42,255,255}, {42,255,255}, {32,255,234}, {32,255,234}, {32,255,234}, {32,255,234} },
|
[1] = {{89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {169, 120, 255}, {169, 120, 255}, {169, 120, 255}, {169, 120, 255}, {169, 120, 255}, {169, 120, 255}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {169, 120, 255}, {169, 120, 255}, {169, 120, 255}, {169, 120, 255}, {169, 120, 255}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}},
|
||||||
|
|
||||||
[2] = { {89,255,246}, {89,255,246}, {89,255,246}, {89,255,246}, {89,255,246}, {89,255,246}, {89,255,246}, {89,255,246}, {89,255,246}, {89,255,246}, {89,255,246}, {89,255,246}, {89,255,246}, {169,120,255}, {169,120,255}, {169,120,255}, {169,120,255}, {169,120,255}, {169,120,255}, {89,255,246}, {89,255,246}, {89,255,246}, {89,255,246}, {89,255,246}, {89,255,246}, {89,255,246}, {169,120,255}, {169,120,255}, {169,120,255}, {169,120,255}, {169,120,255}, {89,255,246}, {89,255,246}, {89,255,246}, {89,255,246}, {89,255,246}, {89,255,246}, {89,255,246}, {89,255,246}, {89,255,246}, {89,255,246}, {89,255,246}, {89,255,246}, {89,255,246}, {89,255,246}, {89,255,246}, {89,255,246} },
|
[2] = {{216, 255, 255}, {216, 255, 255}, {216, 255, 255}, {216, 255, 255}, {216, 255, 255}, {216, 255, 255}, {216, 255, 255}, {216, 255, 255}, {216, 255, 255}, {216, 255, 255}, {216, 255, 255}, {216, 255, 255}, {216, 255, 255}, {216, 255, 255}, {249, 228, 255}, {249, 228, 255}, {249, 228, 255}, {216, 255, 255}, {216, 255, 255}, {105, 255, 255}, {105, 255, 255}, {105, 255, 255}, {216, 255, 255}, {14, 255, 255}, {216, 255, 255}, {216, 255, 255}, {249, 228, 255}, {249, 228, 255}, {249, 228, 255}, {216, 255, 255}, {216, 255, 255}, {105, 255, 255}, {105, 255, 255}, {105, 255, 255}, {216, 255, 255}, {216, 255, 255}, {216, 255, 255}, {216, 255, 255}, {216, 255, 255}, {216, 255, 255}, {216, 255, 255}, {216, 255, 255}, {216, 255, 255}, {216, 255, 255}, {216, 255, 255}, {216, 255, 255}, {216, 255, 255}},
|
||||||
|
|
||||||
[3] = { {216,255,255}, {216,255,255}, {216,255,255}, {216,255,255}, {216,255,255}, {216,255,255}, {216,255,255}, {216,255,255}, {216,255,255}, {216,255,255}, {216,255,255}, {216,255,255}, {216,255,255}, {216,255,255}, {249,228,255}, {249,228,255}, {249,228,255}, {216,255,255}, {216,255,255}, {105,255,255}, {105,255,255}, {105,255,255}, {216,255,255}, {14,255,255}, {216,255,255}, {216,255,255}, {249,228,255}, {249,228,255}, {249,228,255}, {216,255,255}, {216,255,255}, {105,255,255}, {105,255,255}, {105,255,255}, {216,255,255}, {216,255,255}, {216,255,255}, {216,255,255}, {216,255,255}, {216,255,255}, {216,255,255}, {216,255,255}, {216,255,255}, {216,255,255}, {216,255,255}, {216,255,255}, {216,255,255} },
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -216,28 +91,25 @@ void set_layer_color(int layer) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void rgb_matrix_indicators_user(void) {
|
void rgb_matrix_indicators_user(void) {
|
||||||
if (g_suspend_state || keyboard_config.disable_layer_led) { return; }
|
if (g_suspend_state || keyboard_config.disable_layer_led) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
switch (biton32(layer_state)) {
|
switch (biton32(layer_state)) {
|
||||||
case 0:
|
case 1:
|
||||||
set_layer_color(0);
|
set_layer_color(0);
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 2:
|
||||||
set_layer_color(1);
|
set_layer_color(1);
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 3:
|
||||||
set_layer_color(2);
|
set_layer_color(2);
|
||||||
break;
|
break;
|
||||||
case 6:
|
|
||||||
set_layer_color(3);
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
if (rgb_matrix_get_flags() == LED_FLAG_NONE)
|
if (rgb_matrix_get_flags() == LED_FLAG_NONE) rgb_matrix_set_color_all(0, 0, 0);
|
||||||
rgb_matrix_set_color_all(0, 0, 0);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
switch (keycode) {
|
switch (keycode) {
|
||||||
case RGB_SLD:
|
case RGB_SLD:
|
||||||
|
@ -245,129 +117,35 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
rgblight_mode(1);
|
rgblight_mode(1);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
case QWERTY:
|
|
||||||
if (record->event.pressed) {
|
|
||||||
print("mode just switched to qwerty and this is a huge string\n");
|
|
||||||
set_single_persistent_default_layer(_QWERTY);
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
break;
|
|
||||||
case COLEMAK:
|
|
||||||
if (record->event.pressed) {
|
|
||||||
set_single_persistent_default_layer(_COLEMAK);
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
break;
|
|
||||||
case DVORAK:
|
|
||||||
if (record->event.pressed) {
|
|
||||||
set_single_persistent_default_layer(_DVORAK);
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
break;
|
|
||||||
case BACKLIT:
|
|
||||||
if (record->event.pressed) {
|
|
||||||
register_code(KC_RSFT);
|
|
||||||
#ifdef BACKLIGHT_ENABLE
|
|
||||||
backlight_step();
|
|
||||||
#endif
|
|
||||||
#ifdef KEYBOARD_planck_rev5
|
|
||||||
PORTE &= ~(1<<6);
|
|
||||||
#endif
|
|
||||||
} else {
|
|
||||||
unregister_code(KC_RSFT);
|
|
||||||
#ifdef KEYBOARD_planck_rev5
|
|
||||||
PORTE |= (1<<6);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
break;
|
|
||||||
case PLOVER:
|
|
||||||
if (record->event.pressed) {
|
|
||||||
#ifdef AUDIO_ENABLE
|
|
||||||
stop_all_notes();
|
|
||||||
PLAY_SONG(plover_song);
|
|
||||||
#endif
|
|
||||||
layer_off(_RAISE);
|
|
||||||
layer_off(_LOWER);
|
|
||||||
layer_off(_ADJUST);
|
|
||||||
layer_on(_PLOVER);
|
|
||||||
if (!eeconfig_is_enabled()) {
|
|
||||||
eeconfig_init();
|
|
||||||
}
|
|
||||||
keymap_config.raw = eeconfig_read_keymap();
|
|
||||||
keymap_config.nkro = 1;
|
|
||||||
eeconfig_update_keymap(keymap_config.raw);
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
break;
|
|
||||||
case EXT_PLV:
|
|
||||||
if (record->event.pressed) {
|
|
||||||
#ifdef AUDIO_ENABLE
|
|
||||||
PLAY_SONG(plover_gb_song);
|
|
||||||
#endif
|
|
||||||
layer_off(_PLOVER);
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool muse_mode = false;
|
bool encoder_update_user(uint8_t index, bool clockwise) {
|
||||||
uint8_t last_muse_note = 0;
|
|
||||||
uint16_t muse_counter = 0;
|
|
||||||
uint8_t muse_offset = 70;
|
|
||||||
uint16_t muse_tempo = 50;
|
|
||||||
|
|
||||||
bool encoder_update(bool clockwise) {
|
|
||||||
if (muse_mode) {
|
|
||||||
if (IS_LAYER_ON(_RAISE)) {
|
|
||||||
if (clockwise) {
|
|
||||||
muse_offset++;
|
|
||||||
} else {
|
|
||||||
muse_offset--;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (clockwise) {
|
|
||||||
muse_tempo+=1;
|
|
||||||
} else {
|
|
||||||
muse_tempo-=1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (clockwise) {
|
if (clockwise) {
|
||||||
# ifdef MOUSEKEY_ENABLE
|
# ifdef MOUSEKEY_ENABLE
|
||||||
register_code(KC_MS_WH_DOWN);
|
tap_code(KC_MS_WH_DOWN);
|
||||||
unregister_code(KC_MS_WH_DOWN);
|
|
||||||
# else
|
# else
|
||||||
register_code(KC_PGDN);
|
tap_code(KC_PGDN);
|
||||||
unregister_code(KC_PGDN);
|
|
||||||
# endif
|
# endif
|
||||||
} else {
|
} else {
|
||||||
# ifdef MOUSEKEY_ENABLE
|
# ifdef MOUSEKEY_ENABLE
|
||||||
register_code(KC_MS_WH_UP);
|
tap_code(KC_MS_WH_UP);
|
||||||
unregister_code(KC_MS_WH_UP);
|
|
||||||
# else
|
# else
|
||||||
register_code(KC_PGUP);
|
tap_code(KC_PGUP);
|
||||||
unregister_code(KC_PGUP);
|
|
||||||
# endif
|
# endif
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void matrix_scan_user(void) {
|
bool music_mask_user(uint16_t keycode) {
|
||||||
#ifdef AUDIO_ENABLE
|
switch (keycode) {
|
||||||
if (muse_mode) {
|
case RAISE:
|
||||||
if (muse_counter == 0) {
|
case LOWER:
|
||||||
uint8_t muse_note = muse_offset + SCALE[muse_clock_pulse()];
|
return false;
|
||||||
if (muse_note != last_muse_note) {
|
default:
|
||||||
stop_note(compute_freq_for_midi_note(last_muse_note));
|
return true;
|
||||||
play_note(compute_freq_for_midi_note(muse_note), 0xF);
|
|
||||||
last_muse_note = muse_note;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
muse_counter = (muse_counter + 1) % muse_tempo;
|
|
||||||
}
|
layer_state_t layer_state_set_user(layer_state_t state) { return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST); }
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
SRC += muse.c
|
|
||||||
# Set any rules.mk overrides for your specific keymap here.
|
# Set any rules.mk overrides for your specific keymap here.
|
||||||
# See rules at https://docs.qmk.fm/#/config_options?id=the-rulesmk-file
|
# See rules at https://docs.qmk.fm/#/config_options?id=the-rulesmk-file
|
||||||
LTO_ENABLE = yes
|
CONSOLE_ENABLE = no
|
||||||
COMMAND_ENABLE = no
|
COMMAND_ENABLE = no
|
||||||
MOUSEKEY_ENABLE = no
|
MOUSEKEY_ENABLE = no
|
||||||
|
WEBUSB_ENABLE = yes
|
||||||
|
ORYX_ENABLE = yes
|
||||||
|
|
Loading…
Reference in a new issue