c9cf9712aa
Co-authored-by: Joel Challis <git@zvecr.com>
85 lines
2.6 KiB
C
85 lines
2.6 KiB
C
/* Copyright 2021 Jay Greco
|
|
*
|
|
* 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/>.
|
|
*/
|
|
// clang-format off
|
|
#pragma once
|
|
|
|
/* Used to set host for remote KB if VUSB detect doesn't work. */
|
|
// #define KEYBOARD_HOST // Force host mode
|
|
// #define KEYBOARD_REMOTE // Force remote mode
|
|
|
|
// Workarounds for sleep/wake issues
|
|
#define USB_SUSPEND_WAKEUP_DELAY 250
|
|
|
|
// NOTE: There is a bug in AVR deep sleep, which
|
|
// causes the MCU to stop responding in some cases.
|
|
// Disabling the watchdog prevents the MCU from entering
|
|
// power down, while still turning off LEDs, audio, etc.
|
|
// See qmk_firmware/issues/20087 for background
|
|
#undef WDT_vect
|
|
|
|
/* split config */
|
|
// #define SPLIT_USB_DETECT // Enable if you have issues with USB
|
|
#define SOFT_SERIAL_PIN E6
|
|
#define SPLIT_HAND_PIN B6
|
|
#define DISABLE_SYNC_TIMER
|
|
#define SPLIT_HAND_PIN_LOW_IS_LEFT
|
|
|
|
/* key matrix size */
|
|
#define MATRIX_ROWS 12
|
|
#define MATRIX_COLS 9
|
|
#define MATRIX_MUX_COLS 3
|
|
|
|
/*
|
|
* Keyboard Matrix Assignments
|
|
* The snap uses a demultiplexer for the cols.
|
|
* to free up more IOs for awesomeness!
|
|
* See matrix.c for more details.
|
|
*/
|
|
// Left side
|
|
#define MATRIX_ROW_PINS { D4, C6, D7, F4, B4, B5 }
|
|
#define MATRIX_COL_MUX_PINS { F7, F6, F5 }
|
|
|
|
//Right side
|
|
#define MATRIX_ROW_PINS_RIGHT { F4, F5, F6, F7, B1, B3 }
|
|
#define MATRIX_COL_MUX_PINS_RIGHT { D7, C6, D4 }
|
|
#define MATRIX_EXT_PIN_RIGHT B6
|
|
|
|
/* Optional SMT LED pins */
|
|
#define RGBLED_NUM 10
|
|
#define RGBLIGHT_LED_MAP { 8, 9, 0, 1, 2, 6, 7, 3, 4, 5 }
|
|
#define RGBLIGHT_SLEEP
|
|
#define RGBLIGHT_EFFECT_BREATHING
|
|
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
|
|
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
|
|
#define RGBLIGHT_EFFECT_SNAKE
|
|
#define RGBLIGHT_EFFECT_KNIGHT
|
|
#define RGBLIGHT_EFFECT_CHRISTMAS
|
|
#define RGBLIGHT_EFFECT_STATIC_GRADIENT
|
|
#define RGBLIGHT_EFFECT_RGB_TEST
|
|
#define RGBLIGHT_EFFECT_ALTERNATING
|
|
#define RGBLIGHT_EFFECT_TWINKLE
|
|
|
|
/* Optional encoder pins */
|
|
#define ENCODERS_PAD_A { B3 }
|
|
#define ENCODERS_PAD_B { B1 }
|
|
#define ENCODERS_PAD_A_RIGHT { B4 }
|
|
#define ENCODERS_PAD_B_RIGHT { B5 }
|
|
|
|
/* Optional speaker pin */
|
|
#define AUDIO_PIN B6
|
|
|
|
/* Optional split transactions */
|
|
#define SPLIT_OLED_ENABLE
|