[Keymap] All about (ARM) RGB and OLEDs (drashna keymaps) (#7354)
* Add Kyria Keymap * Enable all RGBLIGHT Animations for ARM and high capacity AVR * Reduce GNUC version for __has_include * Cleanup Ortho 4x12 Community layout * Update Collide 39 keymap * Cleanup Keymaps * Enable full 30 LEDs for Ergodox * Change EEPROM Load timing * Use RGB Matrix on Planck Rev6 * Use correct keymap swap * Enable everything for ARM * Only enable rgb sleep on avr until crash is fixed * Add additional Kyria keymap config * Overhaul Kyria OLED display * Improve kyria keymap based on usage * Minor tweaks to rules * Update OLED code to truncate properly * Fix RGB Light layer indication * Switch all of biton32 to get_highest_layer function * Fix OLED Keylogger display * Run qmk cformat over all of my user files * Slight tweak to kyria based on usage * Move around LALT_T config * Add comments about base wrappers to keymaps * Another cformat pass * Temp fix for VUSB boards and NKRO * Convert tabs to spaces in rules.mk files * Only enable RGBLight if it's enabled * Add Encoder Flip setting * Update OLED font file
This commit is contained in:
parent
8e8986b250
commit
eb91c96288
38 changed files with 1503 additions and 596 deletions
|
@ -1,12 +1,11 @@
|
||||||
#include QMK_KEYBOARD_H
|
|
||||||
#include "drashna.h"
|
#include "drashna.h"
|
||||||
#include "analog.c"
|
#include "analog.c"
|
||||||
#include "pointing_device.h"
|
#include "pointing_device.h"
|
||||||
#include "pincontrol.h"
|
#include "pincontrol.h"
|
||||||
|
|
||||||
|
|
||||||
#define KC_X0 LT(_FN, KC_ESC)
|
#define KC_X0 LT(_FN, KC_ESC)
|
||||||
|
|
||||||
|
// clang-format off
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
[_QWERTY] = LAYOUT(
|
[_QWERTY] = LAYOUT(
|
||||||
KC_VOLU, KC_MPLY, KC_MPRV, RESET,
|
KC_VOLU, KC_MPLY, KC_MPRV, RESET,
|
||||||
|
@ -14,6 +13,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
),
|
),
|
||||||
|
|
||||||
};
|
};
|
||||||
|
// clang-format on
|
||||||
|
|
||||||
// Joystick
|
// Joystick
|
||||||
// Set Pins
|
// Set Pins
|
||||||
|
|
9
keyboards/c39/keymaps/drashna/config.h
Executable file → Normal file
9
keyboards/c39/keymaps/drashna/config.h
Executable file → Normal file
|
@ -2,6 +2,11 @@
|
||||||
|
|
||||||
// place overrides here
|
// place overrides here
|
||||||
#undef MATRIX_COL_PINS
|
#undef MATRIX_COL_PINS
|
||||||
#define MATRIX_COL_PINS { A3, A2, A1, A0, B13, B14, B15, B9, B3, B2, B4, A10, A9 }
|
#define MATRIX_COL_PINS \
|
||||||
|
{ A3, A2, A1, A0, B13, B14, B15, B9, B3, B2, B4, A10, A9 }
|
||||||
#undef MATRIX_ROW_PINS
|
#undef MATRIX_ROW_PINS
|
||||||
#define MATRIX_ROW_PINS { B7, B1, B0 }
|
#define MATRIX_ROW_PINS \
|
||||||
|
{ B7, B1, B0 }
|
||||||
|
|
||||||
|
#define RGB_DI_PIN B10
|
||||||
|
#define RGBLED_NUM 15
|
||||||
|
|
|
@ -1,45 +1,97 @@
|
||||||
#include QMK_KEYBOARD_H
|
#include "drashna.h"
|
||||||
|
|
||||||
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
/*
|
||||||
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
* The `LAYOUT_base` macro is a template to allow the use of identical
|
||||||
// Layer names don't all need to be of the same length, obviously, and you can also skip them
|
* modifiers for the default layouts (eg QWERTY, Colemak, Dvorak, etc), so
|
||||||
// entirely and just use numbers.
|
* that there is no need to set them up for each layout, and modify all of
|
||||||
#define _QWERTY 0
|
* them if I want to change them. This helps to keep consistency and ease
|
||||||
#define _FN1 1
|
* of use. K## is a placeholder to pass through the individual keycodes
|
||||||
|
*/
|
||||||
// Defines for task manager and such
|
// clang-format off
|
||||||
#define CALTDEL LCTL(LALT(KC_DEL))
|
#define LAYOUT_base( \
|
||||||
#define TSKMGR LCTL(LSFT(KC_ESC))
|
K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \
|
||||||
|
K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, \
|
||||||
|
K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A \
|
||||||
|
) \
|
||||||
|
LAYOUT_wrapper( \
|
||||||
|
KC_ESC, K01, K02, K03, K04, K05, KC_NO, K06, K07, K08, K09, K0A, KC_DEL, \
|
||||||
|
ALT_T(KC_TAB), K11, K12, K13, K14, K15, KC_BSPC, K16, K17, K18, K19, K1A, RALT_T(KC_QUOT), \
|
||||||
|
KC_MLSF, CTL_T(K21), K22, K23, K24, LT(_LOWER,K25), KC_SPC, LT(_RAISE,K26), K27, K28, K29, RCTL_T(K2A), KC_ENT \
|
||||||
|
)
|
||||||
|
#define LAYOUT_base_wrapper(...) LAYOUT_base(__VA_ARGS__)
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
/* Qwerty
|
[_QWERTY] = LAYOUT_base_wrapper(
|
||||||
* ,----------------------------------------------------------------------------. ,-------------.
|
_________________QWERTY_L1_________________, _________________QWERTY_R1_________________,
|
||||||
* | Q | W | E | R | T | Bksp | Y | U | I | O | P | | M1 | M2 |
|
_________________QWERTY_L2_________________, _________________QWERTY_R2_________________,
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+ |------+------|
|
_________________QWERTY_L3_________________, _________________QWERTY_R3_________________
|
||||||
* | A | S | D | F | G | Enter| H | J | K | L | ; | | M3 | M4 |
|
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+ |------+------|
|
|
||||||
* | Z | X | C | V | B | FN1 | N | M | , | . | / | | M5 | M6 |
|
|
||||||
* `----------------------------------------------------------------------------' `-------------'
|
|
||||||
*/
|
|
||||||
[_QWERTY] = LAYOUT(
|
|
||||||
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_BSPC, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_1, KC_2,
|
|
||||||
KC_A, KC_S, KC_D, KC_F, KC_G, MT(MOD_LSFT, KC_ENT), KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_3, KC_4,
|
|
||||||
KC_Z, KC_X, KC_C, KC_V, KC_B, LT(_FN1, KC_SPC), KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_5, KC_6
|
|
||||||
),
|
),
|
||||||
|
|
||||||
/* FN1
|
[_COLEMAK] = LAYOUT_base_wrapper(
|
||||||
* ,----------------------------------------------------------------------------. ,-------------.
|
_________________COLEMAK_L1________________, _________________COLEMAK_R1________________,
|
||||||
* | 1 | 2 | 3 | 4 | 5 | Bksp | 6 | 7 | 8 | 9 | 0 | | M1 | M2 |
|
_________________COLEMAK_L2________________, _________________COLEMAK_R2________________,
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+ |------+------|
|
_________________COLEMAK_L3________________, _________________COLEMAK_R3________________
|
||||||
* | 4 | 5 | 6 | + | | Enter| | | | | | | M3 | M4 |
|
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+ |------+------|
|
|
||||||
* | 7 | 8 | 9 | 0 | | FN1 | | | | | | | M5 | M6 |
|
|
||||||
* `----------------------------------------------------------------------------' `-------------'
|
|
||||||
*/
|
|
||||||
[_FN1] = LAYOUT(
|
|
||||||
KC_1, KC_2, KC_3, KC_4, KC_5, KC_BSPC, KC_6, KC_7, KC_8, KC_9, KC_0, KC_1, KC_2,
|
|
||||||
KC_4, KC_5, KC_6, KC_PLUS, _______, KC_ENT, _______, _______, _______, _______, _______, KC_3, KC_4,
|
|
||||||
KC_7, KC_8, KC_9, KC_0, _______, _______, _______, _______, _______, _______, _______, KC_5, KC_6
|
|
||||||
),
|
),
|
||||||
|
|
||||||
|
[_DVORAK] = LAYOUT_base_wrapper(
|
||||||
|
_________________DVORAK_L1_________________, _________________DVORAK_R1_________________,
|
||||||
|
_________________DVORAK_L2_________________, _________________DVORAK_R2_________________,
|
||||||
|
_________________DVORAK_L3_________________, _________________DVORAK_R3_________________
|
||||||
|
),
|
||||||
|
|
||||||
|
[_WORKMAN] = LAYOUT_base_wrapper(
|
||||||
|
_________________WORKMAN_L1________________, _________________WORKMAN_R1________________,
|
||||||
|
_________________WORKMAN_L2________________, _________________WORKMAN_R2________________,
|
||||||
|
_________________WORKMAN_L3________________, _________________WORKMAN_R3________________
|
||||||
|
),
|
||||||
|
|
||||||
|
[_NORMAN] = LAYOUT_base_wrapper(
|
||||||
|
_________________NORMAN_L1_________________, _________________NORMAN_L1_________________,
|
||||||
|
_________________NORMAN_L2_________________, _________________NORMAN_R2_________________,
|
||||||
|
_________________NORMAN_L3_________________, _________________NORMAN_R3_________________
|
||||||
|
),
|
||||||
|
|
||||||
|
[_MALTRON] = LAYOUT_base_wrapper(
|
||||||
|
_________________MALTRON_L1________________, _________________MALTRON_R1________________,
|
||||||
|
_________________MALTRON_L2________________, _________________MALTRON_R2________________,
|
||||||
|
_________________MALTRON_L3________________, _________________MALTRON_R3________________
|
||||||
|
),
|
||||||
|
|
||||||
|
[_EUCALYN] = LAYOUT_base_wrapper(
|
||||||
|
_________________EUCALYN_L1________________, _________________EUCALYN_R1________________,
|
||||||
|
_________________EUCALYN_L2________________, _________________EUCALYN_R2________________,
|
||||||
|
_________________EUCALYN_L3________________, _________________EUCALYN_R3________________
|
||||||
|
),
|
||||||
|
|
||||||
|
[_CARPLAX] = LAYOUT_base_wrapper(
|
||||||
|
_____________CARPLAX_QFMLWY_L1_____________, _____________CARPLAX_QFMLWY_R1_____________,
|
||||||
|
_____________CARPLAX_QFMLWY_L2_____________, _____________CARPLAX_QFMLWY_R2_____________,
|
||||||
|
_____________CARPLAX_QFMLWY_L3_____________, _____________CARPLAX_QFMLWY_R3_____________
|
||||||
|
),
|
||||||
|
|
||||||
|
[_MODS] = LAYOUT_wrapper(
|
||||||
|
_______, ___________________BLANK___________________, _______, ___________________BLANK___________________, _______,
|
||||||
|
_______, ___________________BLANK___________________, _______, ___________________BLANK___________________, _______,
|
||||||
|
KC_LSFT, ___________________BLANK___________________, _______, ___________________BLANK___________________, _______
|
||||||
|
),
|
||||||
|
|
||||||
|
[_LOWER] = LAYOUT_wrapper(
|
||||||
|
KC_TILD, _________________LOWER_L1__________________, _______, _________________LOWER_R1__________________, KC_BSPC,
|
||||||
|
KC_DEL, _________________LOWER_L2__________________, _______, _________________LOWER_R2__________________, KC_PIPE,
|
||||||
|
_______, _________________LOWER_L3__________________, _______, _________________LOWER_R3__________________, _______
|
||||||
|
),
|
||||||
|
|
||||||
|
[_RAISE] = LAYOUT_wrapper(
|
||||||
|
KC_GRV, _________________RAISE_L1__________________, _______, _________________RAISE_R1__________________, KC_BSPC,
|
||||||
|
KC_DEL, _________________RAISE_L2__________________, _______, _________________RAISE_R2__________________, KC_BSLS,
|
||||||
|
_______, _________________RAISE_L3__________________, _______, _________________RAISE_R3__________________, _______
|
||||||
|
),
|
||||||
|
|
||||||
|
[_ADJUST] = LAYOUT_wrapper(
|
||||||
|
KC_MAKE, _________________ADJUST_L1_________________, KC_NUKE, _________________ADJUST_R1_________________, KC_RST,
|
||||||
|
VRSN, _________________ADJUST_L2_________________, MG_NKRO, _________________ADJUST_R2_________________, EEP_RST,
|
||||||
|
TG_MODS, _________________ADJUST_L3_________________, KC_RGB_T,_________________ADJUST_R3_________________, RGB_IDL
|
||||||
|
)
|
||||||
};
|
};
|
||||||
|
// clang-format on
|
||||||
|
|
|
@ -15,4 +15,6 @@ MIDI_ENABLE = no # MIDI controls
|
||||||
UNICODE_ENABLE = yes # Unicode
|
UNICODE_ENABLE = yes # Unicode
|
||||||
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||||
AUDIO_ENABLE = yes # Audio output on port C6
|
AUDIO_ENABLE = yes # Audio output on port C6
|
||||||
RGBLIGHT_ENABLE = no # RGB Enable / Disable
|
RGBLIGHT_ENABLE = yes # RGB Enable / Disable
|
||||||
|
|
||||||
|
RGBLIGHT_STARTUP_ANIMATION = yes
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
// Corne 8x6 font with QMK Firmware Logo
|
// Corne 8x6 font with QMK Firmware Logo
|
||||||
// Online editor: https://helixfonteditor.netlify.com/
|
// Online editor: https://helixfonteditor.netlify.com/
|
||||||
|
|
||||||
|
// clang-format off
|
||||||
const unsigned char font[] PROGMEM = {
|
const unsigned char font[] PROGMEM = {
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
0x3E, 0x5B, 0x4F, 0x5B, 0x3E, 0x00,
|
0x3E, 0x5B, 0x4F, 0x5B, 0x3E, 0x00,
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
#include QMK_KEYBOARD_H
|
|
||||||
#include "drashna.h"
|
#include "drashna.h"
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
extern uint8_t is_master;
|
extern uint8_t is_master;
|
||||||
|
|
||||||
#ifdef RGBLIGHT_ENABLE
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
@ -9,9 +7,11 @@ extern uint8_t is_master;
|
||||||
extern rgblight_config_t rgblight_config;
|
extern rgblight_config_t rgblight_config;
|
||||||
#endif
|
#endif
|
||||||
#ifdef OLED_DRIVER_ENABLE
|
#ifdef OLED_DRIVER_ENABLE
|
||||||
|
# define KEYLOGGER_LENGTH 5
|
||||||
static uint32_t oled_timer = 0;
|
static uint32_t oled_timer = 0;
|
||||||
static char keylog_str[6] = {};
|
static char keylog_str[KEYLOGGER_LENGTH + 1] = {"\n"};
|
||||||
static uint16_t log_timer = 0;
|
static uint16_t log_timer = 0;
|
||||||
|
// clang-format off
|
||||||
static const char PROGMEM code_to_name[0xFF] = {
|
static const char PROGMEM code_to_name[0xFF] = {
|
||||||
// 0 1 2 3 4 5 6 7 8 9 A B c D E F
|
// 0 1 2 3 4 5 6 7 8 9 A B c D E F
|
||||||
' ', ' ', ' ', ' ', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', // 0x
|
' ', ' ', ' ', ' ', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', // 0x
|
||||||
|
@ -37,7 +37,14 @@ void add_keylog(uint16_t keycode);
|
||||||
|
|
||||||
enum crkbd_keycodes { RGBRST = NEW_SAFE_RANGE };
|
enum crkbd_keycodes { RGBRST = NEW_SAFE_RANGE };
|
||||||
|
|
||||||
// clang-format off
|
/*
|
||||||
|
* The `LAYOUT_crkbd_base` macro is a template to allow the use of identical
|
||||||
|
* modifiers for the default layouts (eg QWERTY, Colemak, Dvorak, etc), so
|
||||||
|
* that there is no need to set them up for each layout, and modify all of
|
||||||
|
* them if I want to change them. This helps to keep consistency and ease
|
||||||
|
* of use. K## is a placeholder to pass through the individual keycodes
|
||||||
|
*/
|
||||||
|
|
||||||
#define LAYOUT_crkbd_base( \
|
#define LAYOUT_crkbd_base( \
|
||||||
K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \
|
K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \
|
||||||
K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, \
|
K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, \
|
||||||
|
@ -155,7 +162,7 @@ void add_keylog(uint16_t keycode) {
|
||||||
keycode = 0;
|
keycode = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (uint8_t i = 4; i > 0; --i) {
|
for (uint8_t i = (KEYLOGGER_LENGTH - 1); i > 0; --i) {
|
||||||
keylog_str[i] = keylog_str[i - 1];
|
keylog_str[i] = keylog_str[i - 1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -179,7 +186,7 @@ void render_keylogger_status(void) {
|
||||||
|
|
||||||
void render_default_layer_state(void) {
|
void render_default_layer_state(void) {
|
||||||
oled_write_P(PSTR("Lyout"), false);
|
oled_write_P(PSTR("Lyout"), false);
|
||||||
switch (biton32(default_layer_state)) {
|
switch (get_highest_layer(default_layer_state)) {
|
||||||
case _QWERTY:
|
case _QWERTY:
|
||||||
oled_write_P(PSTR(" QRTY"), false);
|
oled_write_P(PSTR(" QRTY"), false);
|
||||||
break;
|
break;
|
||||||
|
@ -279,7 +286,9 @@ void oled_task_user(void) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
# ifndef SPLIT_KEYBOARD
|
# ifndef SPLIT_KEYBOARD
|
||||||
else { oled_on(); }
|
else {
|
||||||
|
oled_on();
|
||||||
|
}
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
update_log();
|
update_log();
|
||||||
|
@ -303,16 +312,12 @@ uint16_t get_tapping_term(uint16_t keycode) {
|
||||||
|
|
||||||
#ifdef RGB_MATRIX_ENABLE
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
|
|
||||||
void suspend_power_down_keymap(void) {
|
void suspend_power_down_keymap(void) { rgb_matrix_set_suspend_state(true); }
|
||||||
rgb_matrix_set_suspend_state(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
void suspend_wakeup_init_keymap(void) {
|
void suspend_wakeup_init_keymap(void) { rgb_matrix_set_suspend_state(false); }
|
||||||
rgb_matrix_set_suspend_state(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
void check_default_layer(uint8_t mode, uint8_t type) {
|
void check_default_layer(uint8_t mode, uint8_t type) {
|
||||||
switch (biton32(default_layer_state)) {
|
switch (get_highest_layer(default_layer_state)) {
|
||||||
case _QWERTY:
|
case _QWERTY:
|
||||||
rgb_matrix_layer_helper(HSV_CYAN, mode, rgb_matrix_config.speed, type);
|
rgb_matrix_layer_helper(HSV_CYAN, mode, rgb_matrix_config.speed, type);
|
||||||
break;
|
break;
|
||||||
|
@ -351,7 +356,7 @@ void rgb_matrix_indicators_user(void) {
|
||||||
rgb_matrix_config.enable
|
rgb_matrix_config.enable
|
||||||
# endif
|
# endif
|
||||||
) {
|
) {
|
||||||
switch (biton32(layer_state)) {
|
switch (get_highest_layer(layer_state)) {
|
||||||
case _GAMEPAD:
|
case _GAMEPAD:
|
||||||
rgb_matrix_layer_helper(HSV_ORANGE, 0, rgb_matrix_config.speed, LED_FLAG_UNDERGLOW);
|
rgb_matrix_layer_helper(HSV_ORANGE, 0, rgb_matrix_config.speed, LED_FLAG_UNDERGLOW);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -1,14 +1,12 @@
|
||||||
/* Good on you for modifying your layout! if you don't have
|
|
||||||
* time to read the QMK docs, a list of keycodes can be found at
|
|
||||||
*
|
|
||||||
* https://github.com/qmk/qmk_firmware/blob/master/docs/keycodes.md
|
|
||||||
*
|
|
||||||
* There's also a template for adding new layers at the bottom of this file!
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
|
||||||
#include "drashna.h"
|
#include "drashna.h"
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The `LAYOUT_gergo_base` macro is a template to allow the use of identical
|
||||||
|
* modifiers for the default layouts (eg QWERTY, Colemak, Dvorak, etc), so
|
||||||
|
* that there is no need to set them up for each layout, and modify all of
|
||||||
|
* them if I want to change them. This helps to keep consistency and ease
|
||||||
|
* of use. K## is a placeholder to pass through the individual keycodes
|
||||||
|
*/
|
||||||
// clang-format off
|
// clang-format off
|
||||||
#define LAYOUT_gergo_base( \
|
#define LAYOUT_gergo_base( \
|
||||||
K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \
|
K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \
|
||||||
|
@ -17,7 +15,7 @@
|
||||||
) \
|
) \
|
||||||
LAYOUT_gergo_wrapper( \
|
LAYOUT_gergo_wrapper( \
|
||||||
KC_ESC, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, KC_PIPE, \
|
KC_ESC, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, KC_PIPE, \
|
||||||
KC_TAB, K11, K12, K13, K14, K15, _______, _______, K16, K17, K18, K19, K1A, RALT_T(KC_QUOT), \
|
LALT_T(KC_TAB), K11, K12, K13, K14, K15, _______, _______, K16, K17, K18, K19, K1A, RALT_T(KC_QUOT), \
|
||||||
OS_LSFT, CTL_T(K21), K22, K23, K24, K25, _______, _______, _______, _______, K26, K27, K28, K29, RCTL_T(K2A), OS_RSFT, \
|
OS_LSFT, CTL_T(K21), K22, K23, K24, K25, _______, _______, _______, _______, K26, K27, K28, K29, RCTL_T(K2A), OS_RSFT, \
|
||||||
KC_GRV, KC_SPC, BK_LWER, OS_LALT, OS_RGUI, DL_RAIS, KC_ENT, _______ \
|
KC_GRV, KC_SPC, BK_LWER, OS_LALT, OS_RGUI, DL_RAIS, KC_ENT, _______ \
|
||||||
)
|
)
|
||||||
|
|
|
@ -32,7 +32,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# undef RGBLED_NUM
|
# undef RGBLED_NUM
|
||||||
# define RGBLED_NUM 18 // Number of LEDs
|
# define RGBLED_NUM 18 // Number of LEDs
|
||||||
# undef RGBLED_SPLIT
|
# undef RGBLED_SPLIT
|
||||||
# define RGBLED_SPLIT { 9, 9 }
|
# define RGBLED_SPLIT \
|
||||||
|
{ 9, 9 }
|
||||||
# define RGBLIGHT_HUE_STEP 8
|
# define RGBLIGHT_HUE_STEP 8
|
||||||
# define RGBLIGHT_SAT_STEP 8
|
# define RGBLIGHT_SAT_STEP 8
|
||||||
# define RGBLIGHT_VAL_STEP 8
|
# define RGBLIGHT_VAL_STEP 8
|
||||||
|
|
|
@ -1,7 +1,13 @@
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
|
||||||
#include "drashna.h"
|
#include "drashna.h"
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The `LAYOUT_iris_base` macro is a template to allow the use of identical
|
||||||
|
* modifiers for the default layouts (eg QWERTY, Colemak, Dvorak, etc), so
|
||||||
|
* that there is no need to set them up for each layout, and modify all of
|
||||||
|
* them if I want to change them. This helps to keep consistency and ease
|
||||||
|
* of use. K## is a placeholder to pass through the individual keycodes
|
||||||
|
*/
|
||||||
|
|
||||||
// clang-format off
|
// clang-format off
|
||||||
#define LAYOUT_iris_base( \
|
#define LAYOUT_iris_base( \
|
||||||
K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \
|
K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \
|
||||||
|
@ -10,8 +16,8 @@
|
||||||
) \
|
) \
|
||||||
LAYOUT_wrapper( \
|
LAYOUT_wrapper( \
|
||||||
KC_ESC, ________________NUMBER_LEFT________________, ________________NUMBER_RIGHT_______________, KC_MINS, \
|
KC_ESC, ________________NUMBER_LEFT________________, ________________NUMBER_RIGHT_______________, KC_MINS, \
|
||||||
KC_TAB , K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, KC_BSLS, \
|
LALT_T(KC_TAB), K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, KC_BSLS, \
|
||||||
KC_C1R3, ALT_T(K11), K12, K13, K14, K15, K16, K17, K18, K19, K1A, RALT_T(KC_QUOT), \
|
KC_C1R3, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, RALT_T(KC_QUOT), \
|
||||||
OS_LSFT, CTL_T(K21), K22, K23, K24, K25, OS_LALT, OS_RGUI, K26, K27, K28, K29, RCTL_T(K2A), OS_RSFT, \
|
OS_LSFT, CTL_T(K21), K22, K23, K24, K25, OS_LALT, OS_RGUI, K26, K27, K28, K29, RCTL_T(K2A), OS_RSFT, \
|
||||||
KC_GRV, KC_SPC, LT(_LOWER,KC_BSPC), LT(_RAISE,KC_DEL), KC_ENT, RAISE \
|
KC_GRV, KC_SPC, LT(_LOWER,KC_BSPC), LT(_RAISE,KC_DEL), KC_ENT, RAISE \
|
||||||
)
|
)
|
||||||
|
|
|
@ -31,9 +31,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# define RGBLIGHT_EFFECT_SNAKE_LENGTH 2
|
# define RGBLIGHT_EFFECT_SNAKE_LENGTH 2
|
||||||
#endif // RGBLIGHT_ENABLE
|
#endif // RGBLIGHT_ENABLE
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#undef PRODUCT
|
#undef PRODUCT
|
||||||
#define PRODUCT Drashnas Viterbi Macro Pad
|
#define PRODUCT Drashnas Viterbi Macro Pad
|
||||||
|
|
||||||
|
@ -42,6 +39,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# define NO_MUSIC_MODE
|
# define NO_MUSIC_MODE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// clang-format off
|
||||||
#define LAYOUT_ortho_5x7( \
|
#define LAYOUT_ortho_5x7( \
|
||||||
L00, L01, L02, L03, L04, L05, L06, \
|
L00, L01, L02, L03, L04, L05, L06, \
|
||||||
L10, L11, L12, L13, L14, L15, L16, \
|
L10, L11, L12, L13, L14, L15, L16, \
|
||||||
|
@ -56,6 +54,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
{ L30, L31, L32, L33, L34, L35, L36 }, \
|
{ L30, L31, L32, L33, L34, L35, L36 }, \
|
||||||
{ L40, L41, L42, L43, L44, L45, L46 }, \
|
{ L40, L41, L42, L43, L44, L45, L46 }, \
|
||||||
}
|
}
|
||||||
|
// clang-format on
|
||||||
|
|
||||||
#define QMK_ESC_OUTPUT F5 // usually COL
|
#define QMK_ESC_OUTPUT F5 // usually COL
|
||||||
#define QMK_ESC_INPUT D4 // usually ROW
|
#define QMK_ESC_INPUT D4 // usually ROW
|
||||||
|
|
|
@ -1,24 +1,15 @@
|
||||||
#include QMK_KEYBOARD_H
|
|
||||||
#include "drashna.h"
|
#include "drashna.h"
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
|
||||||
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
|
||||||
// Layer names don't all need to be of the same length, obviously, and you can also skip them
|
|
||||||
// entirely and just use numbers.
|
|
||||||
|
|
||||||
|
|
||||||
// Fillers to make layering more clear
|
// Fillers to make layering more clear
|
||||||
#define DIABLO TG(_DIABLO)
|
#define DIABLO TG(_DIABLO)
|
||||||
#define GAMEPAD TG(_GAMEPAD)
|
#define GAMEPAD TG(_GAMEPAD)
|
||||||
#define MEDIA TT(_MEDIA)
|
#define MEDIA TT(_MEDIA)
|
||||||
|
|
||||||
|
|
||||||
// enum more_custom_keycodes {
|
// enum more_custom_keycodes {
|
||||||
// KC_P00 = NEW_SAFE_RANGE
|
// KC_P00 = NEW_SAFE_RANGE
|
||||||
//};
|
//};
|
||||||
|
|
||||||
|
// clang-format off
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
[_NUMLOCK] = LAYOUT_ortho_5x7(
|
[_NUMLOCK] = LAYOUT_ortho_5x7(
|
||||||
|
@ -55,11 +46,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
// clang-format on
|
||||||
|
|
||||||
|
|
||||||
bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
|
bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
|
||||||
// switch (keycode) {
|
// switch (keycode) {
|
||||||
// case KC_P00:
|
// case KC_P00:
|
||||||
// if (!record->event.pressed) {
|
// if (!record->event.pressed) {
|
||||||
|
@ -72,9 +61,6 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void matrix_init_keymap(void) {
|
void matrix_init_keymap(void) {
|
||||||
#ifndef CONVERT_TO_PROTON_C
|
#ifndef CONVERT_TO_PROTON_C
|
||||||
setPinOutput(D5);
|
setPinOutput(D5);
|
||||||
|
|
38
keyboards/kyria/keymaps/drashna/config.h
Normal file
38
keyboards/kyria/keymaps/drashna/config.h
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
/* Copyright 2019 Thomas Baart <thomas@splitkb.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
|
||||||
|
|
||||||
|
#define EE_HANDS
|
||||||
|
|
||||||
|
#ifdef OLED_DRIVER_ENABLE
|
||||||
|
# define OLED_DISPLAY_128X64
|
||||||
|
# define OLED_FONT_H "font_gmk_bad.h"
|
||||||
|
# define OLED_DISABLE_TIMEOUT
|
||||||
|
# define OLED_SCROLL_TIMEOUT_RIGHT 60000
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
# define RGBLIGHT_SLEEP
|
||||||
|
# define RGBLIGHT_LIMIT_VAL 200
|
||||||
|
# define RGBLIGHT_HUE_STEP 8
|
||||||
|
# define RGBLIGHT_SAT_STEP 8
|
||||||
|
# define RGBLIGHT_VAL_STEP 8
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// If you are using an Elite C rev3 on the slave side, uncomment the lines below:
|
||||||
|
#define SPLIT_USB_DETECT
|
||||||
|
#define SPLIT_USB_TIMEOUT 1000
|
372
keyboards/kyria/keymaps/drashna/keymap.c
Normal file
372
keyboards/kyria/keymaps/drashna/keymap.c
Normal file
|
@ -0,0 +1,372 @@
|
||||||
|
#include "drashna.h"
|
||||||
|
|
||||||
|
uint8_t is_master;
|
||||||
|
|
||||||
|
#ifdef OLED_DRIVER_ENABLE
|
||||||
|
# define KEYLOGGER_LENGTH 10
|
||||||
|
static uint32_t oled_timer = 0;
|
||||||
|
static char keylog_str[KEYLOGGER_LENGTH + 1] = {"\n"};
|
||||||
|
static uint16_t log_timer = 0;
|
||||||
|
// clang-format off
|
||||||
|
static const char PROGMEM code_to_name[0xFF] = {
|
||||||
|
// 0 1 2 3 4 5 6 7 8 9 A B c D E F
|
||||||
|
' ', ' ', ' ', ' ', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', // 0x
|
||||||
|
'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '1', '2', // 1x
|
||||||
|
'3', '4', '5', '6', '7', '8', '9', '0', 20, 19, 27, 26, 22, '-', '=', '[', // 2x
|
||||||
|
']','\\', '#', ';','\'', '`', ',', '.', '/', 128, ' ', ' ', ' ', ' ', ' ', ' ', // 3x
|
||||||
|
' ', ' ', ' ', ' ', ' ', ' ', 'P', 'S', ' ', ' ', ' ', ' ', 16, ' ', ' ', ' ', // 4x
|
||||||
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', // 5x
|
||||||
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', // 6x
|
||||||
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', // 7x
|
||||||
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', // 8x
|
||||||
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', // 9x
|
||||||
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', // Ax
|
||||||
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', // Bx
|
||||||
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', // Cx
|
||||||
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', // Dx
|
||||||
|
'C', 'S', 'A', 'C', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', // Ex
|
||||||
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ' // Fx
|
||||||
|
};
|
||||||
|
|
||||||
|
void add_keylog(uint16_t keycode);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef UNICODE_ENABLE
|
||||||
|
# define UC(x) KC_NO
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The `LAYOUT_kyria_base` macro is a template to allow the use of identical
|
||||||
|
* modifiers for the default layouts (eg QWERTY, Colemak, Dvorak, etc), so
|
||||||
|
* that there is no need to set them up for each layout, and modify all of
|
||||||
|
* them if I want to change them. This helps to keep consistency and ease
|
||||||
|
* of use. K## is a placeholder to pass through the individual keycodes
|
||||||
|
*/
|
||||||
|
|
||||||
|
// clang-format off
|
||||||
|
#define LAYOUT_kyria_base( \
|
||||||
|
K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \
|
||||||
|
K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, \
|
||||||
|
K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A \
|
||||||
|
) \
|
||||||
|
LAYOUT_wrapper( \
|
||||||
|
KC_ESC, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, KC_MINS, \
|
||||||
|
LALT_T(KC_TAB), K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, RALT_T(KC_QUOT), \
|
||||||
|
OS_LSFT, CTL_T(K21), K22, K23, K24, K25, KC_NO, KC_NO, KC_NO, KC_NO, K26, K27, K28, K29, RCTL_T(K2A), OS_RSFT, \
|
||||||
|
KC_MUTE, OS_LALT, KC_GRV, KC_SPC, BK_LWER, DL_RAIS, KC_ENT, OS_RGUI, UC(0x03A8), UC(0x2E2E) \
|
||||||
|
)
|
||||||
|
/* Re-pass though to allow templates to be used */
|
||||||
|
#define LAYOUT_kyria_base_wrapper(...) LAYOUT_kyria_base(__VA_ARGS__)
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
[_QWERTY] = LAYOUT_kyria_base_wrapper(
|
||||||
|
_________________QWERTY_L1_________________, _________________QWERTY_R1_________________,
|
||||||
|
_________________QWERTY_L2_________________, _________________QWERTY_R2_________________,
|
||||||
|
_________________QWERTY_L3_________________, _________________QWERTY_R3_________________
|
||||||
|
),
|
||||||
|
|
||||||
|
[_COLEMAK] = LAYOUT_kyria_base_wrapper(
|
||||||
|
_________________COLEMAK_L1________________, _________________COLEMAK_R1________________,
|
||||||
|
_________________COLEMAK_L2________________, _________________COLEMAK_R2________________,
|
||||||
|
_________________COLEMAK_L3________________, _________________COLEMAK_R3________________
|
||||||
|
),
|
||||||
|
|
||||||
|
[_DVORAK] = LAYOUT_kyria_base_wrapper(
|
||||||
|
_________________DVORAK_L1_________________, _________________DVORAK_R1_________________,
|
||||||
|
_________________DVORAK_L2_________________, _________________DVORAK_R2_________________,
|
||||||
|
_________________DVORAK_L3_________________, _________________DVORAK_R3_________________
|
||||||
|
),
|
||||||
|
|
||||||
|
[_WORKMAN] = LAYOUT_kyria_base_wrapper(
|
||||||
|
_________________WORKMAN_L1________________, _________________WORKMAN_R1________________,
|
||||||
|
_________________WORKMAN_L2________________, _________________WORKMAN_R2________________,
|
||||||
|
_________________WORKMAN_L3________________, _________________WORKMAN_R3________________
|
||||||
|
),
|
||||||
|
|
||||||
|
[_NORMAN] = LAYOUT_kyria_base_wrapper(
|
||||||
|
_________________NORMAN_L1_________________, _________________NORMAN_L1_________________,
|
||||||
|
_________________NORMAN_L2_________________, _________________NORMAN_R2_________________,
|
||||||
|
_________________NORMAN_L3_________________, _________________NORMAN_R3_________________
|
||||||
|
),
|
||||||
|
|
||||||
|
[_MALTRON] = LAYOUT_kyria_base_wrapper(
|
||||||
|
_________________MALTRON_L1________________, _________________MALTRON_R1________________,
|
||||||
|
_________________MALTRON_L2________________, _________________MALTRON_R2________________,
|
||||||
|
_________________MALTRON_L3________________, _________________MALTRON_R3________________
|
||||||
|
),
|
||||||
|
|
||||||
|
[_EUCALYN] = LAYOUT_kyria_base_wrapper(
|
||||||
|
_________________EUCALYN_L1________________, _________________EUCALYN_R1________________,
|
||||||
|
_________________EUCALYN_L2________________, _________________EUCALYN_R2________________,
|
||||||
|
_________________EUCALYN_L3________________, _________________EUCALYN_R3________________
|
||||||
|
),
|
||||||
|
|
||||||
|
[_CARPLAX] = LAYOUT_kyria_base_wrapper(
|
||||||
|
_____________CARPLAX_QFMLWY_L1_____________, _____________CARPLAX_QFMLWY_R1_____________,
|
||||||
|
_____________CARPLAX_QFMLWY_L2_____________, _____________CARPLAX_QFMLWY_R2_____________,
|
||||||
|
_____________CARPLAX_QFMLWY_L3_____________, _____________CARPLAX_QFMLWY_R3_____________
|
||||||
|
),
|
||||||
|
[_MODS] = LAYOUT_wrapper(
|
||||||
|
_______, ___________________BLANK___________________, ___________________BLANK___________________, _______,
|
||||||
|
_______, ___________________BLANK___________________, ___________________BLANK___________________, _______,
|
||||||
|
KC_LSFT, ___________________BLANK___________________, _______, _______, _______, _______, ___________________BLANK___________________, KC_RSFT,
|
||||||
|
_______, _______, KC_LALT, _______, _______, _______, _______, KC_RGUI, _______, _______
|
||||||
|
),
|
||||||
|
[_LOWER] = LAYOUT_wrapper(
|
||||||
|
KC_F12, _________________LOWER_L1__________________, _________________LOWER_R1__________________, KC_F11,
|
||||||
|
_______, _________________LOWER_L2__________________, _________________LOWER_R2__________________, KC_PIPE,
|
||||||
|
_______, _________________LOWER_L3__________________, _______, _______, _______, _______, _________________LOWER_R3__________________, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||||
|
),
|
||||||
|
[_RAISE] = LAYOUT_wrapper(
|
||||||
|
KC_F12, _________________RAISE_L1__________________, _________________RAISE_R1__________________, KC_F11,
|
||||||
|
_______, _________________RAISE_L2__________________, _________________RAISE_R2__________________, KC_BSLS,
|
||||||
|
_______, _________________RAISE_L3__________________, _______, _______, _______, _______, _________________RAISE_R3__________________, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||||
|
),
|
||||||
|
[_ADJUST] = LAYOUT_wrapper(
|
||||||
|
KC_MAKE, _________________ADJUST_L1_________________, _________________ADJUST_R1_________________, KC_RESET,
|
||||||
|
VRSN, _________________ADJUST_L2_________________, _________________ADJUST_R2_________________, EEP_RST,
|
||||||
|
_______, _________________ADJUST_L3_________________, HPT_TOG, HPT_FBK, MG_NKRO, UC_MOD, _________________ADJUST_R3_________________, TG_MODS,
|
||||||
|
_______, _______, _______, KC_NUKE, _______, _______, _______, _______, _______, _______
|
||||||
|
),
|
||||||
|
// [_LAYERINDEX] = LAYOUT_wrapper(
|
||||||
|
// _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
// _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
// _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
// _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||||
|
// ),
|
||||||
|
};
|
||||||
|
// clang-format on
|
||||||
|
|
||||||
|
bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
if (record->event.pressed) {
|
||||||
|
#ifdef OLED_DRIVER_ENABLE
|
||||||
|
oled_timer = timer_read32();
|
||||||
|
add_keylog(keycode);
|
||||||
|
#endif
|
||||||
|
#ifndef SPLIT_KEYBOARD
|
||||||
|
if (keycode == RESET && !is_master) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
void matrix_init_keymap(void) { is_master = (uint8_t)is_keyboard_master(); }
|
||||||
|
|
||||||
|
#ifdef OLED_DRIVER_ENABLE
|
||||||
|
oled_rotation_t oled_init_user(oled_rotation_t rotation) { return OLED_ROTATION_180; }
|
||||||
|
|
||||||
|
void add_keylog(uint16_t keycode) {
|
||||||
|
if ((keycode >= QK_MOD_TAP && keycode <= QK_MOD_TAP_MAX) || (keycode >= QK_LAYER_TAP && keycode <= QK_LAYER_TAP_MAX) || (keycode >= QK_MODS && keycode <= QK_MODS_MAX)) {
|
||||||
|
keycode = keycode & 0xFF;
|
||||||
|
} else if (keycode > 0xFF) {
|
||||||
|
keycode = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (uint8_t i = (KEYLOGGER_LENGTH - 1); i > 0; --i) {
|
||||||
|
keylog_str[i] = keylog_str[i - 1];
|
||||||
|
}
|
||||||
|
|
||||||
|
if (keycode < (sizeof(code_to_name) / sizeof(char))) {
|
||||||
|
keylog_str[0] = pgm_read_byte(&code_to_name[keycode]);
|
||||||
|
}
|
||||||
|
|
||||||
|
log_timer = timer_read();
|
||||||
|
}
|
||||||
|
|
||||||
|
void update_log(void) {
|
||||||
|
if (timer_elapsed(log_timer) > 750) {
|
||||||
|
// add_keylog(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void render_keylogger_status(void) {
|
||||||
|
oled_write_P(PSTR("Keylogger: "), false);
|
||||||
|
oled_write(keylog_str, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
void render_default_layer_state(void) {
|
||||||
|
oled_write_P(PSTR("Layout: "), false);
|
||||||
|
switch (get_highest_layer(default_layer_state)) {
|
||||||
|
case _QWERTY:
|
||||||
|
oled_write_ln_P(PSTR("Qwerty "), false);
|
||||||
|
break;
|
||||||
|
case _COLEMAK:
|
||||||
|
oled_write_ln_P(PSTR("Colemak"), false);
|
||||||
|
break;
|
||||||
|
case _DVORAK:
|
||||||
|
oled_write_ln_P(PSTR("Dvorak"), false);
|
||||||
|
break;
|
||||||
|
case _WORKMAN:
|
||||||
|
oled_write_ln_P(PSTR("Workman"), false);
|
||||||
|
break;
|
||||||
|
case _NORMAN:
|
||||||
|
oled_write_ln_P(PSTR("Norman"), false);
|
||||||
|
break;
|
||||||
|
case _MALTRON:
|
||||||
|
oled_write_ln_P(PSTR("Maltron"), false);
|
||||||
|
break;
|
||||||
|
case _EUCALYN:
|
||||||
|
oled_write_ln_P(PSTR("Eucalyn"), false);
|
||||||
|
break;
|
||||||
|
case _CARPLAX:
|
||||||
|
oled_write_ln_P(PSTR("Carplax"), false);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void render_layer_state(void) {
|
||||||
|
oled_write_ln_P(PSTR("Layer:"), false);
|
||||||
|
oled_write_P(PSTR(" "), false);
|
||||||
|
oled_write_P(PSTR("Lower"), layer_state_is(_LOWER));
|
||||||
|
oled_write_P(PSTR(" "), false);
|
||||||
|
oled_write_P(PSTR("Raise"), layer_state_is(_RAISE));
|
||||||
|
oled_write_P(PSTR(" "), false);
|
||||||
|
oled_write_ln_P(PSTR("Mods"), layer_state_is(_MODS));
|
||||||
|
}
|
||||||
|
|
||||||
|
void render_keylock_status(uint8_t led_usb_state) {
|
||||||
|
oled_write_P(PSTR("Lock: "), false);
|
||||||
|
oled_write_P(PSTR("NUM"), led_usb_state & (1 << USB_LED_NUM_LOCK));
|
||||||
|
oled_write_P(PSTR(" "), false);
|
||||||
|
oled_write_P(PSTR("CAPS"), led_usb_state & (1 << USB_LED_CAPS_LOCK));
|
||||||
|
oled_write_P(PSTR(" "), false);
|
||||||
|
oled_write_ln_P(PSTR("SCL"), led_usb_state & (1 << USB_LED_SCROLL_LOCK));
|
||||||
|
}
|
||||||
|
|
||||||
|
void render_mod_status(uint8_t modifiers) {
|
||||||
|
oled_write_P(PSTR("Mods: "), false);
|
||||||
|
oled_write_P(PSTR("Sft"), (modifiers & MOD_MASK_SHIFT));
|
||||||
|
oled_write_P(PSTR(" "), false);
|
||||||
|
oled_write_P(PSTR("Ctl"), (modifiers & MOD_MASK_CTRL));
|
||||||
|
oled_write_P(PSTR(" "), false);
|
||||||
|
oled_write_P(PSTR("Alt"), (modifiers & MOD_MASK_ALT));
|
||||||
|
oled_write_P(PSTR(" "), false);
|
||||||
|
oled_write_P(PSTR("GUI"), (modifiers & MOD_MASK_GUI));
|
||||||
|
}
|
||||||
|
|
||||||
|
void render_bootmagic_status(void) {
|
||||||
|
/* Show Ctrl-Gui Swap options */
|
||||||
|
static const char PROGMEM logo[][2][3] = {
|
||||||
|
{{0x97, 0x98, 0}, {0xb7, 0xb8, 0}},
|
||||||
|
{{0x95, 0x96, 0}, {0xb5, 0xb6, 0}},
|
||||||
|
};
|
||||||
|
oled_write_P(PSTR("Boot "), false);
|
||||||
|
oled_write_P(logo[0][0], !keymap_config.swap_lctl_lgui);
|
||||||
|
oled_write_P(logo[1][0], keymap_config.swap_lctl_lgui);
|
||||||
|
oled_write_P(PSTR(" "), false);
|
||||||
|
oled_write_P(PSTR("NKRO"), keymap_config.nkro);
|
||||||
|
oled_write_P(PSTR(" "), false);
|
||||||
|
oled_write_ln_P(PSTR("GUI"), !keymap_config.no_gui);
|
||||||
|
oled_write_P(PSTR("Magic "), false);
|
||||||
|
oled_write_P(logo[0][1], !keymap_config.swap_lctl_lgui);
|
||||||
|
oled_write_P(logo[1][1], keymap_config.swap_lctl_lgui);
|
||||||
|
oled_write_P(PSTR(" "), false);
|
||||||
|
oled_write_P(PSTR("GRV"), keymap_config.swap_grave_esc);
|
||||||
|
oled_write_P(PSTR(" "), false);
|
||||||
|
oled_write_ln_P(PSTR("CAPS"), keymap_config.swap_control_capslock);
|
||||||
|
}
|
||||||
|
|
||||||
|
void render_user_status(void) {
|
||||||
|
oled_write_P(PSTR("USER: "), false);
|
||||||
|
oled_write_P(PSTR("Anim"), userspace_config.rgb_matrix_idle_anim);
|
||||||
|
oled_write_P(PSTR(" "), false);
|
||||||
|
oled_write_P(PSTR("Layr"), userspace_config.rgb_layer_change);
|
||||||
|
oled_write_P(PSTR(" "), false);
|
||||||
|
oled_write_ln_P(PSTR("Nuke"), userspace_config.nuke_switch);
|
||||||
|
}
|
||||||
|
|
||||||
|
// clang-format off
|
||||||
|
void render_logo(void) {
|
||||||
|
static const char PROGMEM qmk_logo[] = {
|
||||||
|
0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,0x90,0x91,0x92,0x93,0x94,
|
||||||
|
0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf,0xb0,0xb1,0xb2,0xb3,0xb4,
|
||||||
|
0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4,0};
|
||||||
|
|
||||||
|
oled_write_P(qmk_logo, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
# ifndef SPLIT_TRANSPORT_MIRROR
|
||||||
|
void render_kyria_logo(void) {
|
||||||
|
static const char PROGMEM kyria_logo[] = {
|
||||||
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,128,128,192,224,240,112,120, 56, 60, 28, 30, 14, 14, 14, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 14, 14, 14, 30, 28, 60, 56,120,112,240,224,192,128,128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||||
|
0, 0, 0, 0, 0, 0, 0,192,224,240,124, 62, 31, 15, 7, 3, 1,128,192,224,240,120, 56, 60, 28, 30, 14, 14, 7, 7,135,231,127, 31,255,255, 31,127,231,135, 7, 7, 14, 14, 30, 28, 60, 56,120,240,224,192,128, 1, 3, 7, 15, 31, 62,124,240,224,192, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||||
|
0, 0, 0, 0,240,252,255, 31, 7, 1, 0, 0,192,240,252,254,255,247,243,177,176, 48, 48, 48, 48, 48, 48, 48,120,254,135, 1, 0, 0,255,255, 0, 0, 1,135,254,120, 48, 48, 48, 48, 48, 48, 48,176,177,243,247,255,254,252,240,192, 0, 0, 1, 7, 31,255,252,240, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||||
|
0, 0, 0,255,255,255, 0, 0, 0, 0, 0,254,255,255, 1, 1, 7, 30,120,225,129,131,131,134,134,140,140,152,152,177,183,254,248,224,255,255,224,248,254,183,177,152,152,140,140,134,134,131,131,129,225,120, 30, 7, 1, 1,255,255,254, 0, 0, 0, 0, 0,255,255,255, 0, 0, 0, 0,255,255, 0, 0,192,192, 48, 48, 0, 0,240,240, 0, 0, 0, 0, 0, 0,240,240, 0, 0,240,240,192,192, 48, 48, 48, 48,192,192, 0, 0, 48, 48,243,243, 0, 0, 0, 0, 0, 0, 48, 48, 48, 48, 48, 48,192,192, 0, 0, 0, 0, 0,
|
||||||
|
0, 0, 0,255,255,255, 0, 0, 0, 0, 0,127,255,255,128,128,224,120, 30,135,129,193,193, 97, 97, 49, 49, 25, 25,141,237,127, 31, 7,255,255, 7, 31,127,237,141, 25, 25, 49, 49, 97, 97,193,193,129,135, 30,120,224,128,128,255,255,127, 0, 0, 0, 0, 0,255,255,255, 0, 0, 0, 0, 63, 63, 3, 3, 12, 12, 48, 48, 0, 0, 0, 0, 51, 51, 51, 51, 51, 51, 15, 15, 0, 0, 63, 63, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 48, 63, 63, 48, 48, 0, 0, 12, 12, 51, 51, 51, 51, 51, 51, 63, 63, 0, 0, 0, 0, 0,
|
||||||
|
0, 0, 0, 0, 15, 63,255,248,224,128, 0, 0, 3, 15, 63,127,255,239,207,141, 13, 12, 12, 12, 12, 12, 12, 12, 30,127,225,128, 0, 0,255,255, 0, 0,128,225,127, 30, 12, 12, 12, 12, 12, 12, 12, 13,141,207,239,255,127, 63, 15, 3, 0, 0,128,224,248,255, 63, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||||
|
0, 0, 0, 0, 0, 0, 0, 3, 7, 15, 62,124,248,240,224,192,128, 1, 3, 7, 15, 30, 28, 60, 56,120,112,112,224,224,225,231,254,248,255,255,248,254,231,225,224,224,112,112,120, 56, 60, 28, 30, 15, 7, 3, 1,128,192,224,240,248,124, 62, 15, 7, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||||
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 3, 7, 15, 14, 30, 28, 60, 56,120,112,112,112,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,112,112,112,120, 56, 60, 28, 30, 14, 15, 7, 3, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
|
||||||
|
};
|
||||||
|
oled_write_raw_P(kyria_logo, sizeof(kyria_logo));
|
||||||
|
}
|
||||||
|
# endif
|
||||||
|
// clang-format on
|
||||||
|
|
||||||
|
void render_status_main(void) {
|
||||||
|
/* Show Keyboard Layout */
|
||||||
|
render_default_layer_state();
|
||||||
|
render_keylock_status(host_keyboard_leds());
|
||||||
|
render_bootmagic_status();
|
||||||
|
render_user_status();
|
||||||
|
|
||||||
|
render_keylogger_status();
|
||||||
|
}
|
||||||
|
|
||||||
|
void render_status_secondary(void) {
|
||||||
|
/* Show Keyboard Layout */
|
||||||
|
render_logo();
|
||||||
|
render_default_layer_state();
|
||||||
|
render_layer_state();
|
||||||
|
render_mod_status(get_mods() | get_oneshot_mods());
|
||||||
|
|
||||||
|
render_keylogger_status();
|
||||||
|
}
|
||||||
|
|
||||||
|
void oled_task_user(void) {
|
||||||
|
if (timer_elapsed32(oled_timer) > 30000) {
|
||||||
|
oled_off();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
# ifndef SPLIT_KEYBOARD
|
||||||
|
else {
|
||||||
|
oled_on();
|
||||||
|
}
|
||||||
|
# endif
|
||||||
|
|
||||||
|
update_log();
|
||||||
|
if (is_master) {
|
||||||
|
render_status_main(); // Renders the current keyboard state (layer, lock, caps, scroll, etc)
|
||||||
|
} else {
|
||||||
|
# ifdef SPLIT_TRANSPORT_MIRROR
|
||||||
|
render_status_secondary();
|
||||||
|
# else
|
||||||
|
render_kyria_logo();
|
||||||
|
# endif
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef ENCODER_ENABLE
|
||||||
|
void encoder_update_user(uint8_t index, bool clockwise) {
|
||||||
|
if (index == 0) {
|
||||||
|
// Volume control
|
||||||
|
if (clockwise) {
|
||||||
|
tap_code(KC_VOLU);
|
||||||
|
} else {
|
||||||
|
tap_code(KC_VOLD);
|
||||||
|
}
|
||||||
|
} else if (index == 1) {
|
||||||
|
// Page up/Page down
|
||||||
|
if (clockwise) {
|
||||||
|
tap_code(KC_PGDN);
|
||||||
|
} else {
|
||||||
|
tap_code(KC_PGUP);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
22
keyboards/kyria/keymaps/drashna/rules.mk
Normal file
22
keyboards/kyria/keymaps/drashna/rules.mk
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
OLED_DRIVER_ENABLE = yes # Enables the use of OLED displays
|
||||||
|
ENCODER_ENABLE = yes # ENables the use of one or more encoders
|
||||||
|
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
|
||||||
|
RGBLIGHT_STARTUP_ANIMATION = yes
|
||||||
|
|
||||||
|
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
|
||||||
|
MOUSEKEY_ENABLE = no # Mouse keys
|
||||||
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
|
CONSOLE_ENABLE = no # Console for debug
|
||||||
|
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||||
|
NKRO_ENABLE = no # USB Nkey Rollover
|
||||||
|
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default
|
||||||
|
MIDI_ENABLE = no # MIDI support
|
||||||
|
UNICODE_ENABLE = yes # Unicode
|
||||||
|
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||||
|
AUDIO_ENABLE = no # Audio output on port C6
|
||||||
|
FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
|
||||||
|
HD44780_ENABLE = no # Enable support for HD44780 based LCDs
|
||||||
|
|
||||||
|
BOOTLOADER = atmel-dfu
|
||||||
|
|
||||||
|
SPLIT_TRANSPORT = mirror
|
|
@ -34,14 +34,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
/* key combination for magic key command */
|
/* key combination for magic key command */
|
||||||
#undef IS_COMMAND
|
#undef IS_COMMAND
|
||||||
#define IS_COMMAND() ( \
|
#define IS_COMMAND() (get_mods() == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_LALT)))
|
||||||
get_mods() == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_LALT)) \
|
|
||||||
)
|
|
||||||
|
|
||||||
#ifdef RGBLIGHT_ENABLE
|
#ifdef RGBLIGHT_ENABLE
|
||||||
# define RGB_DI_PIN D3
|
# define RGB_DI_PIN D3
|
||||||
# define RGBLED_NUM 16 // Number of LEDs
|
# define RGBLED_NUM 16 // Number of LEDs
|
||||||
# define RGBLED_SPLIT { 8, 8 }
|
# define RGBLED_SPLIT \
|
||||||
|
{ 8, 8 }
|
||||||
|
|
||||||
# define RGBLIGHT_HUE_STEP 12
|
# define RGBLIGHT_HUE_STEP 12
|
||||||
# define RGBLIGHT_SAT_STEP 12
|
# define RGBLIGHT_SAT_STEP 12
|
||||||
|
|
|
@ -1,35 +1,12 @@
|
||||||
/*
|
|
||||||
This is the keymap for the keyboard
|
|
||||||
|
|
||||||
Copyright 2012 Jun Wako <wakojun@gmail.com>
|
|
||||||
Copyright 2015 Jack Humbert
|
|
||||||
Copyright 2017 Art Ortenburger
|
|
||||||
|
|
||||||
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 "drashna.h"
|
#include "drashna.h"
|
||||||
|
|
||||||
#ifdef INDICATOR_LIGHTS
|
/*
|
||||||
extern userspace_config_t userspace_config;
|
* The `LAYOUT_orthodox_base` macro is a template to allow the use of identical
|
||||||
|
* modifiers for the default layouts (eg QWERTY, Colemak, Dvorak, etc), so
|
||||||
uint8_t last_mod;
|
* that there is no need to set them up for each layout, and modify all of
|
||||||
uint8_t last_led;
|
* them if I want to change them. This helps to keep consistency and ease
|
||||||
uint8_t last_osm;
|
* of use. K## is a placeholder to pass through the individual keycodes
|
||||||
#endif
|
*/
|
||||||
|
|
||||||
// clang-format off
|
// clang-format off
|
||||||
#define LAYOUT_orthodox_base( \
|
#define LAYOUT_orthodox_base( \
|
||||||
K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \
|
K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \
|
||||||
|
@ -38,7 +15,7 @@ uint8_t last_osm;
|
||||||
) \
|
) \
|
||||||
LAYOUT_wrapper( \
|
LAYOUT_wrapper( \
|
||||||
KC_ESC, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, KC_BSPC, \
|
KC_ESC, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, KC_BSPC, \
|
||||||
KC_TAB, ALT_T(K11), K12, K13, K14, K15, OS_LALT, OS_LGUI, OS_RALT, RAISE, K16, K17, K18, K19, K1A, RALT_T(KC_QUOT), \
|
LALT_T(KC_TAB), K11, K12, K13, K14, K15, OS_LALT, OS_LGUI, OS_RALT, RAISE, K16, K17, K18, K19, K1A, RALT_T(KC_QUOT), \
|
||||||
KC_MLSF, CTL_T(K21), K22, K23, K24, K25, LOWER, KC_SPACE,KC_BSPC, KC_DEL, KC_ENT, RAISE, K26, K27, K28, K29, RCTL_T(K2A), KC_MRSF \
|
KC_MLSF, CTL_T(K21), K22, K23, K24, K25, LOWER, KC_SPACE,KC_BSPC, KC_DEL, KC_ENT, RAISE, K26, K27, K28, K29, RCTL_T(K2A), KC_MRSF \
|
||||||
)
|
)
|
||||||
#define LAYOUT_orthodox_base_wrapper(...) LAYOUT_orthodox_base(__VA_ARGS__)
|
#define LAYOUT_orthodox_base_wrapper(...) LAYOUT_orthodox_base(__VA_ARGS__)
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
# define RGBLIGHT_EFFECT_SNAKE_LENGTH 3
|
# define RGBLIGHT_EFFECT_SNAKE_LENGTH 3
|
||||||
#endif // RGBLIGHT_ENABLE
|
#endif // RGBLIGHT_ENABLE
|
||||||
|
|
||||||
|
|
||||||
#undef PRODUCT
|
#undef PRODUCT
|
||||||
#define PRODUCT DrashnaDox - Hacked ErgoDox EZ Shine
|
#define PRODUCT DrashnaDox - Hacked ErgoDox EZ Shine
|
||||||
|
|
||||||
|
@ -16,3 +15,5 @@
|
||||||
#define DEBOUNCE 30
|
#define DEBOUNCE 30
|
||||||
|
|
||||||
#define TAPPING_TERM_PER_KEY
|
#define TAPPING_TERM_PER_KEY
|
||||||
|
|
||||||
|
#define ERGODOX_LED_30
|
||||||
|
|
|
@ -1,20 +1,3 @@
|
||||||
/*
|
|
||||||
This is the keymap for the keyboard
|
|
||||||
Copyright 2012 Jun Wako <wakojun@gmail.com>
|
|
||||||
Copyright 2015 Jack Humbert
|
|
||||||
Copyright 2017 Art Ortenburger
|
|
||||||
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 "drashna.h"
|
#include "drashna.h"
|
||||||
|
|
||||||
#ifdef UNICODEMAP_ENABLE
|
#ifdef UNICODEMAP_ENABLE
|
||||||
|
@ -32,6 +15,13 @@ enum more_custom_keycodes { KC_SWAP_NUM = NEW_SAFE_RANGE };
|
||||||
// define layer change stuff for underglow indicator
|
// define layer change stuff for underglow indicator
|
||||||
bool skip_leds = false;
|
bool skip_leds = false;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The `LAYOUT_ergodox_pretty_base` macro is a template to allow the use of
|
||||||
|
* identical modifiers for the default layouts (eg QWERTY, Colemak, Dvorak,
|
||||||
|
* etc), so that there is no need to set them up for each layout, and modify
|
||||||
|
* all of them if I want to change them. This helps to keep consistency and
|
||||||
|
* ease of use. K## is a placeholder to pass through the individual keycodes
|
||||||
|
*/
|
||||||
// clang-format off
|
// clang-format off
|
||||||
#define LAYOUT_ergodox_pretty_base( \
|
#define LAYOUT_ergodox_pretty_base( \
|
||||||
K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \
|
K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \
|
||||||
|
@ -40,8 +30,8 @@ bool skip_leds = false;
|
||||||
) \
|
) \
|
||||||
LAYOUT_ergodox_pretty_wrapper( \
|
LAYOUT_ergodox_pretty_wrapper( \
|
||||||
KC_ESC, ________________NUMBER_LEFT________________, UC_FLIP, UC_TABL, ________________NUMBER_RIGHT_______________, KC_MINS, \
|
KC_ESC, ________________NUMBER_LEFT________________, UC_FLIP, UC_TABL, ________________NUMBER_RIGHT_______________, KC_MINS, \
|
||||||
KC_TAB, K01, K02, K03, K04, K05, TG(_DIABLO), TG(_DIABLO), K06, K07, K08, K09, K0A, KC_BSLS, \
|
LALT_T(KC_TAB), K01, K02, K03, K04, K05, TG(_DIABLO), TG(_DIABLO), K06, K07, K08, K09, K0A, KC_BSLS, \
|
||||||
KC_C1R3, ALT_T(K11), K12, K13, K14, K15, K16, K17, K18, K19, K1A, RALT_T(KC_QUOT), \
|
KC_C1R3, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, RALT_T(KC_QUOT), \
|
||||||
KC_MLSF, CTL_T(K21), K22, K23, K24, K25, TG(_GAMEPAD), TG(_GAMEPAD), K26, K27, K28, K29, RCTL_T(K2A), KC_MRSF, \
|
KC_MLSF, CTL_T(K21), K22, K23, K24, K25, TG(_GAMEPAD), TG(_GAMEPAD), K26, K27, K28, K29, RCTL_T(K2A), KC_MRSF, \
|
||||||
KC_GRV, OS_MEH, OS_HYPR, KC_LBRC, KC_RBRC, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, UC(0x2E2E), \
|
KC_GRV, OS_MEH, OS_HYPR, KC_LBRC, KC_RBRC, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, UC(0x2E2E), \
|
||||||
OS_LALT, OS_LGUI, OS_RGUI, CTL_T(KC_ESCAPE), \
|
OS_LALT, OS_LGUI, OS_RGUI, CTL_T(KC_ESCAPE), \
|
||||||
|
@ -402,7 +392,7 @@ void rgb_matrix_indicators_user(void) {
|
||||||
rgb_matrix_config.enable
|
rgb_matrix_config.enable
|
||||||
# endif
|
# endif
|
||||||
) {
|
) {
|
||||||
switch (biton32(layer_state)) {
|
switch (get_highest_layer(layer_state)) {
|
||||||
case _GAMEPAD:
|
case _GAMEPAD:
|
||||||
rgb_matrix_layer_helper(HSV_ORANGE, 1, rgb_matrix_config.speed, LED_FLAG_MODIFIER);
|
rgb_matrix_layer_helper(HSV_ORANGE, 1, rgb_matrix_config.speed, LED_FLAG_MODIFIER);
|
||||||
rgb_matrix_set_color(32, 0x00, 0xFF, 0x00); // Q
|
rgb_matrix_set_color(32, 0x00, 0xFF, 0x00); // Q
|
||||||
|
@ -432,7 +422,7 @@ void rgb_matrix_indicators_user(void) {
|
||||||
break;
|
break;
|
||||||
default: {
|
default: {
|
||||||
bool mods_enabled = IS_LAYER_ON(_MODS);
|
bool mods_enabled = IS_LAYER_ON(_MODS);
|
||||||
switch (biton32(default_layer_state)) {
|
switch (get_highest_layer(default_layer_state)) {
|
||||||
case _QWERTY:
|
case _QWERTY:
|
||||||
rgb_matrix_layer_helper(HSV_CYAN, mods_enabled, rgb_matrix_config.speed, LED_FLAG_MODIFIER);
|
rgb_matrix_layer_helper(HSV_CYAN, mods_enabled, rgb_matrix_config.speed, LED_FLAG_MODIFIER);
|
||||||
break;
|
break;
|
||||||
|
@ -466,7 +456,6 @@ void rgb_matrix_indicators_user(void) {
|
||||||
|
|
||||||
#endif // RGB_MATRIX_INIT
|
#endif // RGB_MATRIX_INIT
|
||||||
|
|
||||||
|
|
||||||
uint16_t get_tapping_term(uint16_t keycode) {
|
uint16_t get_tapping_term(uint16_t keycode) {
|
||||||
if (keycode >= QK_MOD_TAP && keycode <= QK_MOD_TAP_MAX) {
|
if (keycode >= QK_MOD_TAP && keycode <= QK_MOD_TAP_MAX) {
|
||||||
if (mod_config(keycode & 0xf) & MOD_MASK_ALT) {
|
if (mod_config(keycode & 0xf) & MOD_MASK_ALT) {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#include QMK_KEYBOARD_H
|
|
||||||
#include "drashna.h"
|
#include "drashna.h"
|
||||||
|
|
||||||
#define F2_MCRO LT(_GAMEPAD, KC_F2)
|
#define F2_MCRO LT(_GAMEPAD, KC_F2)
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#if defined(RGBLIGHT_ENABLE) && !defined(RGBLED_NUM)
|
#if defined(RGBLIGHT_ENABLE) && !defined(RGBLED_NUM)
|
||||||
|
# if defined(KEYBOARD_planck_light)
|
||||||
# define RGB_DI_PIN A0
|
# define RGB_DI_PIN A0
|
||||||
# define RGBLED_NUM 13 // Number of LEDs
|
# define RGBLED_NUM 13 // Number of LEDs
|
||||||
# define RGBLIGHT_ANIMATIONS
|
# endif
|
||||||
# define RGBLIGHT_HUE_STEP 12
|
# define RGBLIGHT_HUE_STEP 12
|
||||||
# define RGBLIGHT_SAT_STEP 12
|
# define RGBLIGHT_SAT_STEP 12
|
||||||
# define RGBLIGHT_VAL_STEP 12
|
# define RGBLIGHT_VAL_STEP 12
|
||||||
|
@ -23,6 +24,9 @@
|
||||||
# define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
|
# define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
|
||||||
# undef RGB_MATRIX_LED_PROCESS_LIMIT
|
# undef RGB_MATRIX_LED_PROCESS_LIMIT
|
||||||
# undef RGB_MATRIX_LED_FLUSH_LIMIT
|
# undef RGB_MATRIX_LED_FLUSH_LIMIT
|
||||||
|
# ifdef KEYBOARD_planck_rev6
|
||||||
|
# define DRIVER_LED_TOTAL RGBLED_NUM
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(KEYBOARD_lets_split_rev2)
|
#if defined(KEYBOARD_lets_split_rev2)
|
||||||
|
@ -58,6 +62,7 @@
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define ENCODER_DIRECTION_FLIP
|
||||||
/*
|
/*
|
||||||
* MIDI options
|
* MIDI options
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,20 +1,3 @@
|
||||||
/* Copyright 2015-2017 Jack Humbert
|
|
||||||
*
|
|
||||||
* 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 "drashna.h"
|
#include "drashna.h"
|
||||||
|
|
||||||
#ifdef RGBLIGHT_ENABLE
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
@ -46,6 +29,13 @@ enum planck_keycodes {
|
||||||
# define PLNK_4 ET_RAIS
|
# define PLNK_4 ET_RAIS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The `LAYOUT_ortho_4x12_base` macro is a template to allow the use of identical
|
||||||
|
* modifiers for the default layouts (eg QWERTY, Colemak, Dvorak, etc), so
|
||||||
|
* that there is no need to set them up for each layout, and modify all of
|
||||||
|
* them if I want to change them. This helps to keep consistency and ease
|
||||||
|
* of use. K## is a placeholder to pass through the individual keycodes
|
||||||
|
*/
|
||||||
// clang-format off
|
// clang-format off
|
||||||
#define LAYOUT_ortho_4x12_base( \
|
#define LAYOUT_ortho_4x12_base( \
|
||||||
K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \
|
K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \
|
||||||
|
@ -54,7 +44,7 @@ enum planck_keycodes {
|
||||||
) \
|
) \
|
||||||
LAYOUT_ortho_4x12_wrapper( \
|
LAYOUT_ortho_4x12_wrapper( \
|
||||||
KC_ESC, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, KC_DEL, \
|
KC_ESC, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, KC_DEL, \
|
||||||
KC_TAB, ALT_T(K11), K12, K13, K14, K15, K16, K17, K18, K19, K1A, RALT_T(KC_QUOT), \
|
LALT_T(KC_TAB), K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, RALT_T(KC_QUOT), \
|
||||||
KC_MLSF, CTL_T(K21), K22, K23, K24, K25, K26, K27, K28, K29, RCTL_T(K2A), KC_ENT, \
|
KC_MLSF, CTL_T(K21), K22, K23, K24, K25, K26, K27, K28, K29, RCTL_T(K2A), KC_ENT, \
|
||||||
BACKLIT, OS_LCTL, OS_LALT, OS_LGUI, PLNK_1, PLNK_2, PLNK_3, PLNK_4, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \
|
BACKLIT, OS_LCTL, OS_LALT, OS_LGUI, PLNK_1, PLNK_2, PLNK_3, PLNK_4, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \
|
||||||
)
|
)
|
||||||
|
@ -190,6 +180,31 @@ bool music_mask_user(uint16_t keycode) {
|
||||||
|
|
||||||
#ifdef RGB_MATRIX_ENABLE
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
|
|
||||||
|
# ifdef KEYBOARD_planck_rev6
|
||||||
|
// clang-format off
|
||||||
|
led_config_t g_led_config = {
|
||||||
|
{
|
||||||
|
// Key Matrix to LED Index
|
||||||
|
{ NO_LED, 6, NO_LED, NO_LED, 5, NO_LED },
|
||||||
|
{ NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
|
||||||
|
{ NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, 0 },
|
||||||
|
{ NO_LED, 7, NO_LED, NO_LED, 2, NO_LED },
|
||||||
|
{ NO_LED, 4, NO_LED, NO_LED, 3, NO_LED },
|
||||||
|
{ NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
|
||||||
|
{ NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
|
||||||
|
{ NO_LED, 1, NO_LED, NO_LED, 8, NO_LED }
|
||||||
|
}, {
|
||||||
|
// LED Index to Physical Position
|
||||||
|
{112, 39}, {148, 60}, {206, 53}, {206, 3}, {150, 3}, {74, 3}, {18, 3}, {18, 54}, {77, 60}
|
||||||
|
}, {
|
||||||
|
// LED Index to Flag
|
||||||
|
LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL,
|
||||||
|
LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// clange-format on
|
||||||
|
# endif
|
||||||
|
|
||||||
// clang-format off
|
// clang-format off
|
||||||
void suspend_power_down_keymap(void) {
|
void suspend_power_down_keymap(void) {
|
||||||
rgb_matrix_set_suspend_state(true);
|
rgb_matrix_set_suspend_state(true);
|
||||||
|
@ -219,7 +234,7 @@ void rgb_matrix_indicators_user(void) {
|
||||||
rgb_matrix_config.enable
|
rgb_matrix_config.enable
|
||||||
# endif
|
# endif
|
||||||
) {
|
) {
|
||||||
switch (biton32(layer_state)) {
|
switch (get_highest_layer(layer_state)) {
|
||||||
case _GAMEPAD:
|
case _GAMEPAD:
|
||||||
rgb_matrix_layer_helper(HSV_ORANGE, 1, rgb_matrix_config.speed, LED_FLAG_MODIFIER);
|
rgb_matrix_layer_helper(HSV_ORANGE, 1, rgb_matrix_config.speed, LED_FLAG_MODIFIER);
|
||||||
break;
|
break;
|
||||||
|
@ -237,7 +252,7 @@ void rgb_matrix_indicators_user(void) {
|
||||||
break;
|
break;
|
||||||
default: {
|
default: {
|
||||||
bool mods_enabled = IS_LAYER_ON(_MODS);
|
bool mods_enabled = IS_LAYER_ON(_MODS);
|
||||||
switch (biton32(default_layer_state)) {
|
switch (get_highest_layer(default_layer_state)) {
|
||||||
case _QWERTY:
|
case _QWERTY:
|
||||||
rgb_matrix_layer_helper(HSV_CYAN, mods_enabled, rgb_matrix_config.speed, LED_FLAG_MODIFIER);
|
rgb_matrix_layer_helper(HSV_CYAN, mods_enabled, rgb_matrix_config.speed, LED_FLAG_MODIFIER);
|
||||||
break;
|
break;
|
||||||
|
@ -268,7 +283,7 @@ void rgb_matrix_indicators_user(void) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (biton32(default_layer_state)) {
|
switch (get_highest_layer(default_layer_state)) {
|
||||||
case _QWERTY:
|
case _QWERTY:
|
||||||
rgb_matrix_set_color(is_ez ? 41 : 42, 0x00, 0xFF, 0xFF);
|
rgb_matrix_set_color(is_ez ? 41 : 42, 0x00, 0xFF, 0xFF);
|
||||||
break;
|
break;
|
||||||
|
@ -283,7 +298,9 @@ void rgb_matrix_indicators_user(void) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if ((this_mod | this_osm) & MOD_MASK_SHIFT || this_led & (1 << USB_LED_CAPS_LOCK)) {
|
if ((this_mod | this_osm) & MOD_MASK_SHIFT || this_led & (1 << USB_LED_CAPS_LOCK)) {
|
||||||
if (!layer_state_cmp(layer_state, _ADJUST)) { rgb_matrix_set_color(24, 0x00, 0xFF, 0x00); }
|
if (!layer_state_cmp(layer_state, _ADJUST)) {
|
||||||
|
rgb_matrix_set_color(24, 0x00, 0xFF, 0x00);
|
||||||
|
}
|
||||||
rgb_matrix_set_color(36, 0x00, 0xFF, 0x00);
|
rgb_matrix_set_color(36, 0x00, 0xFF, 0x00);
|
||||||
}
|
}
|
||||||
if ((this_mod | this_osm) & MOD_MASK_CTRL) {
|
if ((this_mod | this_osm) & MOD_MASK_CTRL) {
|
||||||
|
@ -320,7 +337,7 @@ void matrix_init_keymap(void) {
|
||||||
|
|
||||||
#ifdef ENCODER_ENABLE
|
#ifdef ENCODER_ENABLE
|
||||||
void encoder_update(bool clockwise) {
|
void encoder_update(bool clockwise) {
|
||||||
switch (biton32(layer_state)) {
|
switch (get_highest_layer(layer_state)) {
|
||||||
case _RAISE:
|
case _RAISE:
|
||||||
clockwise ? tap_code(KC_VOLD) : tap_code(KC_VOLU);
|
clockwise ? tap_code(KC_VOLD) : tap_code(KC_VOLU);
|
||||||
break;
|
break;
|
||||||
|
@ -363,7 +380,7 @@ void dip_update(uint8_t index, bool active) {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
keymap_config.swap_lalt_lgui = keymap_config.swap_ralt_rgui = active;
|
keymap_config.swap_lctl_lgui = keymap_config.swap_rctl_rgui = active;
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
userspace_config.nuke_switch = active;
|
userspace_config.nuke_switch = active;
|
||||||
|
@ -376,7 +393,7 @@ void dip_update(uint8_t index, bool active) {
|
||||||
layer_state_t layer_state_set_keymap(layer_state_t state) {
|
layer_state_t layer_state_set_keymap(layer_state_t state) {
|
||||||
planck_ez_left_led_off();
|
planck_ez_left_led_off();
|
||||||
planck_ez_right_led_off();
|
planck_ez_right_led_off();
|
||||||
switch (biton32(state)) {
|
switch (get_highest_layer(state)) {
|
||||||
case _LOWER:
|
case _LOWER:
|
||||||
planck_ez_left_led_on();
|
planck_ez_left_led_on();
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -1,23 +1,31 @@
|
||||||
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
|
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000)
|
||||||
MOUSEKEY_ENABLE = no # Mouse keys(+4700)
|
MOUSEKEY_ENABLE = no # Mouse keys(+4700)
|
||||||
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||||
CONSOLE_ENABLE = no # Console for debug(+400)
|
|
||||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
|
||||||
TAP_DANCE_ENABLE = no
|
TAP_DANCE_ENABLE = no
|
||||||
AUDIO_ENABLE = yes
|
AUDIO_ENABLE = yes
|
||||||
SPACE_CADET_ENABLE = no
|
SPACE_CADET_ENABLE = no
|
||||||
|
NKRO_ENABLE = yes
|
||||||
|
|
||||||
ifneq ($(strip $(KEYBOARD)), planck/rev6)
|
ifneq ($(strip $(KEYBOARD)), planck/rev6)
|
||||||
|
CONSOLE_ENABLE = no
|
||||||
|
COMMAND_ENABLE = no
|
||||||
|
ifeq ($(strip $(LAYOUT_HAS_RGB)), yes)
|
||||||
RGBLIGHT_ENABLE = yes
|
RGBLIGHT_ENABLE = yes
|
||||||
|
endif
|
||||||
INDICATOR_LIGHTS = yes
|
INDICATOR_LIGHTS = yes
|
||||||
RGBLIGHT_TWINKLE = yes
|
RGBLIGHT_TWINKLE = yes
|
||||||
RGBLIGHT_STARTUP_ANIMATION = yes
|
RGBLIGHT_STARTUP_ANIMATION = yes
|
||||||
|
else
|
||||||
|
CONSOLE_ENABLE = yes
|
||||||
|
COMMAND_ENABLE = yes
|
||||||
|
RGBLIGHT_ENABLE = no
|
||||||
|
RGB_MATRIX_ENABLE = WS2812
|
||||||
endif
|
endif
|
||||||
ifeq ($(strip $(KEYBOARD)), planck/light)
|
ifeq ($(strip $(KEYBOARD)), planck/light)
|
||||||
RGB_MATRIX_ENABLE = yes
|
RGB_MATRIX_ENABLE = yes
|
||||||
RGBLIGHT_ENABLE = no
|
RGBLIGHT_ENABLE = no
|
||||||
RGBLIGHT_STARTUP_ANIMATION = no
|
RGBLIGHT_STARTUP_ANIMATION = no
|
||||||
HAPTIC_ENABLE += SOLENOID
|
# HAPTIC_ENABLE += SOLENOID
|
||||||
endif
|
endif
|
||||||
ifeq ($(strip $(KEYBOARD)), planck/ez)
|
ifeq ($(strip $(KEYBOARD)), planck/ez)
|
||||||
RGBLIGHT_ENABLE = no
|
RGBLIGHT_ENABLE = no
|
||||||
|
@ -27,10 +35,6 @@ ifeq ($(strip $(KEYBOARD)), planck/ez)
|
||||||
INDICATOR_LIGHTS = yes
|
INDICATOR_LIGHTS = yes
|
||||||
RGBLIGHT_TWINKLE = yes
|
RGBLIGHT_TWINKLE = yes
|
||||||
RGBLIGHT_STARTUP_ANIMATION = yes
|
RGBLIGHT_STARTUP_ANIMATION = yes
|
||||||
endif
|
CONSOLE_ENABLE = yes
|
||||||
|
COMMAND_ENABLE = yes
|
||||||
ifeq ($(strip $(PROTOCOL)), VUSB)
|
|
||||||
NKRO_ENABLE = no
|
|
||||||
else
|
|
||||||
NKRO_ENABLE = yes
|
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -1,24 +1,12 @@
|
||||||
/* Copyright 2015-2017 Jack Humbert
|
|
||||||
* Modified by KeyPCB for the Fractal keyboard
|
|
||||||
* Backlight isn't on the Fractal, so I've removed the keycode from the keymaps
|
|
||||||
*
|
|
||||||
* 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 "drashna.h"
|
#include "drashna.h"
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The `LAYOUT_ortho_5x12_base` macro is a template to allow the use of identical
|
||||||
|
* modifiers for the default layouts (eg QWERTY, Colemak, Dvorak, etc), so
|
||||||
|
* that there is no need to set them up for each layout, and modify all of
|
||||||
|
* them if I want to change them. This helps to keep consistency and ease
|
||||||
|
* of use. K## is a placeholder to pass through the individual keycodes
|
||||||
|
*/
|
||||||
// clang-format off
|
// clang-format off
|
||||||
#define LAYOUT_ortho_5x12_base( \
|
#define LAYOUT_ortho_5x12_base( \
|
||||||
K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \
|
K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \
|
||||||
|
@ -27,9 +15,9 @@
|
||||||
K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A \
|
K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A \
|
||||||
) \
|
) \
|
||||||
LAYOUT_ortho_5x12_wrapper( \
|
LAYOUT_ortho_5x12_wrapper( \
|
||||||
KC_GRV, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, KC_BSPC, \
|
KC_ESC, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, KC_BSPC, \
|
||||||
KC_TAB, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, KC_BSPC, \
|
LALT_T(KC_TAB), K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, KC_BSPC, \
|
||||||
KC_ESC, ALT_T(K21), K22, K23, K24, K25, K26, K27, K28, K29, K2A, RALT_T(KC_QUOT), \
|
KC_C1R3, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, RALT_T(KC_QUOT), \
|
||||||
KC_MLSF, CTL_T(K31), K32, K33, K34, K35, K36, K37, K38, K39, RCTL_T(K3A), KC_ENT, \
|
KC_MLSF, CTL_T(K31), K32, K33, K34, K35, K36, K37, K38, K39, RCTL_T(K3A), KC_ENT, \
|
||||||
KC_NO, OS_LCTL, OS_LALT, OS_LGUI, SP_LWER, BK_LWER, DL_RAIS, ET_RAIS, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \
|
KC_NO, OS_LCTL, OS_LALT, OS_LGUI, SP_LWER, BK_LWER, DL_RAIS, ET_RAIS, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \
|
||||||
)
|
)
|
||||||
|
|
|
@ -5,6 +5,8 @@ CONSOLE_ENABLE = no # Console for debug(+400)
|
||||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||||
TAP_DANCE_ENABLE = no
|
TAP_DANCE_ENABLE = no
|
||||||
AUDIO_ENABLE = yes
|
AUDIO_ENABLE = yes
|
||||||
|
NKRO_ENABLE = yes
|
||||||
|
|
||||||
ifeq ($(strip $(KEYBOARD)), fractal)
|
ifeq ($(strip $(KEYBOARD)), fractal)
|
||||||
RGB_MATRIX_ENABLE = no
|
RGB_MATRIX_ENABLE = no
|
||||||
AUDIO_ENABLE = yes
|
AUDIO_ENABLE = yes
|
||||||
|
@ -12,9 +14,3 @@ ifeq ($(strip $(KEYBOARD)), fractal)
|
||||||
RGBLIGHT_TWINKLE = yes
|
RGBLIGHT_TWINKLE = yes
|
||||||
BOOTLOADER = qmk-dfu
|
BOOTLOADER = qmk-dfu
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(PROTOCOL)), VUSB)
|
|
||||||
NKRO_ENABLE = no
|
|
||||||
else
|
|
||||||
NKRO_ENABLE = yes
|
|
||||||
endif
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
#define USB_POLLING_INTERVAL_MS 1
|
#define USB_POLLING_INTERVAL_MS 1
|
||||||
|
|
||||||
#ifdef AUDIO_ENABLE
|
#ifdef AUDIO_ENABLE
|
||||||
# if __GNUC__ > 7
|
# if __GNUC__ > 5
|
||||||
# if __has_include("drashna_song_list.h")
|
# if __has_include("drashna_song_list.h")
|
||||||
# include "drashna_song_list.h"
|
# include "drashna_song_list.h"
|
||||||
# endif // if file exists
|
# endif // if file exists
|
||||||
|
@ -29,11 +29,15 @@
|
||||||
#endif // !AUDIO_ENABLE
|
#endif // !AUDIO_ENABLE
|
||||||
|
|
||||||
#ifdef RGBLIGHT_ENABLE
|
#ifdef RGBLIGHT_ENABLE
|
||||||
# define RGBLIGHT_SLEEP
|
|
||||||
# undef RGBLIGHT_ANIMATIONS
|
# undef RGBLIGHT_ANIMATIONS
|
||||||
|
# if defined(__AVR__) && !defined(__AVR_AT90USB1286__)
|
||||||
|
# define RGBLIGHT_SLEEP
|
||||||
# define RGBLIGHT_EFFECT_BREATHING
|
# define RGBLIGHT_EFFECT_BREATHING
|
||||||
# define RGBLIGHT_EFFECT_SNAKE
|
# define RGBLIGHT_EFFECT_SNAKE
|
||||||
# define RGBLIGHT_EFFECT_KNIGHT
|
# define RGBLIGHT_EFFECT_KNIGHT
|
||||||
|
# else
|
||||||
|
# define RGBLIGHT_ANIMATIONS
|
||||||
|
# endif
|
||||||
#endif // RGBLIGHT_ENABLE
|
#endif // RGBLIGHT_ENABLE
|
||||||
|
|
||||||
#ifdef RGB_MATRIX_ENABLE
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
|
|
|
@ -25,8 +25,6 @@ userspace_config_t userspace_config;
|
||||||
# define DRASHNA_UNICODE_MODE 2
|
# define DRASHNA_UNICODE_MODE 2
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
bool mod_key_press_timer(uint16_t code, uint16_t mod_code, bool pressed) {
|
bool mod_key_press_timer(uint16_t code, uint16_t mod_code, bool pressed) {
|
||||||
static uint16_t this_timer;
|
static uint16_t this_timer;
|
||||||
if (pressed) {
|
if (pressed) {
|
||||||
|
@ -73,19 +71,22 @@ void bootmagic_lite(void) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__attribute__((weak)) void keyboard_pre_init_keymap(void) {}
|
||||||
|
|
||||||
|
void keyboard_pre_init_user(void) {
|
||||||
|
userspace_config.raw = eeconfig_read_user();
|
||||||
|
keyboard_pre_init_keymap();
|
||||||
|
}
|
||||||
// Add reconfigurable functions here, for keymap customization
|
// Add reconfigurable functions here, for keymap customization
|
||||||
// This allows for a global, userspace functions, and continued
|
// This allows for a global, userspace functions, and continued
|
||||||
// customization of the keymap. Use _keymap instead of _user
|
// customization of the keymap. Use _keymap instead of _user
|
||||||
// functions in the keymaps
|
// functions in the keymaps
|
||||||
__attribute__((weak))
|
__attribute__((weak)) void matrix_init_keymap(void) {}
|
||||||
void matrix_init_keymap(void) {}
|
|
||||||
|
|
||||||
// Call user matrix init, set default RGB colors and then
|
// Call user matrix init, set default RGB colors and then
|
||||||
// call the keymap's init function
|
// call the keymap's init function
|
||||||
void matrix_init_user(void) {
|
void matrix_init_user(void) {
|
||||||
userspace_config.raw = eeconfig_read_user();
|
#if defined(BOOTLOADER_CATERINA) && defined(__AVR__)
|
||||||
|
|
||||||
#ifdef BOOTLOADER_CATERINA
|
|
||||||
DDRD &= ~(1 << 5);
|
DDRD &= ~(1 << 5);
|
||||||
PORTD &= ~(1 << 5);
|
PORTD &= ~(1 << 5);
|
||||||
|
|
||||||
|
@ -100,8 +101,7 @@ void matrix_init_user(void) {
|
||||||
matrix_init_keymap();
|
matrix_init_keymap();
|
||||||
}
|
}
|
||||||
|
|
||||||
__attribute__((weak))
|
__attribute__((weak)) void keyboard_post_init_keymap(void) {}
|
||||||
void keyboard_post_init_keymap(void) {}
|
|
||||||
|
|
||||||
void keyboard_post_init_user(void) {
|
void keyboard_post_init_user(void) {
|
||||||
#if defined(RGBLIGHT_ENABLE) || defined(RGB_MATRIX_ENABLE)
|
#if defined(RGBLIGHT_ENABLE) || defined(RGB_MATRIX_ENABLE)
|
||||||
|
@ -110,8 +110,7 @@ void keyboard_post_init_user(void) {
|
||||||
keyboard_post_init_keymap();
|
keyboard_post_init_keymap();
|
||||||
}
|
}
|
||||||
|
|
||||||
__attribute__((weak))
|
__attribute__((weak)) void shutdown_keymap(void) {}
|
||||||
void shutdown_keymap(void) {}
|
|
||||||
|
|
||||||
void rgb_matrix_update_pwm_buffers(void);
|
void rgb_matrix_update_pwm_buffers(void);
|
||||||
|
|
||||||
|
@ -129,22 +128,15 @@ void shutdown_user(void) {
|
||||||
shutdown_keymap();
|
shutdown_keymap();
|
||||||
}
|
}
|
||||||
|
|
||||||
__attribute__((weak))
|
__attribute__((weak)) void suspend_power_down_keymap(void) {}
|
||||||
void suspend_power_down_keymap(void) {}
|
|
||||||
|
|
||||||
void suspend_power_down_user(void) {
|
void suspend_power_down_user(void) { suspend_power_down_keymap(); }
|
||||||
suspend_power_down_keymap();
|
|
||||||
}
|
|
||||||
|
|
||||||
__attribute__((weak))
|
__attribute__((weak)) void suspend_wakeup_init_keymap(void) {}
|
||||||
void suspend_wakeup_init_keymap(void) {}
|
|
||||||
|
|
||||||
void suspend_wakeup_init_user(void) {
|
void suspend_wakeup_init_user(void) { suspend_wakeup_init_keymap(); }
|
||||||
suspend_wakeup_init_keymap();
|
|
||||||
}
|
|
||||||
|
|
||||||
__attribute__((weak))
|
__attribute__((weak)) void matrix_scan_keymap(void) {}
|
||||||
void matrix_scan_keymap(void) {}
|
|
||||||
|
|
||||||
// No global matrix scan code, so just run keymap's matrix
|
// No global matrix scan code, so just run keymap's matrix
|
||||||
// scan function
|
// scan function
|
||||||
|
@ -166,8 +158,7 @@ void matrix_scan_user(void) {
|
||||||
matrix_scan_keymap();
|
matrix_scan_keymap();
|
||||||
}
|
}
|
||||||
|
|
||||||
__attribute__((weak))
|
__attribute__((weak)) layer_state_t layer_state_set_keymap(layer_state_t state) { return state; }
|
||||||
layer_state_t layer_state_set_keymap(layer_state_t state) { return state; }
|
|
||||||
|
|
||||||
// on layer change, no matter where the change was initiated
|
// on layer change, no matter where the change was initiated
|
||||||
// Then runs keymap's layer change check
|
// Then runs keymap's layer change check
|
||||||
|
@ -179,8 +170,7 @@ layer_state_t layer_state_set_user(layer_state_t state) {
|
||||||
return layer_state_set_keymap(state);
|
return layer_state_set_keymap(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
__attribute__((weak))
|
__attribute__((weak)) layer_state_t default_layer_state_set_keymap(layer_state_t state) { return state; }
|
||||||
layer_state_t default_layer_state_set_keymap(layer_state_t state) { return state; }
|
|
||||||
|
|
||||||
// Runs state check and changes underglow color and animation
|
// Runs state check and changes underglow color and animation
|
||||||
layer_state_t default_layer_state_set_user(layer_state_t state) {
|
layer_state_t default_layer_state_set_user(layer_state_t state) {
|
||||||
|
@ -193,18 +183,14 @@ layer_state_t default_layer_state_set_user(layer_state_t state) {
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
|
|
||||||
__attribute__((weak))
|
__attribute__((weak)) void led_set_keymap(uint8_t usb_led) {}
|
||||||
void led_set_keymap(uint8_t usb_led) {}
|
|
||||||
|
|
||||||
// Any custom LED code goes here.
|
// Any custom LED code goes here.
|
||||||
// So far, I only have keyboard specific code,
|
// So far, I only have keyboard specific code,
|
||||||
// So nothing goes here.
|
// So nothing goes here.
|
||||||
void led_set_user(uint8_t usb_led) {
|
void led_set_user(uint8_t usb_led) { led_set_keymap(usb_led); }
|
||||||
led_set_keymap(usb_led);
|
|
||||||
}
|
|
||||||
|
|
||||||
__attribute__((weak))
|
__attribute__((weak)) void eeconfig_init_keymap(void) {}
|
||||||
void eeconfig_init_keymap(void) {}
|
|
||||||
|
|
||||||
void eeconfig_init_user(void) {
|
void eeconfig_init_user(void) {
|
||||||
userspace_config.raw = 0;
|
userspace_config.raw = 0;
|
||||||
|
|
|
@ -16,7 +16,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "quantum.h"
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
#include "eeprom.h"
|
#include "eeprom.h"
|
||||||
#include "wrappers.h"
|
#include "wrappers.h"
|
||||||
|
@ -62,6 +63,7 @@ void led_set_keymap(uint8_t usb_led);
|
||||||
void eeconfig_init_keymap(void);
|
void eeconfig_init_keymap(void);
|
||||||
bool hasAllBitsInMask(uint8_t value, uint8_t mask);
|
bool hasAllBitsInMask(uint8_t value, uint8_t mask);
|
||||||
|
|
||||||
|
// clang-format off
|
||||||
typedef union {
|
typedef union {
|
||||||
uint32_t raw;
|
uint32_t raw;
|
||||||
struct {
|
struct {
|
||||||
|
@ -73,6 +75,7 @@ typedef union {
|
||||||
bool rgb_matrix_idle_anim :1;
|
bool rgb_matrix_idle_anim :1;
|
||||||
};
|
};
|
||||||
} userspace_config_t;
|
} userspace_config_t;
|
||||||
|
// clang-format on
|
||||||
|
|
||||||
extern userspace_config_t userspace_config;
|
extern userspace_config_t userspace_config;
|
||||||
|
|
||||||
|
|
241
users/drashna/font_gmk_bad.h
Normal file
241
users/drashna/font_gmk_bad.h
Normal file
|
@ -0,0 +1,241 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#ifdef __AVR__
|
||||||
|
# include <avr/io.h>
|
||||||
|
# include <avr/pgmspace.h>
|
||||||
|
#elif defined(ESP8266)
|
||||||
|
# include <pgmspace.h>
|
||||||
|
#else
|
||||||
|
# define PROGMEM
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// Corne 8x6 font with QMK Firmware Logo
|
||||||
|
// Online editor: https://helixfonteditor.netlify.com/
|
||||||
|
|
||||||
|
// clang-format off
|
||||||
|
const unsigned char font[] PROGMEM = {
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x3E, 0x5B, 0x4F, 0x5B, 0x3E, 0x00,
|
||||||
|
0x3E, 0x6B, 0x4F, 0x6B, 0x3E, 0x00,
|
||||||
|
0x1C, 0x3E, 0x7C, 0x3E, 0x1C, 0x00,
|
||||||
|
0x18, 0x3C, 0x7E, 0x3C, 0x18, 0x00,
|
||||||
|
0x1C, 0x57, 0x7D, 0x57, 0x1C, 0x00,
|
||||||
|
0x1C, 0x5E, 0x7F, 0x5E, 0x1C, 0x00,
|
||||||
|
0x00, 0x18, 0x3C, 0x18, 0x00, 0x00,
|
||||||
|
0xFF, 0xE7, 0xC3, 0xE7, 0xFF, 0x00,
|
||||||
|
0x00, 0x18, 0x24, 0x18, 0x00, 0x00,
|
||||||
|
0xFF, 0xE7, 0xDB, 0xE7, 0xFF, 0x00,
|
||||||
|
0x30, 0x48, 0x3A, 0x06, 0x0E, 0x00,
|
||||||
|
0x26, 0x29, 0x79, 0x29, 0x26, 0x00,
|
||||||
|
0x40, 0x7F, 0x05, 0x05, 0x07, 0x00,
|
||||||
|
0x40, 0x7F, 0x05, 0x25, 0x3F, 0x00,
|
||||||
|
0x5A, 0x3C, 0xE7, 0x3C, 0x5A, 0x00,
|
||||||
|
0x7F, 0x3E, 0x1C, 0x1C, 0x08, 0x00,
|
||||||
|
0x08, 0x1C, 0x1C, 0x3E, 0x7F, 0x00,
|
||||||
|
0x14, 0x22, 0x7F, 0x22, 0x14, 0x00,
|
||||||
|
0x5F, 0x5F, 0x00, 0x5F, 0x5F, 0x00,
|
||||||
|
0x06, 0x09, 0x7F, 0x01, 0x7F, 0x00,
|
||||||
|
0x00, 0x66, 0x89, 0x95, 0x6A, 0x00,
|
||||||
|
0x60, 0x60, 0x60, 0x60, 0x60, 0x00,
|
||||||
|
0x94, 0xA2, 0xFF, 0xA2, 0x94, 0x00,
|
||||||
|
0x08, 0x04, 0x7E, 0x04, 0x08, 0x00,
|
||||||
|
0x10, 0x20, 0x7E, 0x20, 0x10, 0x00,
|
||||||
|
0x08, 0x08, 0x2A, 0x1C, 0x08, 0x00,
|
||||||
|
0x08, 0x1C, 0x2A, 0x08, 0x08, 0x00,
|
||||||
|
0x1E, 0x10, 0x10, 0x10, 0x10, 0x00,
|
||||||
|
0x0C, 0x1E, 0x0C, 0x1E, 0x0C, 0x00,
|
||||||
|
0x30, 0x38, 0x3E, 0x38, 0x30, 0x00,
|
||||||
|
0x06, 0x0E, 0x3E, 0x0E, 0x06, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x5F, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x07, 0x00, 0x07, 0x00, 0x00,
|
||||||
|
0x14, 0x7F, 0x14, 0x7F, 0x14, 0x00,
|
||||||
|
0x24, 0x2A, 0x7F, 0x2A, 0x12, 0x00,
|
||||||
|
0x23, 0x13, 0x08, 0x64, 0x62, 0x00,
|
||||||
|
0x36, 0x49, 0x56, 0x20, 0x50, 0x00,
|
||||||
|
0x00, 0x08, 0x07, 0x03, 0x00, 0x00,
|
||||||
|
0x00, 0x1C, 0x22, 0x41, 0x00, 0x00,
|
||||||
|
0x00, 0x41, 0x22, 0x1C, 0x00, 0x00,
|
||||||
|
0x2A, 0x1C, 0x7F, 0x1C, 0x2A, 0x00,
|
||||||
|
0x08, 0x08, 0x3E, 0x08, 0x08, 0x00,
|
||||||
|
0x00, 0x80, 0x70, 0x30, 0x00, 0x00,
|
||||||
|
0x08, 0x08, 0x08, 0x08, 0x08, 0x00,
|
||||||
|
0x00, 0x00, 0x60, 0x60, 0x00, 0x00,
|
||||||
|
0x20, 0x10, 0x08, 0x04, 0x02, 0x00,
|
||||||
|
0x3E, 0x51, 0x49, 0x45, 0x3E, 0x00,
|
||||||
|
0x00, 0x42, 0x7F, 0x40, 0x00, 0x00,
|
||||||
|
0x72, 0x49, 0x49, 0x49, 0x46, 0x00,
|
||||||
|
0x21, 0x41, 0x49, 0x4D, 0x33, 0x00,
|
||||||
|
0x18, 0x14, 0x12, 0x7F, 0x10, 0x00,
|
||||||
|
0x27, 0x45, 0x45, 0x45, 0x39, 0x00,
|
||||||
|
0x3C, 0x4A, 0x49, 0x49, 0x31, 0x00,
|
||||||
|
0x41, 0x21, 0x11, 0x09, 0x07, 0x00,
|
||||||
|
0x36, 0x49, 0x49, 0x49, 0x36, 0x00,
|
||||||
|
0x46, 0x49, 0x49, 0x29, 0x1E, 0x00,
|
||||||
|
0x00, 0x00, 0x14, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x40, 0x34, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x08, 0x14, 0x22, 0x41, 0x00,
|
||||||
|
0x14, 0x14, 0x14, 0x14, 0x14, 0x00,
|
||||||
|
0x00, 0x41, 0x22, 0x14, 0x08, 0x00,
|
||||||
|
0x02, 0x01, 0x59, 0x09, 0x06, 0x00,
|
||||||
|
0x3E, 0x41, 0x5D, 0x59, 0x4E, 0x00,
|
||||||
|
0x7C, 0x12, 0x11, 0x12, 0x7C, 0x00,
|
||||||
|
0x7F, 0x49, 0x49, 0x49, 0x36, 0x00,
|
||||||
|
0x3E, 0x41, 0x41, 0x41, 0x22, 0x00,
|
||||||
|
0x7F, 0x41, 0x41, 0x41, 0x3E, 0x00,
|
||||||
|
0x7F, 0x49, 0x49, 0x49, 0x41, 0x00,
|
||||||
|
0x7F, 0x09, 0x09, 0x09, 0x01, 0x00,
|
||||||
|
0x3E, 0x41, 0x41, 0x51, 0x73, 0x00,
|
||||||
|
0x7F, 0x08, 0x08, 0x08, 0x7F, 0x00,
|
||||||
|
0x00, 0x41, 0x7F, 0x41, 0x00, 0x00,
|
||||||
|
0x20, 0x40, 0x41, 0x3F, 0x01, 0x00,
|
||||||
|
0x7F, 0x08, 0x14, 0x22, 0x41, 0x00,
|
||||||
|
0x7F, 0x40, 0x40, 0x40, 0x40, 0x00,
|
||||||
|
0x7F, 0x02, 0x1C, 0x02, 0x7F, 0x00,
|
||||||
|
0x7F, 0x04, 0x08, 0x10, 0x7F, 0x00,
|
||||||
|
0x3E, 0x41, 0x41, 0x41, 0x3E, 0x00,
|
||||||
|
0x7F, 0x09, 0x09, 0x09, 0x06, 0x00,
|
||||||
|
0x3E, 0x41, 0x51, 0x21, 0x5E, 0x00,
|
||||||
|
0x7F, 0x09, 0x19, 0x29, 0x46, 0x00,
|
||||||
|
0x26, 0x49, 0x49, 0x49, 0x32, 0x00,
|
||||||
|
0x03, 0x01, 0x7F, 0x01, 0x03, 0x00,
|
||||||
|
0x3F, 0x40, 0x40, 0x40, 0x3F, 0x00,
|
||||||
|
0x1F, 0x20, 0x40, 0x20, 0x1F, 0x00,
|
||||||
|
0x3F, 0x40, 0x38, 0x40, 0x3F, 0x00,
|
||||||
|
0x63, 0x14, 0x08, 0x14, 0x63, 0x00,
|
||||||
|
0x03, 0x04, 0x78, 0x04, 0x03, 0x00,
|
||||||
|
0x61, 0x59, 0x49, 0x4D, 0x43, 0x00,
|
||||||
|
0x00, 0x7F, 0x41, 0x41, 0x41, 0x00,
|
||||||
|
0x02, 0x04, 0x08, 0x10, 0x20, 0x00,
|
||||||
|
0x00, 0x41, 0x41, 0x41, 0x7F, 0x00,
|
||||||
|
0x04, 0x02, 0x01, 0x02, 0x04, 0x00,
|
||||||
|
0x40, 0x40, 0x40, 0x40, 0x40, 0x00,
|
||||||
|
0x00, 0x03, 0x07, 0x08, 0x00, 0x00,
|
||||||
|
0x20, 0x54, 0x54, 0x78, 0x40, 0x00,
|
||||||
|
0x7F, 0x28, 0x44, 0x44, 0x38, 0x00,
|
||||||
|
0x38, 0x44, 0x44, 0x44, 0x28, 0x00,
|
||||||
|
0x38, 0x44, 0x44, 0x28, 0x7F, 0x00,
|
||||||
|
0x38, 0x54, 0x54, 0x54, 0x18, 0x00,
|
||||||
|
0x00, 0x08, 0x7E, 0x09, 0x02, 0x00,
|
||||||
|
0x18, 0x24, 0x24, 0x1C, 0x78, 0x00,
|
||||||
|
0x7F, 0x08, 0x04, 0x04, 0x78, 0x00,
|
||||||
|
0x00, 0x44, 0x7D, 0x40, 0x00, 0x00,
|
||||||
|
0x20, 0x40, 0x40, 0x3D, 0x00, 0x00,
|
||||||
|
0x7F, 0x10, 0x28, 0x44, 0x00, 0x00,
|
||||||
|
0x00, 0x41, 0x7F, 0x40, 0x00, 0x00,
|
||||||
|
0x7C, 0x04, 0x78, 0x04, 0x78, 0x00,
|
||||||
|
0x7C, 0x08, 0x04, 0x04, 0x78, 0x00,
|
||||||
|
0x38, 0x44, 0x44, 0x44, 0x38, 0x00,
|
||||||
|
0x7C, 0x18, 0x24, 0x24, 0x18, 0x00,
|
||||||
|
0x18, 0x24, 0x24, 0x18, 0x7C, 0x00,
|
||||||
|
0x7C, 0x08, 0x04, 0x04, 0x08, 0x00,
|
||||||
|
0x48, 0x54, 0x54, 0x54, 0x24, 0x00,
|
||||||
|
0x04, 0x04, 0x3F, 0x44, 0x24, 0x00,
|
||||||
|
0x3C, 0x40, 0x40, 0x20, 0x7C, 0x00,
|
||||||
|
0x1C, 0x20, 0x40, 0x20, 0x1C, 0x00,
|
||||||
|
0x3C, 0x40, 0x30, 0x40, 0x3C, 0x00,
|
||||||
|
0x44, 0x28, 0x10, 0x28, 0x44, 0x00,
|
||||||
|
0x4C, 0x90, 0x10, 0x90, 0x7C, 0x00,
|
||||||
|
0x44, 0x64, 0x54, 0x4C, 0x44, 0x00,
|
||||||
|
0x00, 0x08, 0x36, 0x41, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x77, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x41, 0x36, 0x08, 0x00, 0x00,
|
||||||
|
0x02, 0x01, 0x02, 0x04, 0x02, 0x00,
|
||||||
|
0x3C, 0x26, 0x23, 0x26, 0x3C, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x80, 0xC0, 0xE0, 0xF0, 0xF0, 0x70,
|
||||||
|
0x38, 0x38, 0x38, 0x78, 0x70, 0xF0,
|
||||||
|
0xE0, 0xE0, 0x80, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x80, 0xF0, 0xF8,
|
||||||
|
0xF8, 0xF8, 0xF8, 0x00, 0x00, 0x00,
|
||||||
|
0x80, 0xE0, 0xF8, 0xF8, 0xF8, 0xF8,
|
||||||
|
0xF0, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x80, 0xF8, 0xF8, 0xF8, 0x38, 0x00,
|
||||||
|
0x80, 0xE0, 0xF0, 0xF8, 0x78, 0x38,
|
||||||
|
0x08, 0x08, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x80, 0xF8, 0xF8, 0xF8, 0x38, 0x38,
|
||||||
|
0x38, 0xF8, 0xF0, 0xF0, 0xE0, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x80, 0xFC, 0xFC,
|
||||||
|
0xFC, 0x1C, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0xE0, 0xF0, 0xF0, 0xF0, 0xE0, 0xEC,
|
||||||
|
0xEE, 0xF7, 0xF3, 0x70, 0x20, 0x00,
|
||||||
|
0x7C, 0x7C, 0x7C, 0x7E, 0x00, 0x7E,
|
||||||
|
0x7E, 0x7E, 0x7F, 0x7F, 0x7F, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x3C,
|
||||||
|
0xFF, 0xFF, 0xFF, 0xC1, 0x80, 0x00,
|
||||||
|
0x00, 0x38, 0x38, 0xB8, 0xB8, 0xF9,
|
||||||
|
0xF9, 0xF8, 0x38, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0xC0, 0xF8, 0xFF, 0xFF, 0x1F,
|
||||||
|
0x01, 0x3F, 0xFF, 0xFF, 0xF0, 0xFE,
|
||||||
|
0x7F, 0x0F, 0x03, 0xFF, 0xFF, 0xFF,
|
||||||
|
0xFF, 0x00, 0x00, 0x00, 0x00, 0x80,
|
||||||
|
0xFF, 0xFF, 0xFF, 0x3F, 0x1E, 0x7F,
|
||||||
|
0xFF, 0xFF, 0xF3, 0xC1, 0x80, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
|
||||||
|
0xFF, 0xFF, 0xFF, 0x3F, 0x1C, 0x1C,
|
||||||
|
0x9C, 0xFF, 0xFF, 0xF3, 0xE1, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0xF0, 0xFC, 0xFE,
|
||||||
|
0xFF, 0x0F, 0x07, 0x07, 0x8E, 0xFF,
|
||||||
|
0xFF, 0xFF, 0x3F, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0xF0, 0xFC, 0xFE, 0xFF, 0x8F,
|
||||||
|
0x07, 0x07, 0x8E, 0xFF, 0xFF, 0xFF,
|
||||||
|
0x3F, 0x00, 0x00, 0x00, 0x00, 0x80,
|
||||||
|
0xC0, 0x80, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x0F, 0x1F, 0x3F, 0x7F, 0x7F, 0x7F,
|
||||||
|
0x7F, 0x7F, 0x3F, 0x1E, 0x0C, 0x00,
|
||||||
|
0x1F, 0x1F, 0x1F, 0x3F, 0x00, 0x3F,
|
||||||
|
0x3F, 0x3F, 0x7F, 0x7F, 0x7F, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x01, 0x03, 0x03, 0x03, 0x07,
|
||||||
|
0x07, 0x07, 0x07, 0x03, 0x03, 0x03,
|
||||||
|
0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x06, 0x07, 0x07, 0x07, 0x01, 0x00,
|
||||||
|
0x00, 0x00, 0x07, 0x07, 0x07, 0x01,
|
||||||
|
0x00, 0x00, 0x00, 0x07, 0x07, 0x07,
|
||||||
|
0x07, 0x00, 0x00, 0x00, 0x00, 0x07,
|
||||||
|
0x07, 0x07, 0x07, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x03, 0x07, 0x07, 0x07, 0x06,
|
||||||
|
0x04, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x07,
|
||||||
|
0x07, 0x07, 0x07, 0x07, 0x07, 0x07,
|
||||||
|
0x07, 0x07, 0x03, 0x01, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x03, 0x07,
|
||||||
|
0x07, 0x07, 0x07, 0x03, 0x07, 0x07,
|
||||||
|
0x07, 0x07, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x03, 0x07, 0x07, 0x07,
|
||||||
|
0x07, 0x03, 0x07, 0x07, 0x07, 0x07,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x01, 0x07,
|
||||||
|
0x07, 0x07, 0x01, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
};
|
241
users/drashna/hue_manitee_font.h
Normal file
241
users/drashna/hue_manitee_font.h
Normal file
|
@ -0,0 +1,241 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#ifdef __AVR__
|
||||||
|
# include <avr/io.h>
|
||||||
|
# include <avr/pgmspace.h>
|
||||||
|
#elif defined(ESP8266)
|
||||||
|
# include <pgmspace.h>
|
||||||
|
#else
|
||||||
|
# define PROGMEM
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// Corne 8x6 font with QMK Firmware Logo
|
||||||
|
// Online editor: https://helixfonteditor.netlify.com/
|
||||||
|
|
||||||
|
// clang-format off
|
||||||
|
const unsigned char font[] PROGMEM = {
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x3E, 0x5B, 0x4F, 0x5B, 0x3E, 0x00,
|
||||||
|
0x3E, 0x6B, 0x4F, 0x6B, 0x3E, 0x00,
|
||||||
|
0x1C, 0x3E, 0x7C, 0x3E, 0x1C, 0x00,
|
||||||
|
0x18, 0x3C, 0x7E, 0x3C, 0x18, 0x00,
|
||||||
|
0x1C, 0x57, 0x7D, 0x57, 0x1C, 0x00,
|
||||||
|
0x1C, 0x5E, 0x7F, 0x5E, 0x1C, 0x00,
|
||||||
|
0x00, 0x18, 0x3C, 0x18, 0x00, 0x00,
|
||||||
|
0xFF, 0xE7, 0xC3, 0xE7, 0xFF, 0x00,
|
||||||
|
0x00, 0x18, 0x24, 0x18, 0x00, 0x00,
|
||||||
|
0xFF, 0xE7, 0xDB, 0xE7, 0xFF, 0x00,
|
||||||
|
0x30, 0x48, 0x3A, 0x06, 0x0E, 0x00,
|
||||||
|
0x26, 0x29, 0x79, 0x29, 0x26, 0x00,
|
||||||
|
0x40, 0x7F, 0x05, 0x05, 0x07, 0x00,
|
||||||
|
0x40, 0x7F, 0x05, 0x25, 0x3F, 0x00,
|
||||||
|
0x5A, 0x3C, 0xE7, 0x3C, 0x5A, 0x00,
|
||||||
|
0x7F, 0x3E, 0x1C, 0x1C, 0x08, 0x00,
|
||||||
|
0x08, 0x1C, 0x1C, 0x3E, 0x7F, 0x00,
|
||||||
|
0x14, 0x22, 0x7F, 0x22, 0x14, 0x00,
|
||||||
|
0x5F, 0x5F, 0x00, 0x5F, 0x5F, 0x00,
|
||||||
|
0x06, 0x09, 0x7F, 0x01, 0x7F, 0x00,
|
||||||
|
0x00, 0x66, 0x89, 0x95, 0x6A, 0x00,
|
||||||
|
0x60, 0x60, 0x60, 0x60, 0x60, 0x00,
|
||||||
|
0x94, 0xA2, 0xFF, 0xA2, 0x94, 0x00,
|
||||||
|
0x08, 0x04, 0x7E, 0x04, 0x08, 0x00,
|
||||||
|
0x10, 0x20, 0x7E, 0x20, 0x10, 0x00,
|
||||||
|
0x08, 0x08, 0x2A, 0x1C, 0x08, 0x00,
|
||||||
|
0x08, 0x1C, 0x2A, 0x08, 0x08, 0x00,
|
||||||
|
0x1E, 0x10, 0x10, 0x10, 0x10, 0x00,
|
||||||
|
0x0C, 0x1E, 0x0C, 0x1E, 0x0C, 0x00,
|
||||||
|
0x30, 0x38, 0x3E, 0x38, 0x30, 0x00,
|
||||||
|
0x06, 0x0E, 0x3E, 0x0E, 0x06, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x5F, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x07, 0x00, 0x07, 0x00, 0x00,
|
||||||
|
0x14, 0x7F, 0x14, 0x7F, 0x14, 0x00,
|
||||||
|
0x24, 0x2A, 0x7F, 0x2A, 0x12, 0x00,
|
||||||
|
0x23, 0x13, 0x08, 0x64, 0x62, 0x00,
|
||||||
|
0x36, 0x49, 0x56, 0x20, 0x50, 0x00,
|
||||||
|
0x00, 0x08, 0x07, 0x03, 0x00, 0x00,
|
||||||
|
0x00, 0x1C, 0x22, 0x41, 0x00, 0x00,
|
||||||
|
0x00, 0x41, 0x22, 0x1C, 0x00, 0x00,
|
||||||
|
0x2A, 0x1C, 0x7F, 0x1C, 0x2A, 0x00,
|
||||||
|
0x08, 0x08, 0x3E, 0x08, 0x08, 0x00,
|
||||||
|
0x00, 0x80, 0x70, 0x30, 0x00, 0x00,
|
||||||
|
0x08, 0x08, 0x08, 0x08, 0x08, 0x00,
|
||||||
|
0x00, 0x00, 0x60, 0x60, 0x00, 0x00,
|
||||||
|
0x20, 0x10, 0x08, 0x04, 0x02, 0x00,
|
||||||
|
0x3E, 0x51, 0x49, 0x45, 0x3E, 0x00,
|
||||||
|
0x00, 0x42, 0x7F, 0x40, 0x00, 0x00,
|
||||||
|
0x72, 0x49, 0x49, 0x49, 0x46, 0x00,
|
||||||
|
0x21, 0x41, 0x49, 0x4D, 0x33, 0x00,
|
||||||
|
0x18, 0x14, 0x12, 0x7F, 0x10, 0x00,
|
||||||
|
0x27, 0x45, 0x45, 0x45, 0x39, 0x00,
|
||||||
|
0x3C, 0x4A, 0x49, 0x49, 0x31, 0x00,
|
||||||
|
0x41, 0x21, 0x11, 0x09, 0x07, 0x00,
|
||||||
|
0x36, 0x49, 0x49, 0x49, 0x36, 0x00,
|
||||||
|
0x46, 0x49, 0x49, 0x29, 0x1E, 0x00,
|
||||||
|
0x00, 0x00, 0x14, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x40, 0x34, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x08, 0x14, 0x22, 0x41, 0x00,
|
||||||
|
0x14, 0x14, 0x14, 0x14, 0x14, 0x00,
|
||||||
|
0x00, 0x41, 0x22, 0x14, 0x08, 0x00,
|
||||||
|
0x02, 0x01, 0x59, 0x09, 0x06, 0x00,
|
||||||
|
0x3E, 0x41, 0x5D, 0x59, 0x4E, 0x00,
|
||||||
|
0x7C, 0x12, 0x11, 0x12, 0x7C, 0x00,
|
||||||
|
0x7F, 0x49, 0x49, 0x49, 0x36, 0x00,
|
||||||
|
0x3E, 0x41, 0x41, 0x41, 0x22, 0x00,
|
||||||
|
0x7F, 0x41, 0x41, 0x41, 0x3E, 0x00,
|
||||||
|
0x7F, 0x49, 0x49, 0x49, 0x41, 0x00,
|
||||||
|
0x7F, 0x09, 0x09, 0x09, 0x01, 0x00,
|
||||||
|
0x3E, 0x41, 0x41, 0x51, 0x73, 0x00,
|
||||||
|
0x7F, 0x08, 0x08, 0x08, 0x7F, 0x00,
|
||||||
|
0x00, 0x41, 0x7F, 0x41, 0x00, 0x00,
|
||||||
|
0x20, 0x40, 0x41, 0x3F, 0x01, 0x00,
|
||||||
|
0x7F, 0x08, 0x14, 0x22, 0x41, 0x00,
|
||||||
|
0x7F, 0x40, 0x40, 0x40, 0x40, 0x00,
|
||||||
|
0x7F, 0x02, 0x1C, 0x02, 0x7F, 0x00,
|
||||||
|
0x7F, 0x04, 0x08, 0x10, 0x7F, 0x00,
|
||||||
|
0x3E, 0x41, 0x41, 0x41, 0x3E, 0x00,
|
||||||
|
0x7F, 0x09, 0x09, 0x09, 0x06, 0x00,
|
||||||
|
0x3E, 0x41, 0x51, 0x21, 0x5E, 0x00,
|
||||||
|
0x7F, 0x09, 0x19, 0x29, 0x46, 0x00,
|
||||||
|
0x26, 0x49, 0x49, 0x49, 0x32, 0x00,
|
||||||
|
0x03, 0x01, 0x7F, 0x01, 0x03, 0x00,
|
||||||
|
0x3F, 0x40, 0x40, 0x40, 0x3F, 0x00,
|
||||||
|
0x1F, 0x20, 0x40, 0x20, 0x1F, 0x00,
|
||||||
|
0x3F, 0x40, 0x38, 0x40, 0x3F, 0x00,
|
||||||
|
0x63, 0x14, 0x08, 0x14, 0x63, 0x00,
|
||||||
|
0x03, 0x04, 0x78, 0x04, 0x03, 0x00,
|
||||||
|
0x61, 0x59, 0x49, 0x4D, 0x43, 0x00,
|
||||||
|
0x00, 0x7F, 0x41, 0x41, 0x41, 0x00,
|
||||||
|
0x02, 0x04, 0x08, 0x10, 0x20, 0x00,
|
||||||
|
0x00, 0x41, 0x41, 0x41, 0x7F, 0x00,
|
||||||
|
0x04, 0x02, 0x01, 0x02, 0x04, 0x00,
|
||||||
|
0x40, 0x40, 0x40, 0x40, 0x40, 0x00,
|
||||||
|
0x00, 0x03, 0x07, 0x08, 0x00, 0x00,
|
||||||
|
0x20, 0x54, 0x54, 0x78, 0x40, 0x00,
|
||||||
|
0x7F, 0x28, 0x44, 0x44, 0x38, 0x00,
|
||||||
|
0x38, 0x44, 0x44, 0x44, 0x28, 0x00,
|
||||||
|
0x38, 0x44, 0x44, 0x28, 0x7F, 0x00,
|
||||||
|
0x38, 0x54, 0x54, 0x54, 0x18, 0x00,
|
||||||
|
0x00, 0x08, 0x7E, 0x09, 0x02, 0x00,
|
||||||
|
0x18, 0x24, 0x24, 0x1C, 0x78, 0x00,
|
||||||
|
0x7F, 0x08, 0x04, 0x04, 0x78, 0x00,
|
||||||
|
0x00, 0x44, 0x7D, 0x40, 0x00, 0x00,
|
||||||
|
0x20, 0x40, 0x40, 0x3D, 0x00, 0x00,
|
||||||
|
0x7F, 0x10, 0x28, 0x44, 0x00, 0x00,
|
||||||
|
0x00, 0x41, 0x7F, 0x40, 0x00, 0x00,
|
||||||
|
0x7C, 0x04, 0x78, 0x04, 0x78, 0x00,
|
||||||
|
0x7C, 0x08, 0x04, 0x04, 0x78, 0x00,
|
||||||
|
0x38, 0x44, 0x44, 0x44, 0x38, 0x00,
|
||||||
|
0x7C, 0x18, 0x24, 0x24, 0x18, 0x00,
|
||||||
|
0x18, 0x24, 0x24, 0x18, 0x7C, 0x00,
|
||||||
|
0x7C, 0x08, 0x04, 0x04, 0x08, 0x00,
|
||||||
|
0x48, 0x54, 0x54, 0x54, 0x24, 0x00,
|
||||||
|
0x04, 0x04, 0x3F, 0x44, 0x24, 0x00,
|
||||||
|
0x3C, 0x40, 0x40, 0x20, 0x7C, 0x00,
|
||||||
|
0x1C, 0x20, 0x40, 0x20, 0x1C, 0x00,
|
||||||
|
0x3C, 0x40, 0x30, 0x40, 0x3C, 0x00,
|
||||||
|
0x44, 0x28, 0x10, 0x28, 0x44, 0x00,
|
||||||
|
0x4C, 0x90, 0x10, 0x90, 0x7C, 0x00,
|
||||||
|
0x44, 0x64, 0x54, 0x4C, 0x44, 0x00,
|
||||||
|
0x00, 0x08, 0x36, 0x41, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x77, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x41, 0x36, 0x08, 0x00, 0x00,
|
||||||
|
0x02, 0x01, 0x02, 0x04, 0x02, 0x00,
|
||||||
|
0x3C, 0x26, 0x23, 0x26, 0x3C, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x80, 0xC0, 0xC0,
|
||||||
|
0x90, 0x70, 0xE8, 0xA8, 0xE4, 0xC4,
|
||||||
|
0xC4, 0xA0, 0xE4, 0xB0, 0xDC, 0xE4,
|
||||||
|
0xFC, 0xFC, 0xFC, 0xFC, 0x3C, 0x3C,
|
||||||
|
0xFC, 0xF8, 0xF0, 0xF0, 0xE0, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0xF8, 0xF8,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0xF8, 0xF8, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0xE0, 0xF0, 0xF0, 0xF0, 0xE0, 0xEC,
|
||||||
|
0xEE, 0xF7, 0xF3, 0x70, 0x20, 0x00,
|
||||||
|
0x7C, 0x7C, 0x7C, 0x7E, 0x00, 0x7E,
|
||||||
|
0x7E, 0x7E, 0x7F, 0x7F, 0x7F, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0xF0,
|
||||||
|
0xFC, 0xF6, 0xF7, 0xEF, 0xFF, 0x87,
|
||||||
|
0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F,
|
||||||
|
0x1F, 0x1F, 0x1F, 0xFF, 0xFF, 0xFF,
|
||||||
|
0xFF, 0x07, 0x1F, 0x1F, 0x19, 0x15,
|
||||||
|
0xF7, 0x16, 0x1A, 0x1B, 0x16, 0x07,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x0C, 0x0C, 0x33, 0x33,
|
||||||
|
0x33, 0x33, 0x33, 0x33, 0xC0, 0xC0,
|
||||||
|
0x00, 0x00, 0x03, 0x03, 0xFF, 0xFF,
|
||||||
|
0x03, 0x03, 0x00, 0x00, 0xC0, 0xC0,
|
||||||
|
0x00, 0x00, 0x00, 0xFC, 0xFC, 0x03,
|
||||||
|
0x03, 0x03, 0x03, 0x03, 0x03, 0xFC,
|
||||||
|
0xFC, 0x00, 0x00, 0x00, 0xFC, 0xFC,
|
||||||
|
0x03, 0x03, 0x03, 0x03, 0x03, 0x03,
|
||||||
|
0xC0, 0xC0, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0xFF, 0xFF, 0x30, 0x30, 0xCC, 0xCC,
|
||||||
|
0x03, 0x03, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x0F, 0x1F, 0x3F, 0x7F, 0x7F, 0x7F,
|
||||||
|
0x7F, 0x7F, 0x3F, 0x1E, 0x0C, 0x00,
|
||||||
|
0x1F, 0x1F, 0x1F, 0x3F, 0x00, 0x3F,
|
||||||
|
0x3F, 0x3F, 0x7F, 0x7F, 0x7F, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
|
||||||
|
0x03, 0x07, 0x07, 0x07, 0x07, 0x01,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x03, 0x07, 0x07,
|
||||||
|
0x03, 0x00, 0x00, 0x02, 0x04, 0x00,
|
||||||
|
0x07, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x03, 0x03, 0x03, 0x03,
|
||||||
|
0x03, 0x03, 0x03, 0x03, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x03, 0x03, 0x03, 0x03, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x03,
|
||||||
|
0x03, 0x03, 0x03, 0x03, 0x03, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x03, 0x03, 0x03, 0x03, 0x03, 0x03,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x03, 0x03, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x03, 0x03, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
};
|
|
@ -2,11 +2,9 @@
|
||||||
|
|
||||||
uint16_t copy_paste_timer;
|
uint16_t copy_paste_timer;
|
||||||
|
|
||||||
__attribute__((weak))
|
__attribute__((weak)) bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { return true; }
|
||||||
bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { return true; }
|
|
||||||
|
|
||||||
__attribute__((weak))
|
__attribute__((weak)) bool process_record_secrets(uint16_t keycode, keyrecord_t *record) { return true; }
|
||||||
bool process_record_secrets(uint16_t keycode, keyrecord_t *record) { return true; }
|
|
||||||
|
|
||||||
// Defines actions tor my global custom keycodes. Defined in drashna.h file
|
// Defines actions tor my global custom keycodes. Defined in drashna.h file
|
||||||
// Then runs the _keymap's record handier if not processed here
|
// Then runs the _keymap's record handier if not processed here
|
||||||
|
|
|
@ -25,7 +25,7 @@ static uint32_t hypno_timer;
|
||||||
#ifdef RGBLIGHT_ENABLE
|
#ifdef RGBLIGHT_ENABLE
|
||||||
# ifdef INDICATOR_LIGHTS
|
# ifdef INDICATOR_LIGHTS
|
||||||
void set_rgb_indicators(uint8_t this_mod, uint8_t this_led, uint8_t this_osm) {
|
void set_rgb_indicators(uint8_t this_mod, uint8_t this_led, uint8_t this_osm) {
|
||||||
if (userspace_config.rgb_layer_change && biton32(layer_state) == 0) {
|
if (userspace_config.rgb_layer_change && get_highest_layer(layer_state) == 0) {
|
||||||
if ((this_mod | this_osm) & MOD_MASK_SHIFT || this_led & (1 << USB_LED_CAPS_LOCK)) {
|
if ((this_mod | this_osm) & MOD_MASK_SHIFT || this_led & (1 << USB_LED_CAPS_LOCK)) {
|
||||||
# ifdef SHFT_LED1
|
# ifdef SHFT_LED1
|
||||||
rgblight_sethsv_at(120, 255, 255, SHFT_LED1);
|
rgblight_sethsv_at(120, 255, 255, SHFT_LED1);
|
||||||
|
@ -154,19 +154,19 @@ void scan_rgblight_fadeout(void) { // Don't effing change this function .... rg
|
||||||
|
|
||||||
if (light->life) {
|
if (light->life) {
|
||||||
light->life -= 1;
|
light->life -= 1;
|
||||||
if (biton32(layer_state) == 0) {
|
if (get_highest_layer(layer_state) == 0) {
|
||||||
sethsv(light->hue + rand() % 0xF, 255, light->life, (LED_TYPE *)&led[light_index]);
|
sethsv(light->hue + rand() % 0xF, 255, light->life, (LED_TYPE *)&led[light_index]);
|
||||||
}
|
}
|
||||||
light->timer = timer_read();
|
light->timer = timer_read();
|
||||||
} else {
|
} else {
|
||||||
if (light->enabled && biton32(layer_state) == 0) {
|
if (light->enabled && get_highest_layer(layer_state) == 0) {
|
||||||
rgblight_sethsv_default_helper(light_index);
|
rgblight_sethsv_default_helper(light_index);
|
||||||
}
|
}
|
||||||
litup = light->enabled = false;
|
litup = light->enabled = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (litup && biton32(layer_state) == 0) {
|
if (litup && get_highest_layer(layer_state) == 0) {
|
||||||
rgblight_set();
|
rgblight_set();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -259,7 +259,9 @@ bool process_record_user_rgb(uint16_t keycode, keyrecord_t *record) {
|
||||||
userspace_config.rgb_matrix_idle_anim ^= 1;
|
userspace_config.rgb_matrix_idle_anim ^= 1;
|
||||||
dprintf("RGB Matrix Idle Animation [EEPROM]: %u\n", userspace_config.rgb_matrix_idle_anim);
|
dprintf("RGB Matrix Idle Animation [EEPROM]: %u\n", userspace_config.rgb_matrix_idle_anim);
|
||||||
eeconfig_update_user(userspace_config.raw);
|
eeconfig_update_user(userspace_config.raw);
|
||||||
if (userspace_config.rgb_matrix_idle_anim) { rgb_matrix_mode_noeeprom(RGB_MATRIX_TYPING_HEATMAP); }
|
if (userspace_config.rgb_matrix_idle_anim) {
|
||||||
|
rgb_matrix_mode_noeeprom(RGB_MATRIX_TYPING_HEATMAP);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
|
@ -281,7 +283,9 @@ bool process_record_user_rgb(uint16_t keycode, keyrecord_t *record) {
|
||||||
is_eeprom_updated = true;
|
is_eeprom_updated = true;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (is_eeprom_updated) { eeconfig_update_user(userspace_config.raw); }
|
if (is_eeprom_updated) {
|
||||||
|
eeconfig_update_user(userspace_config.raw);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -337,69 +341,72 @@ void matrix_scan_rgb(void) {
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
void rgblight_set_hsv_and_mode(uint8_t hue, uint8_t sat, uint8_t val, uint8_t mode) {
|
||||||
|
rgblight_sethsv_noeeprom(hue, sat, val);
|
||||||
|
wait_us(175); // Add a slight delay between color and mode to ensure it's processed correctly
|
||||||
|
rgblight_mode_noeeprom(mode);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
layer_state_t layer_state_set_rgb(layer_state_t state) {
|
layer_state_t layer_state_set_rgb(layer_state_t state) {
|
||||||
#ifdef RGBLIGHT_ENABLE
|
#ifdef RGBLIGHT_ENABLE
|
||||||
if (userspace_config.rgb_layer_change) {
|
if (userspace_config.rgb_layer_change) {
|
||||||
switch (biton32(state)) {
|
switch (get_highest_layer(state)) {
|
||||||
case _MACROS:
|
case _MACROS:
|
||||||
rgblight_sethsv_noeeprom_orange();
|
rgblight_set_hsv_and_mode(HSV_ORANGE, userspace_config.is_overwatch ? RGBLIGHT_MODE_SNAKE + 2 : RGBLIGHT_MODE_SNAKE + 3);
|
||||||
userspace_config.is_overwatch ? rgblight_mode_noeeprom(RGBLIGHT_MODE_SNAKE + 2) : rgblight_mode_noeeprom(RGBLIGHT_MODE_SNAKE + 3);
|
|
||||||
break;
|
break;
|
||||||
case _MEDIA:
|
case _MEDIA:
|
||||||
rgblight_sethsv_noeeprom_chartreuse();
|
rgblight_set_hsv_and_mode(HSV_CHARTREUSE, RGBLIGHT_MODE_KNIGHT + 1);
|
||||||
rgblight_mode_noeeprom(RGBLIGHT_MODE_KNIGHT + 1);
|
|
||||||
break;
|
break;
|
||||||
case _GAMEPAD:
|
case _GAMEPAD:
|
||||||
rgblight_sethsv_noeeprom_orange();
|
rgblight_set_hsv_and_mode(HSV_ORANGE, RGBLIGHT_MODE_SNAKE + 2);
|
||||||
rgblight_mode_noeeprom(RGBLIGHT_MODE_SNAKE + 2);
|
|
||||||
break;
|
break;
|
||||||
case _DIABLO:
|
case _DIABLO:
|
||||||
rgblight_sethsv_noeeprom_red();
|
rgblight_set_hsv_and_mode(HSV_RED, RGBLIGHT_MODE_BREATHING + 3);
|
||||||
rgblight_mode_noeeprom(RGBLIGHT_MODE_BREATHING + 3);
|
|
||||||
break;
|
break;
|
||||||
case _RAISE:
|
case _RAISE:
|
||||||
rgblight_sethsv_noeeprom_yellow();
|
rgblight_set_hsv_and_mode(HSV_YELLOW, RGBLIGHT_MODE_BREATHING + 3);
|
||||||
rgblight_mode_noeeprom(RGBLIGHT_MODE_BREATHING + 3);
|
|
||||||
break;
|
break;
|
||||||
case _LOWER:
|
case _LOWER:
|
||||||
rgblight_sethsv_noeeprom_green();
|
rgblight_set_hsv_and_mode(HSV_GREEN, RGBLIGHT_MODE_BREATHING + 3);
|
||||||
rgblight_mode_noeeprom(RGBLIGHT_MODE_BREATHING + 3);
|
|
||||||
break;
|
break;
|
||||||
case _ADJUST:
|
case _ADJUST:
|
||||||
rgblight_sethsv_noeeprom_red();
|
rgblight_set_hsv_and_mode(HSV_RED, RGBLIGHT_MODE_KNIGHT + 2);
|
||||||
rgblight_mode_noeeprom(RGBLIGHT_MODE_KNIGHT + 2);
|
|
||||||
break;
|
break;
|
||||||
default: // for any other layers, or the default layer
|
default: // for any other layers, or the default layer
|
||||||
switch (biton32(default_layer_state)) {
|
{
|
||||||
|
uint8_t mode = get_highest_layer(state) == _MODS ? RGBLIGHT_MODE_BREATHING : RGBLIGHT_MODE_STATIC_LIGHT;
|
||||||
|
switch (get_highest_layer(default_layer_state)) {
|
||||||
case _COLEMAK:
|
case _COLEMAK:
|
||||||
rgblight_sethsv_noeeprom_magenta();
|
rgblight_set_hsv_and_mode(HSV_MAGENTA, mode);
|
||||||
break;
|
break;
|
||||||
case _DVORAK:
|
case _DVORAK:
|
||||||
rgblight_sethsv_noeeprom_springgreen();
|
rgblight_set_hsv_and_mode(HSV_SPRINGGREEN, mode);
|
||||||
break;
|
break;
|
||||||
case _WORKMAN:
|
case _WORKMAN:
|
||||||
rgblight_sethsv_noeeprom_goldenrod();
|
rgblight_set_hsv_and_mode(HSV_GOLDENROD, mode);
|
||||||
break;
|
break;
|
||||||
case _NORMAN:
|
case _NORMAN:
|
||||||
rgblight_sethsv_noeeprom_coral();
|
rgblight_set_hsv_and_mode(HSV_CORAL, mode);
|
||||||
break;
|
break;
|
||||||
case _MALTRON:
|
case _MALTRON:
|
||||||
rgblight_sethsv_noeeprom_yellow();
|
rgblight_set_hsv_and_mode(HSV_YELLOW, mode);
|
||||||
break;
|
break;
|
||||||
case _EUCALYN:
|
case _EUCALYN:
|
||||||
rgblight_sethsv_noeeprom_pink();
|
rgblight_set_hsv_and_mode(HSV_PINK, mode);
|
||||||
break;
|
break;
|
||||||
case _CARPLAX:
|
case _CARPLAX:
|
||||||
rgblight_sethsv_noeeprom_blue();
|
rgblight_set_hsv_and_mode(HSV_BLUE, mode);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
rgblight_sethsv_noeeprom_cyan();
|
rgblight_set_hsv_and_mode(HSV_CYAN, mode);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
biton32(state) == _MODS ? rgblight_mode_noeeprom(RGBLIGHT_MODE_BREATHING) : rgblight_mode_noeeprom(RGBLIGHT_MODE_STATIC_LIGHT); // if _MODS layer is on, then breath to denote it
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif // RGBLIGHT_ENABLE
|
#endif // RGBLIGHT_ENABLE
|
||||||
|
|
||||||
return state;
|
return state;
|
||||||
|
@ -408,6 +415,7 @@ layer_state_t layer_state_set_rgb(layer_state_t state) {
|
||||||
#ifdef RGB_MATRIX_ENABLE
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
# include "lib/lib8tion/lib8tion.h"
|
# include "lib/lib8tion/lib8tion.h"
|
||||||
extern led_config_t g_led_config;
|
extern led_config_t g_led_config;
|
||||||
|
|
||||||
void rgb_matrix_layer_helper(uint8_t hue, uint8_t sat, uint8_t val, uint8_t mode, uint8_t speed, uint8_t led_type) {
|
void rgb_matrix_layer_helper(uint8_t hue, uint8_t sat, uint8_t val, uint8_t mode, uint8_t speed, uint8_t led_type) {
|
||||||
HSV hsv = {hue, sat, val};
|
HSV hsv = {hue, sat, val};
|
||||||
if (hsv.v > rgb_matrix_config.hsv.v) {
|
if (hsv.v > rgb_matrix_config.hsv.v) {
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#ifndef RGBLIGHT_EFFECT_BREATHE_TABLE
|
#ifndef RGBLIGHT_EFFECT_BREATHE_TABLE
|
||||||
#define RGBLIGHT_EFFECT_BREATHE_TABLE
|
#define RGBLIGHT_EFFECT_BREATHE_TABLE
|
||||||
|
|
||||||
|
// clang-format off
|
||||||
const uint8_t rgblight_effect_breathe_table[] PROGMEM = {
|
const uint8_t rgblight_effect_breathe_table[] PROGMEM = {
|
||||||
/* #define RGBLIGHT_EFFECT_BREATHE_CENTER 0.00 */
|
/* #define RGBLIGHT_EFFECT_BREATHE_CENTER 0.00 */
|
||||||
/* #define RGBLIGHT_EFFECT_BREATHE_MAX 255 */
|
/* #define RGBLIGHT_EFFECT_BREATHE_MAX 255 */
|
||||||
|
@ -110,6 +111,7 @@ const uint8_t rgblight_effect_breathe_table[] PROGMEM = {
|
||||||
0x4e, 0x48
|
0x4e, 0x48
|
||||||
#endif /* 64 bytes table */
|
#endif /* 64 bytes table */
|
||||||
};
|
};
|
||||||
|
// clang-format on
|
||||||
|
|
||||||
static const int table_scale = 256 / sizeof(rgblight_effect_breathe_table);
|
static const int table_scale = 256 / sizeof(rgblight_effect_breathe_table);
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
SRC += drashna.c \
|
SRC += drashna.c \
|
||||||
process_records.c
|
process_records.c
|
||||||
|
|
||||||
LINK_TIME_OPTIMIZATION_ENABLE = yes
|
LTO_ENABLE = yes
|
||||||
SPACE_CADET_ENABLE = no
|
SPACE_CADET_ENABLE = no
|
||||||
|
|
||||||
ifneq ($(strip $(NO_SECRETS)), yes)
|
ifneq ($(strip $(NO_SECRETS)), yes)
|
||||||
|
@ -52,3 +52,10 @@ endif
|
||||||
ifeq ($(strip $(MAKE_BOOTLOADER)), yes)
|
ifeq ($(strip $(MAKE_BOOTLOADER)), yes)
|
||||||
OPT_DEFS += -DMAKE_BOOTLOADER
|
OPT_DEFS += -DMAKE_BOOTLOADER
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# At least until build.mk or the like drops, this is here to prevent
|
||||||
|
# VUSB boards from enabling NKRO, as they do not support it. Ideally
|
||||||
|
# this should be handled per keyboard, but until that happens ...
|
||||||
|
ifeq ($(strip $(PROTOCOL)), VUSB)
|
||||||
|
NKRO_ENABLE = no
|
||||||
|
endif
|
|
@ -1,39 +1,26 @@
|
||||||
#include "template.h"
|
#include "template.h"
|
||||||
|
|
||||||
|
|
||||||
// Add reconfigurable functions here, for keymap customization
|
// Add reconfigurable functions here, for keymap customization
|
||||||
// This allows for a global, userspace functions, and continued
|
// This allows for a global, userspace functions, and continued
|
||||||
// customization of the keymap. Use _keymap instead of _user
|
// customization of the keymap. Use _keymap instead of _user
|
||||||
// functions in the keymaps
|
// functions in the keymaps
|
||||||
__attribute__ ((weak))
|
__attribute__((weak)) void matrix_init_keymap(void) {}
|
||||||
void matrix_init_keymap(void) {}
|
|
||||||
|
|
||||||
// Call user matrix init, then call the keymap's init function
|
// Call user matrix init, then call the keymap's init function
|
||||||
void matrix_init_user(void) {
|
void matrix_init_user(void) { matrix_init_keymap(); }
|
||||||
matrix_init_keymap();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
__attribute__((weak)) void matrix_scan_keymap(void) {}
|
||||||
__attribute__ ((weak))
|
|
||||||
void matrix_scan_keymap(void) {}
|
|
||||||
|
|
||||||
// No global matrix scan code, so just run keymap's matix
|
// No global matrix scan code, so just run keymap's matix
|
||||||
// scan function
|
// scan function
|
||||||
void matrix_scan_user(void) {
|
void matrix_scan_user(void) { matrix_scan_keymap(); }
|
||||||
matrix_scan_keymap();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
__attribute__((weak)) bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { return true; }
|
||||||
__attribute__ ((weak))
|
|
||||||
bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Defines actions tor my global custom keycodes. Defined in drashna.h file
|
// Defines actions tor my global custom keycodes. Defined in drashna.h file
|
||||||
// Then runs the _keymap's recod handier if not processed here,
|
// Then runs the _keymap's recod handier if not processed here,
|
||||||
// And use "NEWPLACEHOLDER" for new safe range
|
// And use "NEWPLACEHOLDER" for new safe range
|
||||||
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 KC_MAKE:
|
case KC_MAKE:
|
||||||
if (!record->event.pressed) {
|
if (!record->event.pressed) {
|
||||||
|
@ -60,52 +47,28 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
return process_record_keymap(keycode, record);
|
return process_record_keymap(keycode, record);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__attribute__((weak)) layer_state_t layer_state_set_keymap(layer_state_t state) { return state; }
|
||||||
|
|
||||||
__attribute__ ((weak))
|
layer_state_t layer_state_set_user(layer_state_t state) { return layer_state_set_keymap(state); }
|
||||||
layer_state_t layer_state_set_keymap (layer_state_t state) {
|
|
||||||
return state;
|
|
||||||
}
|
|
||||||
|
|
||||||
layer_state_t layer_state_set_user (layer_state_t state) {
|
__attribute__((weak)) void led_set_keymap(uint8_t usb_led) {}
|
||||||
return layer_state_set_keymap (state);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
void led_set_user(uint8_t usb_led) { led_set_keymap(usb_led); }
|
||||||
|
|
||||||
|
__attribute__((weak)) void suspend_power_down_keymap(void) {}
|
||||||
|
|
||||||
__attribute__ ((weak))
|
void suspend_power_down_user(void) { suspend_power_down_keymap(); }
|
||||||
void led_set_keymap(uint8_t usb_led) {}
|
|
||||||
|
|
||||||
void led_set_user(uint8_t usb_led) {
|
__attribute__((weak)) void suspend_wakeup_init_keymap(void) {}
|
||||||
led_set_keymap(usb_led);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
void suspend_wakeup_init_user(void) {
|
||||||
|
|
||||||
__attribute__ ((weak))
|
|
||||||
void suspend_power_down_keymap(void) {}
|
|
||||||
|
|
||||||
void suspend_power_down_user(void)
|
|
||||||
{
|
|
||||||
suspend_power_down_keymap();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
__attribute__ ((weak))
|
|
||||||
void suspend_wakeup_init_keymap(void) {}
|
|
||||||
|
|
||||||
void suspend_wakeup_init_user(void)
|
|
||||||
{
|
|
||||||
suspend_wakeup_init_keymap();
|
suspend_wakeup_init_keymap();
|
||||||
#ifdef KEYBOARD_ergodox_ez
|
#ifdef KEYBOARD_ergodox_ez
|
||||||
wait_ms(10);
|
wait_ms(10);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__attribute__((weak)) void startup_keymap(void) {}
|
||||||
|
|
||||||
__attribute__ ((weak))
|
|
||||||
void startup_keymap(void) {}
|
|
||||||
|
|
||||||
void startup_user(void) {
|
void startup_user(void) {
|
||||||
#ifdef RGBLIGHT_ENABLE
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
@ -114,11 +77,6 @@ void startup_user (void) {
|
||||||
startup_keymap();
|
startup_keymap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__attribute__((weak)) void shutdown_keymap(void) {}
|
||||||
|
|
||||||
|
void shutdown_user(void) { shutdown_keymap(); }
|
||||||
__attribute__ ((weak))
|
|
||||||
void shutdown_keymap(void) {}
|
|
||||||
|
|
||||||
void shutdown_user (void) {
|
|
||||||
shutdown_keymap();
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#ifndef USERSPACE
|
#pragma once
|
||||||
#define USERSPACE
|
|
||||||
|
|
||||||
#include "quantum.h"
|
#include QMK_KEYBOARD_H
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
#include "eeprom.h"
|
#include "eeprom.h"
|
||||||
|
|
||||||
|
@ -14,5 +13,3 @@ enum custom_keycodes {
|
||||||
KC_RESET,
|
KC_RESET,
|
||||||
NEWPLACEHOLDER // use "NEWPLACEHOLDER for keymap specific codes
|
NEWPLACEHOLDER // use "NEWPLACEHOLDER for keymap specific codes
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
Loading…
Reference in a new issue