aboutsummaryrefslogtreecommitdiff
path: root/keyboards/ymdk/wings/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/ymdk/wings/config.h')
-rw-r--r--keyboards/ymdk/wings/config.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/keyboards/ymdk/wings/config.h b/keyboards/ymdk/wings/config.h
new file mode 100644
index 000000000..107fc072f
--- /dev/null
+++ b/keyboards/ymdk/wings/config.h
@@ -0,0 +1,64 @@
1/* Copyright 2021 alittlepeace
2This program is free software: you can redistribute it and/or modify
3it under the terms of the GNU General Public License as published by
4the Free Software Foundation, either version 2 of the License, or
5(at your option) any later version.
6
7This program is distributed in the hope that it will be useful,
8but WITHOUT ANY WARRANTY; without even the implied warranty of
9MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10GNU General Public License for more details.
11
12You should have received a copy of the GNU General Public License
13along with this program. If not, see <http://www.gnu.org/licenses/>.
14*/
15
16#pragma once
17
18#include "config_common.h"
19
20/* USB Device descriptor parameter */
21#define VENDOR_ID 0x594D // "YM"
22#define PRODUCT_ID 0x2975 // "WING"
23#define DEVICE_VER 0x0001
24#define MANUFACTURER YMDK
25#define PRODUCT WINGS
26
27/* key matrix size */
28#define MATRIX_ROWS 5
29#define MATRIX_COLS 15
30
31/*
32 * Keyboard Matrix Assignments
33 *
34 * Change this to how you wired your keyboard
35 * COLS: AVR pins used for columns, left to right
36 * ROWS: AVR pins used for rows, top to bottom
37 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
38 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
39 *
40*/
41#define MATRIX_ROW_PINS { B0, B1, B2, B3, B7 }
42#define MATRIX_COL_PINS { D0, D1, D2, D3, D5, D4, D6, D7, B4, F7, F6, F5, F4, F1, F0 }
43#define UNUSED_PINS
44
45/* COL2ROW, ROW2COL*/
46#define DIODE_DIRECTION ROW2COL
47
48#define BACKLIGHT_PIN B6
49#define BACKLIGHT_BREATHING
50#define BACKLIGHT_LEVELS 3
51
52#define RGB_DI_PIN E2
53#ifdef RGB_DI_PIN
54#define RGBLED_NUM 14
55#define RGBLIGHT_HUE_STEP 8
56#define RGBLIGHT_SAT_STEP 8
57#define RGBLIGHT_VAL_STEP 8
58#define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
59#define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
60
61#define RGBLIGHT_ANIMATIONS
62#endif
63
64