2018-07-08 00:47:24 +06:00
|
|
|
/*
|
|
|
|
Copyright 2018 MechMerlin
|
|
|
|
|
|
|
|
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/>.
|
|
|
|
*/
|
|
|
|
|
2019-11-09 08:30:44 +06:00
|
|
|
#pragma once
|
2018-07-08 00:47:24 +06:00
|
|
|
|
|
|
|
#include "config_common.h"
|
|
|
|
|
|
|
|
/* USB Device descriptor parameter */
|
|
|
|
#define VENDOR_ID 0xFEED
|
2019-11-09 08:30:44 +06:00
|
|
|
#define PRODUCT_ID 0x0C0D
|
2018-07-08 00:47:24 +06:00
|
|
|
#define DEVICE_VER 0x0001
|
2019-11-09 08:30:44 +06:00
|
|
|
#define MANUFACTURER Gray Studio
|
|
|
|
#define PRODUCT COD67
|
|
|
|
#define DESCRIPTION 60% custom keyboard
|
2018-07-08 00:47:24 +06:00
|
|
|
|
|
|
|
/* key matrix size */
|
|
|
|
#define MATRIX_ROWS 5
|
|
|
|
#define MATRIX_COLS 14
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Keyboard Matrix Assignments
|
|
|
|
*
|
|
|
|
* Change this to how you wired your keyboard
|
|
|
|
* COLS: AVR pins used for columns, left to right
|
|
|
|
* ROWS: AVR pins used for rows, top to bottom
|
|
|
|
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
|
|
|
|
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#define MATRIX_ROW_PINS { C7, C6, B6, B5, B4 }
|
|
|
|
#define MATRIX_COL_PINS { D7, F7, F6, F5, F4, F1, F0, E6, B0, B7, D0, D1, D2, D3 }
|
|
|
|
#define UNUSED_PINS
|
|
|
|
|
2019-02-18 22:49:51 +06:00
|
|
|
/* COL2ROW, ROW2COL*/
|
2018-07-08 00:47:24 +06:00
|
|
|
#define DIODE_DIRECTION COL2ROW
|
|
|
|
|
2019-11-09 08:30:44 +06:00
|
|
|
/* D4 is not a PWM pin, but look at timer assisted software PWM if you want something other than toggle
|
|
|
|
* https://docs.qmk.fm/#/feature_backlight?id=timer-assisted-pwm-implementation
|
|
|
|
*/
|
2018-07-08 00:47:24 +06:00
|
|
|
#define BACKLIGHT_PIN D4
|
2019-11-09 08:30:44 +06:00
|
|
|
|
|
|
|
#define RGB_DI_PIN B2
|
|
|
|
#ifdef RGB_DI_PIN
|
|
|
|
#define RGBLED_NUM 20
|
|
|
|
#define RGBLIGHT_HUE_STEP 8
|
|
|
|
#define RGBLIGHT_SAT_STEP 8
|
|
|
|
#define RGBLIGHT_VAL_STEP 8
|
|
|
|
#define RGBLIGHT_LIMIT_VAL 255
|
|
|
|
#define RGBLIGHT_SLEEP
|
|
|
|
#define RGBLIGHT_ANIMATIONS
|
|
|
|
#endif
|
2018-07-08 00:47:24 +06:00
|
|
|
|
|
|
|
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
|
2019-06-07 01:09:56 +06:00
|
|
|
#define DEBOUNCE 5
|
2018-07-08 00:47:24 +06:00
|
|
|
|
|
|
|
/* 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
|
|
|
|
|