[Keymap] Update to Drashna Keymaps (#5594)
* Start to standardize macro timer * Update Fractal layout Specifically, limit the RGB Lighting, since it's too many for the power, and only have the KITT annimation on the front * Update Iris keymap to use I2C for transport * Remove TAP_CODE_DELAY from keyboard in favor of global setting * Remove Woodpad Since it\'s no longer in my possession * Only enable LTO on AVR boards * Run matrix_scans while doing startup light * Run matrix_scan to get split keyboard code synced properly * Fix rgb mode * Remove custom debouncing settings * Make RGB Light Startup Animation optional * Fix opt def * Remove extra tap code delay value * Fix references to keebio boards * Add support for LP Iris keyboard * Add backlight code * Make startup animation optional * Update gitlab ci script * Remove port declaration * Revert avrgcc changes to gitlab ci file * Don't re-set mods * Remove MACRO_TIMER define * Add custom name for crkbd * Add name for Prime M pad * Add names for ortho 4x12 boards * Add some additional handling for rgb init * Change thumb clusters on ergodox * Switch Orthodox to I2C * Fix Space in ergodox keymap * Use OSL for ergodox layout * Ugh, can't find a good layout * Fix typo * Fix up animation startup * Cries in AVR * Fix makefiles for ergodox ez boards * Add support for "secret songs" in my userspace * Reset debounce to 5ms for Ergodox EZ * Fix gitlab CI yaml file * More crying in AVR * Cannot use rgb light and rgb matrix at the same time due to the WS2812 rgb matrix PR until the "Coexistance" PR is merged * Update ODox for split common and i2c * Add split config * Impement Split code * Add support for xscorpion OLED code * Add OLED display config * Fix OLED screen font * Get OLED set up in vertical mode * Remove old OLED code * add per key support for crkbd * Fix split changes * RGB Tweeaks * More OLED tweaks * Fix rotation stuff * Fix more OLED stuff * Remove custom Debounce from Ergodox layout since it's no longer needed
This commit is contained in:
		
							parent
							
								
									6d73fe1277
								
							
						
					
					
						commit
						a2cec0594b
					
				
					 38 changed files with 569 additions and 300 deletions
				
			
		| 
						 | 
				
			
			@ -14,4 +14,3 @@
 | 
			
		|||
#define PRODUCT         DrashnaDox - Hacked ErgoDox EZ Shine
 | 
			
		||||
 | 
			
		||||
#undef DEBOUNCE
 | 
			
		||||
#define DEBOUNCE 5
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -44,10 +44,10 @@ bool skip_leds = false;
 | 
			
		|||
      KC_TAB,  K01,    K02,     K03,      K04,     K05,     TG(_DIABLO),         TG(_DIABLO), K06,     K07,     K08,     K09,     K0A,     KC_BSLS, \
 | 
			
		||||
      KC_C1R3, K11,    K12,     K13,      K14,     K15,                                       K16,     K17,     K18,     K19,     K1A,     KC_QUOT, \
 | 
			
		||||
      KC_MLSF, CTL_T(K21), K22, K23,      K24,     K25,     TG(_GAMEPAD),       TG(_GAMEPAD), K26,     K27,     K28,     K29,  CTL_T(K2A), KC_MRSF, \
 | 
			
		||||
      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), \
 | 
			
		||||
                                                           KC_HOME,                 KC_PGUP, \
 | 
			
		||||
                             LT(_LOWER, KC_SPACE),KC_BSPC, KC_END,                  KC_PGDN, KC_DEL,  LT(_RAISE, KC_ENTER)                          \
 | 
			
		||||
      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),                                      \
 | 
			
		||||
                                                           KC_APP,                  KC_MENU,                                                        \
 | 
			
		||||
                              KC_SPC, LT(_LOWER, KC_BSPC), OS_LWR,                  OS_RSE, LT(_RAISE, KC_DEL), KC_ENT                              \
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
#define LAYOUT_ergodox_pretty_base_wrapper(...)       LAYOUT_ergodox_pretty_base(__VA_ARGS__)
 | 
			
		||||
| 
						 | 
				
			
			@ -270,8 +270,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
 | 
			
		|||
 | 
			
		||||
  [_LOWER] = LAYOUT_ergodox_pretty_wrapper(
 | 
			
		||||
             KC_F12,  _________________FUNC_LEFT_________________, _______,                 _______, _________________FUNC_RIGHT________________, KC_F11,
 | 
			
		||||
             KC_TILD, _________________LOWER_L1__________________, _______,                 _______, _________________LOWER_R1__________________, _______,
 | 
			
		||||
             _______, ___________________BLANK___________________,                                   _________________LOWER_R2__________________, KC_PIPE,
 | 
			
		||||
             KC_TILD, _________________LOWER_L1__________________, _______,                 _______, _________________LOWER_R1__________________, KC_PIPE,
 | 
			
		||||
             _______, ___________________BLANK___________________,                                   _________________LOWER_R2__________________, KC_DQUO,
 | 
			
		||||
             _______, ___________________BLANK___________________, _______,                 _______, _________________LOWER_R3__________________, KC_PSCR,
 | 
			
		||||
             _______, _______, _______, _______, _______,                                                     _______, _______, _______, _______, KC_PAUS,
 | 
			
		||||
                                                          _______, _______,                 _______, _______,
 | 
			
		||||
| 
						 | 
				
			
			@ -281,8 +281,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
 | 
			
		|||
 | 
			
		||||
  [_RAISE] = LAYOUT_ergodox_pretty_wrapper(
 | 
			
		||||
             KC_F12,  _________________FUNC_LEFT_________________, _______,                 _______, _________________FUNC_RIGHT________________, KC_F11,
 | 
			
		||||
             KC_GRV,  _________________RAISE_L1__________________, _______,                 _______, _________________RAISE_R1__________________, _______,
 | 
			
		||||
             _______, _________________RAISE_L2__________________,                                   _________________RAISE_R2__________________, KC_BSLS,
 | 
			
		||||
             KC_GRV,  _________________RAISE_L1__________________, _______,                 _______, _________________RAISE_R1__________________, KC_BSLS,
 | 
			
		||||
             _______, _________________RAISE_L2__________________,                                   _________________RAISE_R2__________________, KC_QUOT,
 | 
			
		||||
             _______, _________________RAISE_L3__________________, _______,                 _______, _________________RAISE_R3__________________, KC_PSCR,
 | 
			
		||||
             _______, _______, _______, _______, _______,                                                     KC_HOME, KC_PGDN, KC_PGUP, KC_END,  KC_SLCK,
 | 
			
		||||
                                                          _______, _______,                 _______, _______,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -14,3 +14,6 @@ UNICDOEMAP_ENABLE = no
 | 
			
		|||
MACROS_ENABLED    = no
 | 
			
		||||
RGBLIGHT_TWINKLE  = no
 | 
			
		||||
INDICATOR_LIGHTS  = no
 | 
			
		||||
RGBLIGHT_STARTUP_ANIMATION = yes
 | 
			
		||||
 | 
			
		||||
DEBOUNCE_TYPE     = eager_pk
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,17 +5,11 @@
 | 
			
		|||
#undef PRODUCT
 | 
			
		||||
#define PRODUCT         DrashnaDox - Hacked ErgoDox EZ Glow
 | 
			
		||||
 | 
			
		||||
#undef DEBOUNCE
 | 
			
		||||
#define DEBOUNCE 5
 | 
			
		||||
 | 
			
		||||
#ifdef RGB_MATRIX_ENABLE
 | 
			
		||||
// #define RGB_MATRIX_KEYPRESSES // reacts to keypresses (will slow down matrix scan by a lot)
 | 
			
		||||
#define RGB_MATRIX_KEYPRESSES // reacts to keypresses (will slow down matrix scan by a lot)
 | 
			
		||||
// #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (not recommened)
 | 
			
		||||
// #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
 | 
			
		||||
#define RGB_DISABLE_WHEN_USB_SUSPENDED  true// turn off effects when suspended
 | 
			
		||||
// #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255
 | 
			
		||||
// #define EECONFIG_RGB_MATRIX (uint32_t *)16
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#undef DEBOUNCE
 | 
			
		||||
#define DEBOUNCE 1
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,10 @@
 | 
			
		|||
USER_NAME := drashna
 | 
			
		||||
SRC += ../drashna/keymap.c
 | 
			
		||||
 | 
			
		||||
-include $(LAYOUT_KEYMAP_PATH)/../drashna/rules.mk
 | 
			
		||||
CORRECTED_LAYOUT := $(LAYOUTS_REPO)/$(LAYOUT)/drashna
 | 
			
		||||
 | 
			
		||||
SRC += $(CORRECTED_LAYOUT)/keymap.c
 | 
			
		||||
 | 
			
		||||
-include $(CORRECTED_LAYOUT)/rules.mk
 | 
			
		||||
 | 
			
		||||
ifneq (,$(findstring ergodox_ez,$(KEYBOARD)))
 | 
			
		||||
  RGBLIGHT_ENABLE = no
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -14,5 +14,7 @@
 | 
			
		|||
#define RGBLIGHT_EFFECT_BREATHE_CENTER 1
 | 
			
		||||
#endif // RGBLIGHT_ENABLE
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#define TAP_CODE_DELAY 10
 | 
			
		||||
#if defined(KEYBOARD_primekb_prime_m)
 | 
			
		||||
#undef PRODUCT
 | 
			
		||||
#define PRODUCT Drashna Hacked Prime_M Macro Pad
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -7,3 +7,4 @@ INDICATOR_LIGHTS  = no
 | 
			
		|||
RGBLIGHT_TWINKLE  = yes
 | 
			
		||||
MACROS_ENABLED    = no
 | 
			
		||||
MAKE_BOOTLOADER   = yes
 | 
			
		||||
RGBLIGHT_STARTUP_ANIMATION = yes
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -36,6 +36,17 @@
 | 
			
		|||
#endif // KEYBOARD_planck_light
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#if defined(KEYBOARD_planck)
 | 
			
		||||
#undef PRODUCT
 | 
			
		||||
#if defined(KEYBOARD_planck_light)
 | 
			
		||||
#define PRODUCT Drashna Hacked RGB Beacon (Planck Light)
 | 
			
		||||
#elif defined(KEYBOARD_planck_rev6)
 | 
			
		||||
#define PRODUCT Drashna Hacked Planck Rev6
 | 
			
		||||
#elif defined(KEYBOARD_planck_EZ)
 | 
			
		||||
#define PRODUCT Drashna Hacked Planck EZ
 | 
			
		||||
#endif
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * MIDI options
 | 
			
		||||
 */
 | 
			
		||||
| 
						 | 
				
			
			@ -59,5 +70,3 @@
 | 
			
		|||
 | 
			
		||||
/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
 | 
			
		||||
//#define MIDI_TONE_KEYCODE_OCTAVES 2
 | 
			
		||||
 | 
			
		||||
#define TAP_CODE_DELAY 10
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -139,10 +139,8 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
 | 
			
		|||
        #ifdef BACKLIGHT_ENABLE
 | 
			
		||||
          backlight_step();
 | 
			
		||||
        #endif
 | 
			
		||||
        PORTE &= ~(1<<6);
 | 
			
		||||
      } else {
 | 
			
		||||
        unregister_code(KC_RSFT);
 | 
			
		||||
        PORTE |= (1<<6);
 | 
			
		||||
      }
 | 
			
		||||
      return false;
 | 
			
		||||
      break;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,13 +6,15 @@ COMMAND_ENABLE    = no        # Commands for debug and configuration
 | 
			
		|||
TAP_DANCE_ENABLE  = no
 | 
			
		||||
AUDIO_ENABLE      = yes
 | 
			
		||||
ifeq (,$(findstring planck/rev6,$(KEYBOARD))) # Make sure it's NOT the Planck Rev6
 | 
			
		||||
  RGBLIGHT_ENABLE   = yes
 | 
			
		||||
  INDICATOR_LIGHTS  = yes
 | 
			
		||||
  RGBLIGHT_TWINKLE  = yes
 | 
			
		||||
  RGBLIGHT_ENABLE             = yes
 | 
			
		||||
  INDICATOR_LIGHTS            = yes
 | 
			
		||||
  RGBLIGHT_TWINKLE            = yes
 | 
			
		||||
  RGBLIGHT_STARTUP_ANIMATION  = yes
 | 
			
		||||
endif
 | 
			
		||||
ifneq (,$(findstring planck/light,$(KEYBOARD))) # Make sure it IS the Planck Light
 | 
			
		||||
  RGB_MATRIX_ENABLE   = yes
 | 
			
		||||
  RGBLIGHT_ENABLE     = yes
 | 
			
		||||
  RGB_MATRIX_ENABLE           = yes
 | 
			
		||||
  RGBLIGHT_ENABLE             = no
 | 
			
		||||
  RGBLIGHT_STARTUP_ANIMATION  = no
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
ifeq ($(strip $(PROTOCOL)), VUSB)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -13,4 +13,10 @@
 | 
			
		|||
  #define RGBLIGHT_SAT_STEP 8
 | 
			
		||||
  #undef RGBLIGHT_VAL_STEP
 | 
			
		||||
  #define RGBLIGHT_VAL_STEP 8
 | 
			
		||||
  #define RGBLIGHT_LIMIT_VAL 175
 | 
			
		||||
  #define RGBLIGHT_SLEEP
 | 
			
		||||
 | 
			
		||||
  #define RGBLIGHT_EFFECT_KNIGHT_OFFSET 3
 | 
			
		||||
  #define RGBLIGHT_EFFECT_KNIGHT_LED_NUM 14
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue