2018-05-15 21:54:50 +00:00
|
|
|
/*
|
|
|
|
Copyright 2018 Yiancar
|
|
|
|
|
|
|
|
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/>.
|
|
|
|
*/
|
|
|
|
|
2018-10-26 23:14:29 +00:00
|
|
|
#pragma once
|
2018-05-15 21:54:50 +00:00
|
|
|
|
|
|
|
#include "config_common.h"
|
|
|
|
|
|
|
|
/* USB Device descriptor parameter */
|
|
|
|
#define VENDOR_ID 0xFEED
|
2018-10-26 23:14:29 +00:00
|
|
|
#define PRODUCT_ID 0x0258
|
2018-05-15 21:54:50 +00:00
|
|
|
#define DEVICE_VER 0x0001
|
|
|
|
#define MANUFACTURER Yiancar-Designs
|
2018-10-26 23:14:29 +00:00
|
|
|
#define PRODUCT HS60 V2
|
2018-05-15 21:54:50 +00:00
|
|
|
#define DESCRIPTION GH60 compatible, tool free RGB keyboard
|
|
|
|
|
|
|
|
/* key matrix size */
|
|
|
|
#define MATRIX_ROWS 5
|
|
|
|
#define MATRIX_COLS 14
|
|
|
|
|
2018-10-26 23:14:29 +00:00
|
|
|
#define MATRIX_ROW_PINS { B3, B4, B5, A8, A4 }
|
|
|
|
#define MATRIX_COL_PINS { A13, A10, A9, A14, A15, B8, B9, C13, C14, C15, A0, A1, A2, A3 }
|
|
|
|
// To enable debugger set A13 A14 -> A5 A6
|
2018-05-15 21:54:50 +00:00
|
|
|
|
|
|
|
/* COL2ROW, ROW2COL, or CUSTOM_MATRIX */
|
|
|
|
#define DIODE_DIRECTION COL2ROW
|
|
|
|
|
|
|
|
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
|
2018-10-26 23:14:29 +00:00
|
|
|
#define DEBOUNCE 0
|
2018-05-15 21:54:50 +00:00
|
|
|
|
|
|
|
/* define if matrix has ghost (lacks anti-ghosting diodes) */
|
|
|
|
//#define MATRIX_HAS_GHOST
|
|
|
|
|
|
|
|
/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
|
|
|
|
* This is userful for the Windows task manager shortcut (ctrl+shift+esc).
|
|
|
|
*/
|
|
|
|
// #define GRAVE_ESC_CTRL_OVERRIDE
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Force NKRO
|
|
|
|
*
|
|
|
|
* Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
|
|
|
|
* state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
|
|
|
|
* makefile for this to work.)
|
|
|
|
*
|
|
|
|
* If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
|
|
|
|
* until the next keyboard reset.
|
|
|
|
*
|
|
|
|
* NKRO may prevent your keystrokes from being detected in the BIOS, but it is
|
|
|
|
* fully operational during normal computer usage.
|
|
|
|
*
|
|
|
|
* For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
|
|
|
|
* or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
|
|
|
|
* bootmagic, NKRO mode will always be enabled until it is toggled again during a
|
|
|
|
* power-up.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
//#define FORCE_NKRO
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Magic Key Options
|
|
|
|
*
|
|
|
|
* Magic keys are hotkey commands that allow control over firmware functions of
|
|
|
|
* the keyboard. They are best used in combination with the HID Listen program,
|
|
|
|
* found here: https://www.pjrc.com/teensy/hid_listen.html
|
|
|
|
*
|
|
|
|
* The options below allow the magic key functionality to be changed. This is
|
|
|
|
* useful if your keyboard/keypad is missing keys and you want magic key support.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* key combination for magic key command */
|
|
|
|
#define IS_COMMAND() ( \
|
|
|
|
keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
|
|
|
|
)
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Feature disable options
|
|
|
|
* These options are also useful to firmware size reduction.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* disable debug print */
|
|
|
|
//#define NO_DEBUG
|
|
|
|
|
|
|
|
/* disable print */
|
|
|
|
//#define NO_PRINT
|
|
|
|
|
|
|
|
/* Backlight options */
|
|
|
|
|
|
|
|
#define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
|
|
|
|
#define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended
|
2018-10-26 23:14:29 +00:00
|
|
|
#define RGB_MATRIX_SKIP_FRAMES 3
|
2018-05-15 21:54:50 +00:00
|
|
|
|
2018-10-26 23:14:29 +00:00
|
|
|
#define DRIVER_ADDR_1 0b1010000
|
|
|
|
#define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons.
|
2018-05-15 21:54:50 +00:00
|
|
|
|
|
|
|
#define DRIVER_COUNT 2
|
2018-10-26 23:14:29 +00:00
|
|
|
#ifdef HS60_ANSI
|
|
|
|
#define DRIVER_1_LED_TOTAL 61
|
2018-05-26 03:07:06 +00:00
|
|
|
#else
|
2018-10-26 23:14:29 +00:00
|
|
|
#define DRIVER_1_LED_TOTAL 62
|
2018-05-26 03:07:06 +00:00
|
|
|
#endif
|
|
|
|
|
2018-10-26 23:14:29 +00:00
|
|
|
#define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL
|