mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-09-10 15:54:06 +00:00
[Keyboard] Update to ZSA Keyboards (#15644)
This commit is contained in:
@@ -43,12 +43,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#define MATRIX_EXPANDER_COL_PINS { 5, 4, 3, 2, 1, 0 }
|
||||
#define MATRIX_EXPANDER_ROW_PINS { 0, 1, 2, 3, 4, 5, 6 }
|
||||
|
||||
|
||||
#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 MOUSEKEY_INTERVAL 20
|
||||
#define MOUSEKEY_DELAY 0
|
||||
#define MOUSEKEY_TIME_TO_MAX 60
|
||||
#define MOUSEKEY_MAX_SPEED 7
|
||||
#define MOUSEKEY_WHEEL_DELAY 400
|
||||
#define MOUSEKEY_WHEEL_INTERVAL MOUSEKEY_INTERVAL
|
||||
#define MOUSEKEY_WHEEL_MAX_SPEED MOUSEKEY_MAX_SPEED
|
||||
#define MOUSEKEY_WHEEL_TIME_TO_MAX MOUSEKEY_TIME_TO_MAX
|
||||
|
||||
#define DEBOUNCE 30
|
||||
|
||||
|
@@ -398,3 +398,54 @@ void eeconfig_init_kb(void) { // EEPROM is getting reset!
|
||||
eeconfig_update_kb(keyboard_config.raw);
|
||||
eeconfig_init_user();
|
||||
}
|
||||
|
||||
#ifdef ORYX_ENABLE
|
||||
static uint16_t loops = 0;
|
||||
static bool is_on = false;
|
||||
#endif
|
||||
|
||||
#ifdef DYNAMIC_MACRO_ENABLE
|
||||
static bool is_dynamic_recording = false;
|
||||
static uint16_t dynamic_loop_timer;
|
||||
|
||||
void dynamic_macro_record_start_user(void) {
|
||||
is_dynamic_recording = true;
|
||||
dynamic_loop_timer = timer_read();
|
||||
ergodox_right_led_1_on();
|
||||
}
|
||||
|
||||
void dynamic_macro_record_end_user(int8_t direction) {
|
||||
is_dynamic_recording = false;
|
||||
layer_state_set_user(layer_state);
|
||||
}
|
||||
#endif
|
||||
|
||||
void matrix_scan_kb(void) {
|
||||
#ifdef DYNAMIC_MACRO_ENABLE
|
||||
if (is_dynamic_recording) {
|
||||
ergodox_right_led_1_off();
|
||||
// if (timer_elapsed(dynamic_loop_timer) > 5)
|
||||
{
|
||||
static uint8_t counter;
|
||||
counter++;
|
||||
if (counter > 100) ergodox_right_led_1_on();
|
||||
dynamic_loop_timer = timer_read();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CAPS_LOCK_STATUS
|
||||
led_t led_state = host_keyboard_led_state();
|
||||
if(led_state.caps_lock) {
|
||||
ergodox_right_led_3_on();
|
||||
}
|
||||
else {
|
||||
uint8_t layer = get_highest_layer(layer_state);
|
||||
if(layer != 1) {
|
||||
ergodox_right_led_3_off();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
matrix_scan_user();
|
||||
}
|
||||
|
@@ -292,3 +292,25 @@ extern keyboard_config_t keyboard_config;
|
||||
{ R05, R15, R25, R35, R45, R55 }, \
|
||||
{ R06, R16, R26, R36, R46, KC_NO } \
|
||||
}
|
||||
|
||||
/* ---- LEFT HAND ---- ---- RIGHT HAND ---- */
|
||||
#define LED_LAYOUT_ergodox_pretty( \
|
||||
L01,L02,L03,L04,L05, R01,R02,R03,R04,R05, \
|
||||
L11,L12,L13,L14,L15, R11,R12,R13,R14,R15, \
|
||||
L21,L22,L23,L24,L25, R21,R22,R23,R24,R25, \
|
||||
L31,L32,L33,L34,L35, R31,R32,R33,R34,R35, \
|
||||
L41,L42,L43,L44, R42,R43,R44,R45 ) \
|
||||
\
|
||||
/* matrix positions */ \
|
||||
{ R01, R02, R03, R04, R05, \
|
||||
R11, R12, R13, R14, R15, \
|
||||
R21, R22, R23, R24, R25, \
|
||||
R31, R32, R33, R34, R35, \
|
||||
R42, R43, R44, R45, \
|
||||
\
|
||||
L05, L04, L03, L02, L01, \
|
||||
L15, L14, L13, L12, L11, \
|
||||
L25, L24, L23, L22, L21, \
|
||||
L35, L34, L33, L32, L31, \
|
||||
L44, L43, L42, L41 \
|
||||
}
|
||||
|
@@ -12,15 +12,15 @@ BOOTLOADER = halfkay
|
||||
# Build Options
|
||||
# change yes to no to disable
|
||||
#
|
||||
BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
|
||||
BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
|
||||
MOUSEKEY_ENABLE = yes # Mouse keys
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||
CONSOLE_ENABLE = no # Console for debug
|
||||
COMMAND_ENABLE = yes # Commands for debug and configuration
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
CUSTOM_MATRIX = lite # Custom matrix file for the ErgoDox EZ
|
||||
NKRO_ENABLE = yes # Enable N-Key Rollover
|
||||
UNICODE_ENABLE = yes # Unicode
|
||||
SWAP_HANDS_ENABLE= yes # Allow swapping hands of keyboard
|
||||
NKRO_ENABLE = yes # Enable N-Key Rollover
|
||||
UNICODE_ENABLE = no # Unicode
|
||||
SWAP_HANDS_ENABLE= no # Allow swapping hands of keyboard
|
||||
|
||||
RGB_MATRIX_ENABLE = no # enable later
|
||||
RGB_MATRIX_DRIVER = IS31FL3731
|
||||
@@ -36,3 +36,5 @@ LAYOUTS = ergodox
|
||||
# Disable unsupported hardware
|
||||
AUDIO_SUPPORTED = no
|
||||
BACKLIGHT_SUPPORTED = no
|
||||
|
||||
MOUSE_SHARED_EP = no
|
||||
|
Reference in New Issue
Block a user