aboutsummaryrefslogtreecommitdiff
path: root/keyboards/bioi/g60/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/bioi/g60/config.h')
-rw-r--r--keyboards/bioi/g60/config.h76
1 files changed, 76 insertions, 0 deletions
diff --git a/keyboards/bioi/g60/config.h b/keyboards/bioi/g60/config.h
new file mode 100644
index 000000000..561cbc863
--- /dev/null
+++ b/keyboards/bioi/g60/config.h
@@ -0,0 +1,76 @@
1/*
2Copyright 2019 Basic I/O Instruments(Scott Wei) <[email protected]>
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#pragma once
19
20#include "config_common.h"
21
22/* USB Device descriptor parameter */
23
24#define VENDOR_ID 0x8101 // 8101 = "BIOI"
25#define PRODUCT_ID 0x6080
26#define DEVICE_VER 0x0001
27#define MANUFACTURER Basic IO Instruments
28#define PRODUCT BIOI G60
29
30/* key matrix size */
31#define MATRIX_ROWS 5
32#define MATRIX_COLS 14
33
34/*
35 * Keyboard Matrix Assignments
36 *
37 * Change this to how you wired your keyboard
38 * COLS: AVR pins used for columns, left to right
39 * ROWS: AVR pins used for rows, top to bottom
40 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
41 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
42 *
43*/
44
45#define MATRIX_ROW_PINS { E6, B0, F1, F5, F4 }
46#define MATRIX_COL_PINS { F6, F7, B3, C7, C6, B6, B5, D5, B4, D7, D6, D4, D1, D0 }
47
48/* Backlight Setup */
49#define BACKLIGHT_PIN B7
50#define BACKLIGHT_LEVELS 12
51
52/* COL2ROW or ROW2COL */
53#define DIODE_DIRECTION COL2ROW
54
55/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
56#define DEBOUNCE 5
57
58/* RGB Underglow */
59#define RGB_DI_PIN B1
60#define RGBLIGHT_ANIMATIONS
61#define RGBLED_NUM 8 // Number of LEDs
62#define RGBLIGHT_HUE_STEP 8
63#define RGBLIGHT_SAT_STEP 8
64#define RGBLIGHT_VAL_STEP 8
65
66/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
67#define LOCKING_SUPPORT_ENABLE
68/* Locking resynchronize hack */
69#define LOCKING_RESYNC_ENABLE
70
71/* key combination for magic key command */
72#define KEYBOARD_LOCK_ENABLE
73#define MAGIC_KEY_LOCK L
74
75#define VIA_EEPROM_LAYOUT_OPTIONS_SIZE 3
76#define VIA_EEPROM_CUSTOM_CONFIG_SIZE 1