From a336c2c5005251e4cb0f3a62ccabdb4cfccad915 Mon Sep 17 00:00:00 2001 From: lokher Date: Tue, 6 Dec 2022 17:10:48 +0800 Subject: Merge upstream master to 2022 Q4 breaking change --- keyboards/input_club/ergodox_infinity/config.h | 147 ----- .../input_club/ergodox_infinity/ergodox_infinity.c | 363 ----------- .../ergodox_infinity/keymaps/default/keymap.c | 189 ------ .../keymaps/dudeofawesome/keymap.c | 551 ---------------- .../ergodox_infinity/keymaps/halfkeyboard/keymap.c | 514 --------------- .../ergodox_infinity/keymaps/input_club/keymap.c | 245 -------- .../ergodox_infinity/keymaps/narze/keymap.c | 697 --------------------- .../ergodox_infinity/keymaps/nordic_ergo/keymap.c | 243 ------- .../keymaps/not-quite-neo/keymap.c | 292 --------- .../ergodox_infinity/keymaps/rjhilgefort/keymap.c | 381 ----------- .../input_club/infinity60/keymaps/default/keymap.c | 45 -- .../infinity60/keymaps/depariel/keymap.c | 87 --- .../input_club/infinity60/keymaps/hasu/keymap.c | 110 ---- .../infinity60/keymaps/jpetermans/keymap.c | 264 -------- keyboards/input_club/k_type/config.h | 174 ----- keyboards/input_club/k_type/is31fl3733-dual.c | 236 ------- keyboards/input_club/k_type/is31fl3733-dual.h | 252 -------- keyboards/input_club/k_type/k_type-rgbdriver.c | 57 -- keyboards/input_club/k_type/k_type.c | 235 ------- .../k_type/keymaps/andrew-fahmy/config.h | 52 -- .../k_type/keymaps/andrew-fahmy/keymap.c | 60 -- keyboards/input_club/k_type/keymaps/belak/keymap.c | 27 - .../input_club/k_type/keymaps/default/keymap.c | 22 - keyboards/input_club/whitefox/config.h | 114 ---- .../whitefox/keymaps/billypython/keymap.c | 46 -- .../input_club/whitefox/keymaps/default/keymap.c | 60 -- .../input_club/whitefox/keymaps/dhertz/keymap.c | 58 -- .../whitefox/keymaps/jetpacktuxedo/keymap.c | 60 -- .../input_club/whitefox/keymaps/kim-kim/keymap.c | 53 -- .../whitefox/keymaps/konstantin/keymap.c | 67 -- keyboards/input_club/whitefox/whitefox.c | 94 --- 31 files changed, 5795 deletions(-) delete mode 100644 keyboards/input_club/ergodox_infinity/config.h delete mode 100644 keyboards/input_club/ergodox_infinity/ergodox_infinity.c delete mode 100644 keyboards/input_club/ergodox_infinity/keymaps/default/keymap.c delete mode 100644 keyboards/input_club/ergodox_infinity/keymaps/dudeofawesome/keymap.c delete mode 100644 keyboards/input_club/ergodox_infinity/keymaps/halfkeyboard/keymap.c delete mode 100644 keyboards/input_club/ergodox_infinity/keymaps/input_club/keymap.c delete mode 100644 keyboards/input_club/ergodox_infinity/keymaps/narze/keymap.c delete mode 100644 keyboards/input_club/ergodox_infinity/keymaps/nordic_ergo/keymap.c delete mode 100644 keyboards/input_club/ergodox_infinity/keymaps/not-quite-neo/keymap.c delete mode 100644 keyboards/input_club/ergodox_infinity/keymaps/rjhilgefort/keymap.c delete mode 100644 keyboards/input_club/infinity60/keymaps/default/keymap.c delete mode 100755 keyboards/input_club/infinity60/keymaps/depariel/keymap.c delete mode 100644 keyboards/input_club/infinity60/keymaps/hasu/keymap.c delete mode 100644 keyboards/input_club/infinity60/keymaps/jpetermans/keymap.c delete mode 100644 keyboards/input_club/k_type/config.h delete mode 100644 keyboards/input_club/k_type/is31fl3733-dual.c delete mode 100644 keyboards/input_club/k_type/is31fl3733-dual.h delete mode 100644 keyboards/input_club/k_type/k_type-rgbdriver.c delete mode 100644 keyboards/input_club/k_type/k_type.c delete mode 100644 keyboards/input_club/k_type/keymaps/andrew-fahmy/config.h delete mode 100644 keyboards/input_club/k_type/keymaps/andrew-fahmy/keymap.c delete mode 100644 keyboards/input_club/k_type/keymaps/belak/keymap.c delete mode 100644 keyboards/input_club/k_type/keymaps/default/keymap.c delete mode 100644 keyboards/input_club/whitefox/config.h delete mode 100644 keyboards/input_club/whitefox/keymaps/billypython/keymap.c delete mode 100644 keyboards/input_club/whitefox/keymaps/default/keymap.c delete mode 100644 keyboards/input_club/whitefox/keymaps/dhertz/keymap.c delete mode 100644 keyboards/input_club/whitefox/keymaps/jetpacktuxedo/keymap.c delete mode 100644 keyboards/input_club/whitefox/keymaps/kim-kim/keymap.c delete mode 100644 keyboards/input_club/whitefox/keymaps/konstantin/keymap.c delete mode 100644 keyboards/input_club/whitefox/whitefox.c (limited to 'keyboards/input_club') diff --git a/keyboards/input_club/ergodox_infinity/config.h b/keyboards/input_club/ergodox_infinity/config.h deleted file mode 100644 index 19a777e615..0000000000 --- a/keyboards/input_club/ergodox_infinity/config.h +++ /dev/null @@ -1,147 +0,0 @@ -/* -Copyright 2015 Jun Wako - -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 . -*/ - -#pragma once - -#define MOUSEKEY_INTERVAL 20 -#define MOUSEKEY_DELAY 0 -#define MOUSEKEY_TIME_TO_MAX 60 -#define MOUSEKEY_MAX_SPEED 7 -#define MOUSEKEY_WHEEL_DELAY 0 - -#define TAPPING_TOGGLE 1 - -/* define if matrix has ghost */ -//#define MATRIX_HAS_GHOST - -#define TAPPING_TERM 200 -#define IGNORE_MOD_TAP_INTERRUPT // this makes it possible to do rolling combos (zx) with keys that convert to other keys on hold (z becomes ctrl when you hold it, and when this option isn't enabled, z rapidly followed by x actually sends Ctrl-x. That's bad.) - -/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ -#define LOCKING_SUPPORT_ENABLE -/* Locking resynchronize hack */ -#define LOCKING_RESYNC_ENABLE - -/* key combination for command */ -#define IS_COMMAND() ( \ - get_mods() == (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL)) || \ - get_mods() == (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT)) \ -) - -/* key matrix size */ -#define MATRIX_ROWS 18 -#define MATRIX_COLS 5 - -// For some reason, the rows are colums in the schematic, and vice versa -#define MATRIX_ROW_PINS { B2, B3, B18, B19, C0, C9, C10, C11, D0 } -#define MATRIX_COL_PINS { D1, D4, D5, D6, D7 } - -/* COL2ROW, ROW2COL */ -#define DIODE_DIRECTION ROW2COL - -/* Serial config (for communication between halves) */ -#define SERIAL_USART_DRIVER SD1 // Only true for the master half -#define SERIAL_USART_CONFIG { (SERIAL_USART_SPEED), } // Only field is speed -#define SERIAL_USART_FULL_DUPLEX - -/* number of backlight levels */ -#define BACKLIGHT_LEVELS 3 - -#define LED_BRIGHTNESS_LO 100 -#define LED_BRIGHTNESS_HI 255 - -/* LED matrix driver */ -#define LED_DRIVER_ADDR_1 0x74 -#define LED_DRIVER_COUNT 1 -#define LED_MATRIX_LED_COUNT 76 -#define LED_MATRIX_SPLIT { 38, 38 } -#define LED_DISABLE_WHEN_USB_SUSPENDED - -// LED Matrix Animation modes. Explicitly enabled -// For full list of effects, see: -// https://docs.qmk.fm/#/feature_led_matrix?id=led-matrix-effects -#define ENABLE_LED_MATRIX_ALPHAS_MODS -#define ENABLE_LED_MATRIX_BREATHING -#define ENABLE_LED_MATRIX_BAND -#define ENABLE_LED_MATRIX_BAND_PINWHEEL -#define ENABLE_LED_MATRIX_BAND_SPIRAL -#define ENABLE_LED_MATRIX_CYCLE_LEFT_RIGHT -#define ENABLE_LED_MATRIX_CYCLE_UP_DOWN -#define ENABLE_LED_MATRIX_CYCLE_OUT_IN -#define ENABLE_LED_MATRIX_DUAL_BEACON -#if defined(LED_MATRIX_KEYREACTIVE_ENABLED) -# define ENABLE_LED_MATRIX_SOLID_REACTIVE_SIMPLE -# define ENABLE_LED_MATRIX_SOLID_REACTIVE_WIDE -# define ENABLE_LED_MATRIX_SOLID_REACTIVE_MULTIWIDE -# define ENABLE_LED_MATRIX_SOLID_REACTIVE_CROSS -# define ENABLE_LED_MATRIX_SOLID_REACTIVE_MULTICROSS -# define ENABLE_LED_MATRIX_SOLID_REACTIVE_NEXUS -# define ENABLE_LED_MATRIX_SOLID_REACTIVE_MULTINEXUS -# define ENABLE_LED_MATRIX_SPLASH -# define ENABLE_LED_MATRIX_MULTISPLASH -#endif -#define ENABLE_LED_MATRIX_WAVE_LEFT_RIGHT -#define ENABLE_LED_MATRIX_WAVE_UP_DOWN - -/* i2c (for LED matrix) */ -#define I2C1_CLOCK_SPEED 400000 -#define I2C1_SCL_PAL_MODE PAL_MODE_ALTERNATIVE_2 -#define I2C1_SDA_PAL_MODE PAL_MODE_ALTERNATIVE_2 -#define I2C1_SCL_PIN B0 -#define I2C1_SDA_PIN B1 - -#ifdef ST7565_ENABLE -/* LCD driver */ -# define ST7565_A0_PIN C7 -# define ST7565_RST_PIN C8 -# define ST7565_SS_PIN C4 -# define ST7565_SPI_CLK_DIVISOR 2 -# define ST7565_CONTRAST 22 -# define ST7565_DISPLAY_WIDTH 128 -# define ST7565_DISPLAY_HEIGHT 32 - -/* SPI (for LCD) */ -# define SPI_DRIVER SPID1 -# define SPI_SCK_PIN C5 -# define SPI_SCK_PAL_MODE PAL_MODE_ALTERNATIVE_2 -# define SPI_MOSI_PIN C6 -# define SPI_MOSI_PAL_MODE PAL_MODE_ALTERNATIVE_2 -# define SPI_MISO_PIN A4 // Just an unused pin, the "normal" MISO pin (C7) is used for other things -# define SPI_MISO_PAL_MODE PAL_MODE_ALTERNATIVE_7 // Default for A4 -#endif - -/* define if matrix has ghost */ -//#define MATRIX_HAS_GHOST - -/* Set 0 if debouncing isn't needed */ -#define DEBOUNCE 5 - -/* - * Feature disable options - * These options are also useful to firmware size reduction. - */ - -/* disable debug print */ -//#define NO_DEBUG - -/* disable print */ -//#define NO_PRINT - -/* disable action features */ -//#define NO_ACTION_LAYER -//#define NO_ACTION_TAPPING -//#define NO_ACTION_ONESHOT diff --git a/keyboards/input_club/ergodox_infinity/ergodox_infinity.c b/keyboards/input_club/ergodox_infinity/ergodox_infinity.c deleted file mode 100644 index 6f7de7ff29..0000000000 --- a/keyboards/input_club/ergodox_infinity/ergodox_infinity.c +++ /dev/null @@ -1,363 +0,0 @@ -#include QMK_KEYBOARD_H -#include -#include -#include -#include "eeconfig.h" - -#define RED_PIN 1 -#define GREEN_PIN 2 -#define BLUE_PIN 3 -#define CHANNEL_RED FTM0->CHANNEL[0] -#define CHANNEL_GREEN FTM0->CHANNEL[1] -#define CHANNEL_BLUE FTM0->CHANNEL[2] - -#define RGB_PORT PORTC -#define RGB_PORT_GPIO GPIOC - -// Base FTM clock selection (72 MHz system clock) -// @ 0xFFFF period, 72 MHz / (0xFFFF * 2) = Actual period -// Higher pre-scalar will use the most power (also look the best) -// Pre-scalar calculations -// 0 - 72 MHz -> 549 Hz -// 1 - 36 MHz -> 275 Hz -// 2 - 18 MHz -> 137 Hz -// 3 - 9 MHz -> 69 Hz (Slightly visible flicker) -// 4 - 4 500 kHz -> 34 Hz (Visible flickering) -// 5 - 2 250 kHz -> 17 Hz -// 6 - 1 125 kHz -> 9 Hz -// 7 - 562 500 Hz -> 4 Hz -// Using a higher pre-scalar without flicker is possible but FTM0_MOD will need to be reduced -// Which will reduce the brightness range -#define PRESCALAR_DEFINE 0 -void lcd_backlight_hal_init(void) { - // Setup Backlight - SIM->SCGC6 |= SIM_SCGC6_FTM0; - FTM0->CNT = 0; // Reset counter - - // PWM Period - // 16-bit maximum - FTM0->MOD = 0xFFFF; - - // Set FTM to PWM output - Edge Aligned, Low-true pulses -#define CNSC_MODE FTM_SC_CPWMS | FTM_SC_PS(4) | FTM_SC_CLKS(0) - CHANNEL_RED.CnSC = CNSC_MODE; - CHANNEL_GREEN.CnSC = CNSC_MODE; - CHANNEL_BLUE.CnSC = CNSC_MODE; - - // System clock, /w prescalar setting - FTM0->SC = FTM_SC_CLKS(1) | FTM_SC_PS(PRESCALAR_DEFINE); - - CHANNEL_RED.CnV = 0; - CHANNEL_GREEN.CnV = 0; - CHANNEL_BLUE.CnV = 0; - - RGB_PORT_GPIO->PDDR |= (1 << RED_PIN); - RGB_PORT_GPIO->PDDR |= (1 << GREEN_PIN); - RGB_PORT_GPIO->PDDR |= (1 << BLUE_PIN); - -#define RGB_MODE PORTx_PCRn_SRE | PORTx_PCRn_DSE | PORTx_PCRn_MUX(4) - RGB_PORT->PCR[RED_PIN] = RGB_MODE; - RGB_PORT->PCR[GREEN_PIN] = RGB_MODE; - RGB_PORT->PCR[BLUE_PIN] = RGB_MODE; -} - -static uint16_t cie_lightness(uint16_t v) { - // The CIE 1931 formula for lightness - // Y = luminance (output) 0-1 - // L = lightness input 0 - 100 - - // Y = (L* / 902.3) if L* <= 8 - // Y = ((L* + 16) / 116)^3 if L* > 8 - - float l = 100.0f * (v / 65535.0f); - float y = 0.0f; - if (l <= 8.0f) { - y = l / 902.3; - } else { - y = ((l + 16.0f) / 116.0f); - y = y * y * y; - if (y > 1.0f) { - y = 1.0f; - } - } - return y * 65535.0f; -} - -void ergodox_infinity_lcd_color(uint16_t r, uint16_t g, uint16_t b) { - CHANNEL_RED.CnV = cie_lightness(r); - CHANNEL_GREEN.CnV = cie_lightness(g); - CHANNEL_BLUE.CnV = cie_lightness(b); -} - -__attribute__ ((weak)) void matrix_init_user(void) {} - -__attribute__ ((weak)) void matrix_scan_user(void) {} - - -void keyboard_pre_init_kb() { -#ifdef LED_MATRIX_ENABLE - // Turn on LED controller - setPinOutput(B16); - writePinHigh(B16); -#endif - // The backlight always has to be initialized, otherwise it will stay lit - lcd_backlight_hal_init(); -#ifdef ST7565_ENABLE - ergodox_infinity_lcd_color(UINT16_MAX / 2, UINT16_MAX / 2, UINT16_MAX / 2); -#endif - keyboard_pre_init_user(); -} - -void matrix_init_kb(void) { - // put your keyboard start-up code here - // runs once when the firmware starts up - -#ifdef LED_MATRIX_ENABLE - /* - * Since K20x is stuck with a 32 byte EEPROM (see tmk_core/common/chibios/eeprom_teensy.c), - * and neither led_matrix_eeconfig.speed or .flags fit in this boundary, just force their values to default on boot. - */ -# if !defined(LED_MATRIX_DEFAULT_SPD) -# define LED_MATRIX_DEFAULT_SPD UINT8_MAX / 2 -# endif - led_matrix_set_speed(LED_MATRIX_DEFAULT_SPD); - led_matrix_set_flags(LED_FLAG_ALL); -#endif - - matrix_init_user(); -} - -__attribute__ ((weak)) void ergodox_board_led_on(void) {} - -__attribute__ ((weak)) void ergodox_right_led_1_on(void) {} - -__attribute__ ((weak)) void ergodox_right_led_2_on(void) {} - -__attribute__ ((weak)) void ergodox_right_led_3_on(void) {} - -__attribute__ ((weak)) void ergodox_board_led_off(void) {} - -__attribute__ ((weak)) void ergodox_right_led_1_off(void) {} - -__attribute__ ((weak)) void ergodox_right_led_2_off(void) {} - -__attribute__ ((weak)) void ergodox_right_led_3_off(void) {} - -__attribute__ ((weak)) void ergodox_right_led_1_set(uint8_t n) {} - -__attribute__ ((weak)) void ergodox_right_led_2_set(uint8_t n) {} - -__attribute__ ((weak)) void ergodox_right_led_3_set(uint8_t n) {} - -#ifdef SWAP_HANDS_ENABLE -__attribute__ ((weak)) -const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { - {{0, 9}, {1, 9}, {2, 9}, {3, 9}, {4, 9}}, - {{0, 10}, {1, 10}, {2, 10}, {3, 10}, {4, 10}}, - {{0, 11}, {1, 11}, {2, 11}, {3, 11}, {4, 11}}, - {{0, 12}, {1, 12}, {2, 12}, {3, 12}, {4, 12}}, - {{0, 13}, {1, 13}, {2, 13}, {3, 13}, {4, 13}}, - {{0, 14}, {1, 14}, {2, 14}, {3, 14}, {4, 14}}, - {{0, 15}, {1, 15}, {2, 15}, {3, 15}, {4, 15}}, - {{0, 16}, {1, 16}, {2, 16}, {3, 16}, {4, 16}}, - {{0, 17}, {1, 17}, {2, 17}, {3, 17}, {4, 17}}, - {{0, 0}, {1, 0}, {2, 0}, {3, 0}, {4, 0}}, - {{0, 1}, {1, 1}, {2, 1}, {3, 1}, {4, 1}}, - {{0, 2}, {1, 2}, {2, 2}, {3, 2}, {4, 2}}, - {{0, 3}, {1, 3}, {2, 3}, {3, 3}, {4, 3}}, - {{0, 4}, {1, 4}, {2, 4}, {3, 4}, {4, 4}}, - {{0, 5}, {1, 5}, {2, 5}, {3, 5}, {4, 5}}, - {{0, 6}, {1, 6}, {2, 6}, {3, 6}, {4, 6}}, - {{0, 7}, {1, 7}, {2, 7}, {3, 7}, {4, 7}}, - {{0, 8}, {1, 8}, {2, 8}, {3, 8}, {4, 8}}, -}; -#endif - -#ifdef LED_MATRIX_ENABLE -const is31_led PROGMEM g_is31_leds[LED_MATRIX_LED_COUNT] = { -// The numbers in the comments are the led numbers DXX on the PCB -/* Refer to IS31 manual for these locations - * driver - * | LED address - * | | */ -// Left half -// 45 44 43 42 41 40 39 - { 0, C2_2 }, { 0, C1_2 }, { 0, C5_1 }, { 0, C4_1 }, { 0, C3_1 }, { 0, C2_1 }, { 0, C1_1 }, -// 52 51 50 49 48 47 46 - { 0, C4_3 }, { 0, C3_3 }, { 0, C2_3 }, { 0, C1_3 }, { 0, C5_2 }, { 0, C4_2 }, { 0, C3_2 }, -// 58 57 56 55 54 53 - { 0, C5_4 }, { 0, C4_4 }, { 0, C3_4 }, { 0, C2_4 }, { 0, C1_4 }, { 0, C5_3 }, -// 67 66 65 64 63 62 61 - { 0, C4_6 }, { 0, C3_6 }, { 0, C2_6 }, { 0, C1_6 }, { 0, C5_5 }, { 0, C4_5 }, { 0, C3_5 }, -// 76 75 74 73 72 - { 0, C4_8 }, { 0, C3_8 }, { 0, C2_8 }, { 0, C1_8 }, { 0, C4_7 }, -// 60 59 - { 0, C2_5 }, { 0, C1_5 }, -// 68 - { 0, C5_6 }, -// 71 70 69 - { 0, C3_7 }, { 0, C2_7 }, { 0, C1_7 }, -// Right half (mirrored) -// Due to how LED_MATRIX_SPLIT is implemented, only the first half of g_is31_leds is actually used. -// Luckily, the right half has the same LED pinouts, just mirrored. -// 45 44 43 42 41 40 39 - { 0, C2_2 }, { 0, C1_2 }, { 0, C5_1 }, { 0, C4_1 }, { 0, C3_1 }, { 0, C2_1 }, { 0, C1_1 }, -// 52 51 50 49 48 47 46 - { 0, C4_3 }, { 0, C3_3 }, { 0, C2_3 }, { 0, C1_3 }, { 0, C5_2 }, { 0, C4_2 }, { 0, C3_2 }, -// 58 57 56 55 54 53 - { 0, C5_4 }, { 0, C4_4 }, { 0, C3_4 }, { 0, C2_4 }, { 0, C1_4 }, { 0, C5_3 }, -// 67 66 65 64 63 62 61 - { 0, C4_6 }, { 0, C3_6 }, { 0, C2_6 }, { 0, C1_6 }, { 0, C5_5 }, { 0, C4_5 }, { 0, C3_5 }, -// 76 75 74 73 72 - { 0, C4_8 }, { 0, C3_8 }, { 0, C2_8 }, { 0, C1_8 }, { 0, C4_7 }, -// 60 59 - { 0, C2_5 }, { 0, C1_5 }, -// 68 - { 0, C5_6 }, -// 71 70 69 - { 0, C3_7 }, { 0, C2_7 }, { 0, C1_7 }, -}; - -led_config_t g_led_config = { - { - // Key Matrix to LED Index - // Left half - { NO_LED, NO_LED, NO_LED, 33, 34 }, - { NO_LED, NO_LED, NO_LED, 32, 37 }, - { 6, 13, NO_LED, 26, 36 }, - { 5, 12, 19, 25, 35 }, - { 4, 11, 18, 24, 31 }, - { 3, 10, 17, 23, 30 }, - { 2, 9, 16, 22, 29 }, - { 1, 8, 15, 21, 28 }, - { 0, 7, 14, 20, 27 }, - // Right half - { NO_LED, NO_LED, NO_LED, 71, 72 }, - { NO_LED, NO_LED, NO_LED, 70, 75 }, - { 44, 51, NO_LED, 64, 74 }, - { 43, 50, 57, 63, 73 }, - { 42, 49, 56, 62, 69 }, - { 41, 48, 55, 61, 68 }, - { 40, 47, 54, 60, 67 }, - { 39, 46, 53, 59, 66 }, - { 38, 45, 52, 58, 65 }, - }, { - // LED Index to Physical Position (assumes a reasonable gap between halves) - // Left half - { 0, 3 }, { 15, 3 }, { 27, 1 }, { 39, 0 }, { 51, 1 }, { 63, 2 }, { 75, 2 }, - { 0, 13 }, { 15, 13 }, { 27, 11 }, { 39, 10 }, { 51, 11 }, { 63, 12 }, { 78, 17 }, - { 0, 23 }, { 15, 23 }, { 27, 21 }, { 39, 20 }, { 51, 21 }, { 63, 22 }, - { 0, 33 }, { 15, 33 }, { 27, 31 }, { 39, 30 }, { 51, 31 }, { 63, 32 }, { 78, 32 }, - { 4, 43 }, { 15, 43 }, { 27, 41 }, { 39, 40 }, { 51, 41 }, - { 89, 41 }, { 100, 46 }, - { 95, 55 }, - { 72, 54 }, { 83, 59 }, { 90, 64 }, - // Right half (mirrored) - { 224, 3 }, { 209, 3 }, { 197, 1 }, { 185, 0 }, { 173, 1 }, { 161, 2 }, { 149, 2 }, - { 224, 13 }, { 209, 13 }, { 197, 11 }, { 185, 10 }, { 173, 11 }, { 161, 12 }, { 146, 17 }, - { 224, 23 }, { 209, 23 }, { 197, 21 }, { 185, 20 }, { 173, 21 }, { 161, 22 }, - { 224, 33 }, { 209, 33 }, { 197, 31 }, { 185, 30 }, { 173, 31 }, { 161, 32 }, { 146, 32 }, - { 220, 43 }, { 209, 43 }, { 197, 41 }, { 185, 40 }, { 173, 41 }, - { 135, 41 }, { 124, 46 }, - { 129, 55 }, - { 152, 54 }, { 141, 59 }, { 134, 64 }, - }, { - // LED Index to Flag - // Left half - 1, 4, 4, 4, 4, 4, 1, - 1, 4, 4, 4, 4, 4, 1, - 1, 4, 4, 4, 4, 4, - 1, 4, 4, 4, 4, 4, 1, - 1, 1, 1, 1, 1, - 1, 1, - 1, - 1, 1, 1, - // Right half (mirrored) - 1, 4, 4, 4, 4, 4, 1, - 1, 4, 4, 4, 4, 4, 1, - 1, 4, 4, 4, 4, 4, - 1, 4, 4, 4, 4, 4, 1, - 1, 1, 1, 1, 1, - 1, 1, - 1, - 1, 1, 1, - } -}; -#endif - -#ifdef ST7565_ENABLE -__attribute__((weak)) void st7565_on_user(void) { - ergodox_infinity_lcd_color(UINT16_MAX / 2, UINT16_MAX / 2, UINT16_MAX / 2); -} - -__attribute__((weak)) void st7565_off_user(void) { - ergodox_infinity_lcd_color(0, 0, 0); -} - -static void format_layer_bitmap_string(char* buffer, uint8_t offset) { - for (int i = 0; i < 16 && i + offset < MAX_LAYER; i++) { - if (i == 0 || i == 4 || i == 8 || i == 12) { - *buffer = ' '; - ++buffer; - } - - uint8_t layer = i + offset; - if (layer_state_cmp(default_layer_state, layer)) { - *buffer = 'D'; - } else if (layer_state_is(layer)) { - *buffer = '1'; - } else { - *buffer = '_'; - } - ++buffer; - } - *buffer = 0; -} - -__attribute__((weak)) void st7565_task_user(void) { - if (is_keyboard_master()) { - // Draw led and layer status - led_t leds = host_keyboard_led_state(); - if(leds.num_lock) { st7565_write("Num ", false); } - if(leds.caps_lock) { st7565_write("Cap ", false); } - if(leds.scroll_lock) { st7565_write("Scrl ", false); } - if(leds.compose) { st7565_write("Com ", false); } - if(leds.kana) { st7565_write("Kana", false); } - st7565_advance_page(true); - - char layer_buffer[16 + 5]; // 3 spaces and one null terminator - st7565_set_cursor(0, 1); - format_layer_bitmap_string(layer_buffer, 0); - st7565_write_ln(layer_buffer, false); - format_layer_bitmap_string(layer_buffer, 16); - st7565_write_ln(layer_buffer, false); - st7565_write_ln(" 1=On D=Default", false); - } else { - // Draw logo - static const char 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, 0x00 - }; - - st7565_write(qmk_logo, false); - st7565_write(" Infinity Ergodox ", false); - } -} -#endif - -#if defined(SPLIT_KEYBOARD) -void usart_master_init(SerialDriver **driver) { - PORTA->PCR[1] = PORTx_PCRn_PE | PORTx_PCRn_PS | PORTx_PCRn_PFE | PORTx_PCRn_MUX(2); - PORTA->PCR[2] = PORTx_PCRn_DSE | PORTx_PCRn_SRE | PORTx_PCRn_MUX(2); - - // driver is set to SD1 in config.h -} - -void usart_slave_init(SerialDriver **driver) { - PORTE->PCR[0] = PORTx_PCRn_PE | PORTx_PCRn_PS | PORTx_PCRn_PFE | PORTx_PCRn_MUX(3); - PORTE->PCR[1] = PORTx_PCRn_DSE | PORTx_PCRn_SRE | PORTx_PCRn_MUX(3); - - *driver = &SD2; -} -#endif diff --git a/keyboards/input_club/ergodox_infinity/keymaps/default/keymap.c b/keyboards/input_club/ergodox_infinity/keymaps/default/keymap.c deleted file mode 100644 index b84f83c3ad..0000000000 --- a/keyboards/input_club/ergodox_infinity/keymaps/default/keymap.c +++ /dev/null @@ -1,189 +0,0 @@ -#include QMK_KEYBOARD_H -#include "version.h" - -enum custom_layers { - BASE, // default layer - SYMB, // symbols - MDIA, // media keys -}; - - -enum custom_keycodes { - PLACEHOLDER = SAFE_RANGE, // can always be here - VRSN, - RGB_SLD -}; - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { -/* Keymap 0: Basic layer - * - * ,--------------------------------------------------. ,--------------------------------------------------. - * | = | 1 | 2 | 3 | 4 | 5 | LEFT | | RIGHT| 6 | 7 | 8 | 9 | 0 | - | - * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------| - * | Del | Q | W | E | R | T | L1 | | L1 | Y | U | I | O | P | \ | - * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| - * | BkSp | A | S | D | F | G |------| |------| H | J | K | L |; / L2|' / Cmd | - * |--------+------+------+------+------+------| Hyper| | Meh |------+------+------+------+------+--------| - * | LShift |Z/Ctrl| X | C | V | B | | | | N | M | , | . |//Ctrl| RShift | - * `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------' - * |Grv/L1| '" |AltShf| Left | Right| | Up | Down | [ | ] | ~L1 | - * `----------------------------------' `----------------------------------' - * ,-------------. ,-------------. - * | App | LGui | | Alt |Ctrl/Esc| - * ,------|------|------| |------+--------+------. - * | | | Home | | PgUp | | | - * | Space|Backsp|------| |------| Tab |Enter | - * | |ace | End | | PgDn | | | - * `--------------------' `----------------------' - */ -// If it accepts an argument (i.e, is a function), it doesn't need KC_. -// Otherwise, it needs KC_* -[BASE] = LAYOUT_ergodox( // layer 0 : default - // left hand - KC_EQL, KC_1, KC_2, KC_3, KC_4, KC_5, KC_LEFT, - KC_DEL, KC_Q, KC_W, KC_E, KC_R, KC_T, TG(SYMB), - KC_BSPC, KC_A, KC_S, KC_D, KC_F, KC_G, - KC_LSFT, CTL_T(KC_Z), KC_X, KC_C, KC_V, KC_B, ALL_T(KC_NO), - LT(SYMB,KC_GRV),KC_QUOT, LALT(KC_LSFT), KC_LEFT,KC_RGHT, - ALT_T(KC_APP), KC_LGUI, - KC_HOME, - KC_SPC,KC_BSPC,KC_END, - // right hand - KC_RGHT, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, - TG(SYMB), KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, - KC_H, KC_J, KC_K, KC_L, LT(MDIA, KC_SCLN),GUI_T(KC_QUOT), - MEH_T(KC_NO),KC_N, KC_M, KC_COMM,KC_DOT, CTL_T(KC_SLSH), KC_RSFT, - KC_UP, KC_DOWN,KC_LBRC,KC_RBRC, TT(SYMB), - KC_LALT, CTL_T(KC_ESC), - KC_PGUP, - KC_PGDN,KC_TAB, KC_ENT - ), -/* Keymap 1: Symbol Layer - * - * ,---------------------------------------------------. ,--------------------------------------------------. - * |Version | F1 | F2 | F3 | F4 | F5 | | | | F6 | F7 | F8 | F9 | F10 | F11 | - * |---------+------+------+------+------+------+------| |------+------+------+------+------+------+--------| - * | | ! | @ | { | } | | | | | | Up | 7 | 8 | 9 | * | F12 | - * |---------+------+------+------+------+------| | | |------+------+------+------+------+--------| - * | | # | $ | ( | ) | ` |------| |------| Down | 4 | 5 | 6 | + | | - * |---------+------+------+------+------+------| | | |------+------+------+------+------+--------| - * | | % | ^ | [ | ] | ~ | | | | & | 1 | 2 | 3 | \ | | - * `---------+------+------+------+------+-------------' `-------------+------+------+------+------+--------' - * |EE_CLR | | | | | | | . | 0 | = | | - * `-----------------------------------' `----------------------------------' - * ,-------------. ,-------------. - * |Animat| | |Toggle|Solid | - * ,------|------|------| |------+------+------. - * |Bright|Bright| | | |Hue- |Hue+ | - * |ness- |ness+ |------| |------| | | - * | | | | | | | | - * `--------------------' `--------------------' - */ -// SYMBOLS -[SYMB] = LAYOUT_ergodox( - // left hand - VRSN, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_TRNS, - KC_TRNS,KC_EXLM,KC_AT, KC_LCBR,KC_RCBR,KC_PIPE,KC_TRNS, - KC_TRNS,KC_HASH,KC_DLR, KC_LPRN,KC_RPRN,KC_GRV, - KC_TRNS,KC_PERC,KC_CIRC,KC_LBRC,KC_RBRC,KC_TILD,KC_TRNS, - EE_CLR, KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, - RGB_MOD,KC_TRNS, - KC_TRNS, - RGB_VAD,RGB_VAI,KC_TRNS, - // right hand - KC_TRNS, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, - KC_TRNS, KC_UP, KC_7, KC_8, KC_9, KC_ASTR, KC_F12, - KC_DOWN, KC_4, KC_5, KC_6, KC_PLUS, KC_TRNS, - KC_TRNS, KC_AMPR, KC_1, KC_2, KC_3, KC_BSLS, KC_TRNS, - KC_TRNS,KC_DOT, KC_0, KC_EQL, KC_TRNS, - RGB_TOG, RGB_SLD, - KC_TRNS, - KC_TRNS, RGB_HUD, RGB_HUI -), -/* Keymap 2: Media and mouse keys - * - * ,--------------------------------------------------. ,--------------------------------------------------. - * | | | | | | | | | | | | | | | | - * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------| - * | | | | MsUp | | | | | | | | | | | | - * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| - * | | |MsLeft|MsDown|MsRght| |------| |------| | | | | | Play | - * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| - * | | | | | | | | | | | | Prev | Next | | | - * `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------' - * | | | | Lclk | Rclk | |VolUp |VolDn | Mute | | | - * `----------------------------------' `----------------------------------' - * ,-------------. ,-------------. - * | | | | | | - * ,------|------|------| |------+------+------. - * | | | | | | |Brwser| - * | | |------| |------| |Back | - * | | | | | | | | - * `--------------------' `--------------------' - */ -// MEDIA AND MOUSE -[MDIA] = LAYOUT_ergodox( - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_MS_U, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_MS_L, KC_MS_D, KC_MS_R, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_BTN1, KC_BTN2, - KC_TRNS, KC_TRNS, - KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, - // right hand - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPLY, - KC_TRNS, KC_TRNS, KC_TRNS, KC_MPRV, KC_MNXT, KC_TRNS, KC_TRNS, - KC_VOLU, KC_VOLD, KC_MUTE, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, - KC_TRNS, - KC_TRNS, KC_TRNS, KC_WBAK -), -}; - -bool process_record_user(uint16_t keycode, keyrecord_t *record) { - switch (keycode) { - // dynamically generate these. - case VRSN: - if (record->event.pressed) { - SEND_STRING (QMK_KEYBOARD "/" QMK_KEYMAP " @ " QMK_VERSION); - } - return false; - break; - case RGB_SLD: - if (record->event.pressed) { - #ifdef RGBLIGHT_ENABLE - rgblight_mode(1); - #endif - } - return false; - break; - } - return true; -} - -// Runs constantly in the background, in a loop. -void matrix_scan_user(void) { - - uint8_t layer = get_highest_layer(layer_state); - - ergodox_board_led_off(); - ergodox_right_led_1_off(); - ergodox_right_led_2_off(); - ergodox_right_led_3_off(); - switch (layer) { - // TODO: Make this relevant to the ErgoDox EZ. - case 1: - ergodox_right_led_1_on(); - break; - case 2: - ergodox_right_led_2_on(); - break; - default: - // none - break; - } - -} diff --git a/keyboards/input_club/ergodox_infinity/keymaps/dudeofawesome/keymap.c b/keyboards/input_club/ergodox_infinity/keymaps/dudeofawesome/keymap.c deleted file mode 100644 index ebdedcbe6b..0000000000 --- a/keyboards/input_club/ergodox_infinity/keymaps/dudeofawesome/keymap.c +++ /dev/null @@ -1,551 +0,0 @@ -#include QMK_KEYBOARD_H -#include "version.h" -#include "layers.h" - -enum custom_keycodes { - QWERTY = SAFE_RANGE, - WORKMAN, - DVORAK, - COLEMAK, - LOWER, - RAISE, - GAME, - MOUSE, - EPRM, - VRSN, - RGB_SLD, -}; - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { -/* Keymap 0: Basic QWERTY layer - * - * ,---------------------------------------------. ,---------------------------------------------. - * | ` | 1 | 2 | 3 | 4 | 5 | Esc | | Esc | 6 | 7 | 8 | 9 | 0 | Del | - * |--------+-----+-----+-----+-----+------------| |------+-----+-----+-----+-----+-----+--------| - * | Tab | Q | W | E | R | T | [{ | | ]} | Y | U | I | O | P | BSPC | - * |--------+-----+-----+-----+-----+-----| | | |-----+-----+-----+-----+-----+--------| - * | ESC | A | S | D | F | G |------| |------| H | J | K | L | ; | ' | - * |--------+-----+-----+-----+-----+-----| | | |-----+-----+-----+-----+-----+--------| - * | LShift | Z | X | C | V | B | | | | N | M | , | . | / | Enter | - * `--------+-----+-----+-----+-----+------------' `------------+-----+-----+-----+-----+--------' - * | Num |Ctrl | Alt |LGUI |Lower| |Raise|Left |Down | Up |Right | - * `------------------------------' `------------------------------' - * ,------------. ,------------. - * |Play | | | |Play | - * ,-----|-----|------| |------+-----+-----. - * | | | Alt | | Alt | | | - * |Space|LOWER|------| |------|RAISE|Space| - * | | | LGUI | | LGUI | | | - * `------------------' `------------------' - */ -[_QWERTY] = LAYOUT_ergodox( - // left hand - KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_ESC, - KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_LBRC, - KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, - KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, _______, - TT(_NUM), KC_LCTL, KC_LALT, KC_LGUI, LOWER, - - KC_MPLY, _______, - KC_LALT, - KC_SPACE, LOWER, KC_LGUI, - - // right hand - KC_ESC, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, - KC_RBRC, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, - KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOTE, - _______, KC_N, KC_M, KC_COMM, KC_DOT, LT(_MOUSE, KC_SLSH), RSFT_T(KC_ENT), - RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, - - _______, KC_MPLY, - KC_LALT, - KC_LGUI, RAISE, KC_SPACE -), - -/* Keymap 0: Basic Workman layer - * - * ,---------------------------------------------. ,--------------------------------------------. - * | ` | 1 | 2 | 3 | 4 | 5 | Esc | | Esc | 6 | 7 | 8 | 9 | 0 | Del | - * |--------+-----+-----+-----+-----+------------| |------+-----+-----+-----+-----+-----+--------| - * | Tab | Q | D | R | W | B | [{ | | ]} | J | F | U | P | ; | BSPC | - * |--------+-----+-----+-----+-----+-----| | | |-----+-----+-----+-----+-----+--------| - * | ESC | A | S | H | T | G |------| |------| Y | N | E | O | I | ' | - * |--------+-----+-----+-----+-----+-----| | | |-----+-----+-----+-----+-----+--------| - * | LShift | Z | X | M | C | V | | | | K | L | , | . | / | Enter | - * `--------+-----+-----+-----+-----+------------' `------------+-----+-----+-----+-----+--------' - * | Num |Ctrl | Alt |LGUI |Lower| |Raise|Left |Down | Up |Right | - * `------------------------------' `------------------------------' - * ,------------. ,------------. - * |Play | | | |Play | - * ,-----|-----|------| |------+-----+-----. - * | | | Alt | | Alt | | | - * |Space|LOWER|------| |------|RAISE|Space| - * | | | LGUI | | LGUI | | | - * `------------------' `------------------' - */ -[_WORKMAN] = LAYOUT_ergodox( - // left hand - KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_ESC, - KC_TAB, KC_Q, KC_D, KC_R, KC_W, KC_B, KC_LBRC, - KC_ESC, KC_A, KC_S, KC_H, KC_T, KC_G, - KC_LSFT, KC_Z, KC_X, KC_M, KC_C, KC_V, _______, - TT(_NUM), KC_LCTL, KC_LALT, KC_LGUI, LOWER, - - KC_MPLY, _______, - KC_LALT, - KC_SPACE, LOWER, KC_LGUI, - - // right hand - KC_ESC, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, - KC_RBRC, KC_J, KC_F, KC_U, KC_P, KC_SCLN, KC_BSPC, - KC_Y, KC_N, KC_E, KC_O, KC_I, KC_QUOTE, - _______, KC_K, KC_L, KC_COMM, KC_DOT, LT(_MOUSE, KC_SLSH), RSFT_T(KC_ENT), - RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, - - _______, KC_MPLY, - KC_LALT, - KC_LGUI, RAISE, KC_SPACE -), - -/* Keymap 0: Basic Dvorak layer - * - * ,---------------------------------------------. ,--------------------------------------------. - * | ` | 1 | 2 | 3 | 4 | 5 | Esc | | Esc | 6 | 7 | 8 | 9 | 0 | Del | - * |--------+-----+-----+-----+-----+------------| |------+-----+-----+-----+-----+-----+--------| - * | Tab | ' | , | . | P | Y | [{ | | ]} | F | G | C | R | L | BSPC | - * |--------+-----+-----+-----+-----+-----| | | |-----+-----+-----+-----+-----+--------| - * | ESC | A | O | E | U | I |------| |------| D | H | T | N | S | / | - * |--------+-----+-----+-----+-----+-----| | | |-----+-----+-----+-----+-----+--------| - * | LShift | ; | Q | J | K | X | | | | B | M | W | V | Z | Enter | - * `--------+-----+-----+-----+-----+------------' `------------+-----+-----+-----+-----+--------' - * | Num |Ctrl | Alt |LGUI |Lower| |Raise|Left |Down | Up |Right | - * `------------------------------' `------------------------------' - * ,------------. ,------------. - * |Play | | | |Play | - * ,-----|-----|------| |------+-----+-----. - * | | | Alt | | Alt | | | - * |Space|LOWER|------| |------|RAISE|Space| - * | | | LGUI | | LGUI | | | - * `------------------' `------------------' - */ -[_DVORAK] = LAYOUT_ergodox( - // left hand - KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_ESC, - KC_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_LBRC, - KC_ESC, KC_A, KC_O, KC_E, KC_U, KC_I, - KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, _______, - TT(_NUM), KC_LCTL, KC_LALT, KC_LGUI, LOWER, - - KC_MPLY, _______, - KC_LALT, - KC_SPACE, LOWER, KC_LGUI, - - // right hand - KC_ESC, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, - KC_RBRC, KC_F, KC_G, KC_C, KC_R, KC_L, KC_BSPC, - KC_D, KC_H, KC_T, KC_N, KC_S, LT(MOUSE, KC_SLSH), - _______, KC_B, KC_M, KC_W, KC_V, KC_Z, RSFT_T(KC_ENT), - RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, - - _______, KC_MPLY, - KC_LALT, - KC_LGUI, RAISE, KC_SPACE -), - -/* Keymap 0: Basic Colemak layer - * - * ,---------------------------------------------. ,--------------------------------------------. - * | ` | 1 | 2 | 3 | 4 | 5 | Esc | | Esc | 6 | 7 | 8 | 9 | 0 | Del | - * |--------+-----+-----+-----+-----+------------| |------+-----+-----+-----+-----+-----+--------| - * | Tab | Q | W | F | P | G | [{ | | ]} | J | L | U | Y | ; | BSPC | - * |--------+-----+-----+-----+-----+-----| | | |-----+-----+-----+-----+-----+--------| - * | ESC | A | R | S | T | D |------| |------| H | N | E | I | O | ' | - * |--------+-----+-----+-----+-----+-----| | | |-----+-----+-----+-----+-----+--------| - * | LShift | Z | X | C | V | B | | | | K | M | , | . | / | Enter | - * `--------+-----+-----+-----+-----+------------' `------------+-----+-----+-----+-----+--------' - * | Num |Ctrl | Alt |LGUI |Lower| |Raise|Left |Down | Up |Right | - * `------------------------------' `------------------------------' - * ,------------. ,------------. - * |Play | | | |Play | - * ,-----|-----|------| |------+-----+-----. - * | | | Alt | | Alt | | | - * |Space|LOWER|------| |------|RAISE|Space| - * | | | LGUI | | LGUI | | | - * `------------------' `------------------' - */ -[_COLEMAK] = LAYOUT_ergodox( - // left hand - KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_ESC, - KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_LBRC, - KC_ESC, KC_A, KC_R, KC_S, KC_T, KC_D, - KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, _______, - TT(_NUM), KC_LCTL, KC_LALT, KC_LGUI, LOWER, - - KC_MPLY, _______, - KC_LALT, - KC_SPACE, LOWER, KC_LGUI, - - // right hand - KC_ESC, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, - KC_RBRC, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC, - KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOTE, - _______, KC_K, KC_M, KC_COMM, KC_DOT, LT(_MOUSE, KC_SLSH), RSFT_T(KC_ENT), - RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, - - _______, KC_MPLY, - KC_LALT, - KC_LGUI, RAISE, KC_SPACE -), - -/* Lower - * - * ,---------------------------------------------------. ,--------------------------------------------------. - * | Version | F1 | F2 | F3 | F4 | F5 | F11 | | F12 | F6 | F7 | F8 | F9 | F10 | | - * |---------+------+------+------+------+------+------| |------+------+------+------+------+------+--------| - * | ~ | ! | @ | # | $ | % | F6 | | F5 | ^ | & | * | ( | ) | | - * |---------+------+------+------+------+------| | | |------+------+------+------+------+--------| - * | Del | F1 | F2 | F3 | F4 | F5 |------| |------| F6 | _ | + | { | } | | | - * |---------+------+------+------+------+------| F12 | | F11 |------+------+------+------+------+--------| - * | | F7 | F8 | F9 | F10 | F11 | | | | F12 |ISO ~ |ISO | | Home | End | | - * `---------+------+------+------+------+-------------' `-------------+------+------+------+------+--------' - * | | | | | | | | Play | Vol- | Vol+ | Next | - * `-----------------------------------' `----------------------------------' - * ,-------------. ,-------------. - * | | | | | | - * ,------|------|------| |------+------+------. - * | | | | | | | | - * | | |------| |------| | | - * | | | | | | | | - * `--------------------' `--------------------' - */ -[_LOWER] = LAYOUT_ergodox( - // left hand - VRSN, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F11, - KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_F6, - KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, - _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, - _______, _______, _______, _______, _______, - - _______, _______, - _______, - _______, _______, _______, - - // right hand - KC_F12, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, - KC_F5, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______, - KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, - KC_F11, KC_F12, S(KC_NUHS), S(KC_NUBS), KC_HOME, KC_END, _______, - _______, KC_MPLY, KC_VOLD, KC_VOLU, KC_MNXT, - - _______, _______, - _______, - _______, _______, _______ -), - -/* Raise - * - * ,---------------------------------------------------. ,--------------------------------------------------. - * | Version | F1 | F2 | F3 | F4 | F5 | F11 | | F12 | F6 | F7 | F8 | F9 | F10 | F11 | - * |---------+------+------+------+------+------+------| |------+------+------+------+------+------+--------| - * | ` | 1 | 2 | 3 | 4 | 5 | F6 | | F5 | 6 | 7 | 8 | 9 | 0 | | - * |---------+------+------+------+------+------| | | |------+------+------+------+------+--------| - * | Del | F1 | F2 | F3 | F4 | F5 |------| |------| F6 | - | = | [ | ] | \ | - * |---------+------+------+------+------+------| F12 | | F11 |------+------+------+------+------+--------| - * | | F7 | F8 | F9 | F10 | F11 | | | | F12 |ISO # |ISO / |Pg Up |Pg Dn | | - * `---------+------+------+------+------+-------------' `-------------+------+------+------+------+--------' - * | | | | | | | | Play | Vol- | Vol+ | Next | - * `-----------------------------------' `----------------------------------' - * ,-------------. ,-------------. - * |Animat| | |Toggle|Solid | - * ,------|------|------| |------+------+------. - * |Bright|Bright| | | |Hue- |Hue+ | - * |ness- |ness+ |------| |------| | | - * | | | | | | | | - * `--------------------' `--------------------' - */ -[_RAISE] = LAYOUT_ergodox( - // left hand - VRSN, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F11, - KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_F6, - KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, - _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, - _______, _______, _______, _______, _______, - - _______, _______, - _______, - _______, _______, _______, - - // right hand - KC_F12, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, - KC_F5, KC_6, KC_7, KC_8, KC_9, KC_0, _______, - KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, - KC_F11, KC_F12, KC_NUHS, KC_NUBS, KC_PGUP, KC_PGDN, _______, - _______, KC_MPLY, KC_VOLD, KC_VOLU, KC_MNXT, - - _______, _______, - _______, - _______, _______, _______ -), - -/* Adjust - * - * ,--------------------------------------------------. ,--------------------------------------------------. - * |Version | | | | | | | | | | | | | | | - * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------| - * | |Reset |Debug | | | | | | | |TRM on|TRMoff| | | Del | - * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| - * | CPSLCK | | | | |AG Nrm|------| |------|AG Swp|QWERTY|Wrkman|Dvorak|Colmak| | - * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| - * | | | | | | | | | | | | Prev | Next | | | - * `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------' - * | | | | | | |VolUp |VolDn | Mute | | | - * `----------------------------------' `----------------------------------' - * ,-------------. ,-------------. - * | | | | | | - * ,------|------|------| |------+------+------. - * | | | | | | | | - * | | |------| |------| | | - * | | | | | | | | - * `--------------------' `--------------------' - */ -[_ADJUST] = LAYOUT_ergodox( - // left hand - VRSN, _______, _______, _______, _______, _______, _______, - _______, QK_BOOT, DB_TOGG, BL_TOGG, BL_STEP, _______, _______, - KC_CAPS, _______, _______, _______, _______, AG_NORM, - _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, - - _______, _______, - _______, - _______, _______, _______, - - // right hand - _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, KC_DEL, - AG_SWAP, QWERTY, WORKMAN, DVORAK, COLEMAK, _______, - _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, - - _______, _______, - _______, - _______, _______, _______ -), - -/* Keymap 2: Media and mouse keys - * - * ,--------------------------------------------------. ,--------------------------------------------------. - * | | | | | | | | | | | | | | | | - * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------| - * | | | Lclk | MsUp | Rclk |Wh Up | | | | | | | | | | - * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| - * | | |MsLeft|MsDown|MsRght|Wh Dn |------| |------| | | | | | Play | - * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| - * | | | | | | | | | | | | Prev | Next | | | - * `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------' - * | | | | | | |VolUp |VolDn | Mute | | | - * `----------------------------------' `----------------------------------' - * ,-------------. ,-------------. - * | | | | | | - * ,------|------|------| |------+------+------. - * | | | | | |Brwser|Brwser| - * | Lclk | Rclk |------| |------|Back |Fwd | - * | | | | | | | | - * `--------------------' `--------------------' - */ -// MOUSE -[_MOUSE] = LAYOUT_ergodox( - // left hand - _______, _______, _______, _______, _______, _______, _______, - _______, _______, KC_BTN2, KC_MS_U, KC_BTN1, KC_WH_D, _______, - _______, _______, KC_MS_L, KC_MS_D, KC_MS_R, KC_WH_U, - _______, _______, KC_WH_L, KC_BTN3, KC_WH_R, _______, TO(_GAME), - _______, _______, _______, _______, _______, - - _______, _______, - KC_WH_D, - KC_BTN1, KC_BTN2, KC_WH_U, - - // right hand - _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, KC_MPLY, - TO(_GAME), _______, _______, KC_MPRV, KC_MNXT, _______, _______, - KC_VOLU, KC_VOLD, KC_MUTE, _______, _______, - - _______, _______, - _______, - _______, KC_WBAK, KC_WFWD -), - -/* Keymap 2: GAME - * - * ,--------------------------------------------------. ,--------------------------------------------------. - * | | | | | | | | | | | | | | | | - * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------| - * | | | Lclk | MsUp | Rclk | | | | | | | | | | | - * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| - * | | |MsLeft|MsDown|MsRght| |------| |------| | | | | | Play | - * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| - * | | | | | | | | | | | | Prev | Next | | | - * `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------' - * | | | | | | |VolUp |VolDn | Mute | | | - * `----------------------------------' `----------------------------------' - * ,-------------. ,-------------. - * | | | | | | - * ,------|------|------| |------+------+------. - * | | | | | |Brwser|Brwser| - * | Lclk | Rclk |------| |------|Back |Fwd | - * | | | | | | | | - * `--------------------' `--------------------' - */ -[_GAME] = LAYOUT_ergodox( - // left hand - _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, - - _______, _______, - _______, - KC_SPACE, KC_LGUI, KC_LALT, - - // right hand - _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, - - TG(_MOUSE), TT(_NUM), - _______, - _______, _______, _______ -), - -/* Keymap 2: NUMPAD - * - * ,--------------------------------------------------. ,--------------------------------------------------. - * | | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | | ✗ | ✗ | ✗ | / | * | - | | - * |--------+------+------+------+------+------+------| |------+------+------+------+------+------+--------| - * | | ✗ | Home | Up | End | PgUp | | | | ✗ | 7 | 8 | 9 | + | | - * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| - * | | ✗ | Left | Down | Right| PgDn |------| |------| ✗ | 4 | 5 | 6 | + | ✗ | - * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| - * | | / | * | - | + | Enter| | | | ✗ | 1 | 2 | 3 | Enter| Enter | - * `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------' - * | | | | | ✗ | | 0 | 0 | . | Enter| = | - * `----------------------------------' `----------------------------------' - * ,-------------. ,-------------. - * | | | | | | - * ,------|------|------| |------+------+------. - * | | | | | | | | - * | | |------| |------| | | - * | | | | | | | | - * `--------------------' `--------------------' - */ -[_NUM] = LAYOUT_ergodox( - // left hand - _______, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - _______, KC_NO, KC_HOME, KC_UP, KC_END, KC_PGUP, KC_NO, - _______, KC_NO, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, - _______, KC_PSLS, KC_PAST, KC_PMNS, KC_PPLS, KC_PENT, KC_NO, -