aboutsummaryrefslogtreecommitdiff
path: root/keyboards/inett_studio/sqx/hotswap/config.h
diff options
context:
space:
mode:
authoryulei <yuleiz@gmail.com>2020-09-11 17:28:23 +0800
committerGitHub <noreply@github.com>2020-09-11 02:28:23 -0700
commit6de4a53c7cb9a0d2dc4cbbe5dcbf19604daca465 (patch)
treeeaa7daca098aebbd6bba88b6781e7ff95167a14c /keyboards/inett_studio/sqx/hotswap/config.h
parent3d3c2e1d3fd3b3ca063491c8f623143db56dada7 (diff)
downloadqmk_firmware-6de4a53c7cb9a0d2dc4cbbe5dcbf19604daca465.tar.gz
qmk_firmware-6de4a53c7cb9a0d2dc4cbbe5dcbf19604daca465.zip
[Keyboard] added SQUARE.X by iNETT Studio (#10066)
* added SQUARE.X keyboard from the iNETT Studio * split to two sub directories * Apply suggestions from code review * Update keyboards/inett_studio/sqx/universal/universal.h * Apply suggestions from code review * update the matrix control keycodes settings * use the offical macro to the rgb matrix control * fixed led position issue * Apply suggestions from code review * removed the redundant #endif * update default keymap * Apply suggestions from code review * add license header
Diffstat (limited to 'keyboards/inett_studio/sqx/hotswap/config.h')
-rw-r--r--keyboards/inett_studio/sqx/hotswap/config.h72
1 files changed, 72 insertions, 0 deletions
diff --git a/keyboards/inett_studio/sqx/hotswap/config.h b/keyboards/inett_studio/sqx/hotswap/config.h
new file mode 100644
index 000000000..a59ad3e7e
--- /dev/null
+++ b/keyboards/inett_studio/sqx/hotswap/config.h
@@ -0,0 +1,72 @@
1/**
2 * config.h
3 *
4 Copyright 2020 astro <yuleiz@gmail.com>
5
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19#pragma once
20
21#include "config_common.h"
22
23/* USB Device descriptor parameter */
24#define VENDOR_ID 0x694E //'iN'
25#define PRODUCT_ID 0x5336 //'S6'
26#define DEVICE_VER 0x0001
27#define MANUFACTURER iNETT Studio
28#define PRODUCT SQUARE.X
29
30/* key matrix size */
31#define MATRIX_ROWS 5
32#define MATRIX_COLS 14
33#define MATRIX_ROW_PINS { F0, F1, F4, B7, D6}
34#define MATRIX_COL_PINS { C7, C6, B6, B5, B4, F7, F6, F5, E6, B0, D2, D4, D5, D3 }
35#define UNUSED_PINS
36#define DIODE_DIRECTION ROW2COL
37
38/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
39#define DEBOUNCE 5
40
41/*
42 * Feature disable options
43 * These options are also useful to firmware size reduction.
44 */
45
46/* disable debug print */
47//#define NO_DEBUG
48
49/* disable print */
50//#define NO_PRINT
51
52
53//rgb light setting
54#define RGBLIGHT_LIMIT_VAL 128
55#define RGBLED_NUM 18
56#define RGB_DI_PIN D7
57#define RGBLIGHT_ANIMATIONS
58#define RGBLIGHT_HUE_STEP 8
59#define RGBLIGHT_SAT_STEP 8
60#define RGBLIGHT_VAL_STEP 8
61
62//rgb matrix setting
63#define DRIVER_1_LED_TOTAL 33
64#define DRIVER_2_LED_TOTAL 31
65#define DRIVER_ADDR_1 0b1110100
66#define DRIVER_ADDR_2 0b1110111
67#define DRIVER_COUNT 2
68#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
69
70#if defined(RGB_MATRIX_ENABLE) && defined(RGBLIGHT_ENABLE)
71 #define RGB_MATRIX_DISABLE_KEYCODES
72#endif