aboutsummaryrefslogtreecommitdiff
path: root/keyboards/s7_elephant/rev2/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/s7_elephant/rev2/config.h')
-rw-r--r--keyboards/s7_elephant/rev2/config.h83
1 files changed, 83 insertions, 0 deletions
diff --git a/keyboards/s7_elephant/rev2/config.h b/keyboards/s7_elephant/rev2/config.h
new file mode 100644
index 000000000..5c5b526aa
--- /dev/null
+++ b/keyboards/s7_elephant/rev2/config.h
@@ -0,0 +1,83 @@
1/*
2Copyright 2020 MudkipMao
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#define VENDOR_ID 0xA13B // Hexidecimal A13B will be Jacky's vendor ID
24#define PRODUCT_ID 0x0008 // 8 for S7++
25#define DEVICE_VER 0x0002
26#define MANUFACTURER Jacky
27#define PRODUCT Jacky S7 Elephant Rev 2
28#define DESCRIPTION A high-end 70% custom keyboard
29
30/* Don't remove this without also removing LTO_ENABLE=yes in rules.mk */
31#define NO_ACTION_MACRO
32#define NO_ACTION_FUNCTION
33
34/* key matrix size */
35#define MATRIX_ROWS 5
36#define MATRIX_COLS 16
37
38/*
39 * Keyboard Matrix Assignments
40 *
41 * Change this to how you wired your keyboard
42 * COLS: AVR pins used for columns, left to right
43 * ROWS: AVR pins used for rows, top to bottom
44 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
45 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
46 *
47 *
48 * 0 1 2 3 4 5 6 7 8 9 A B C D E F */
49#define MATRIX_ROW_PINS { B0, B1, B2, B3, B7 }
50#define MATRIX_COL_PINS { D0, D1, D2, D3, D5, D4, D6, D7, B4, F7, F6, F5, F4, F1, F0, E6 }
51
52/* Setting the matrix value of top left key for bootmagic lite */
53#define BOOTMAGIC_LITE_ROW 0
54#define BOOTMAGIC_LITE_COLUMN 15
55
56#define DIODE_DIRECTION ROW2COL
57
58#define BACKLIGHT_PIN B6
59// #define BACKLIGHT_BREATHING
60#define BACKLIGHT_LEVELS 15
61
62#define RGB_DI_PIN E2
63#ifdef RGB_DI_PIN
64#define RGBLIGHT_ANIMATIONS
65#define RGBLED_NUM 2
66#define RGBLIGHT_HUE_STEP 8
67#define RGBLIGHT_SAT_STEP 8
68#define RGBLIGHT_VAL_STEP 8
69#define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
70#define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
71#endif // RGB_DI_PIN
72
73/* Set 0 if debouncing isn't needed */
74#define DEBOUNCE 5
75
76/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
77#define LOCKING_SUPPORT_ENABLE
78
79/* Locking resynchronize hack */
80#define LOCKING_RESYNC_ENABLE
81
82// generated by KBFirmware JSON to QMK Parser
83// https://noroadsleft.github.io/kbf_qmk_converter/