aboutsummaryrefslogtreecommitdiff
path: root/keyboards/projectkb/alice/rev2/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/projectkb/alice/rev2/config.h')
-rw-r--r--keyboards/projectkb/alice/rev2/config.h85
1 files changed, 85 insertions, 0 deletions
diff --git a/keyboards/projectkb/alice/rev2/config.h b/keyboards/projectkb/alice/rev2/config.h
new file mode 100644
index 000000000..eb3332026
--- /dev/null
+++ b/keyboards/projectkb/alice/rev2/config.h
@@ -0,0 +1,85 @@
1/*
2Copyright 2015 Jun Wako <wakojun@gmail.com>
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/* USB Device descriptor parameter */
21#define VENDOR_ID 0x0159
22#define PRODUCT_ID 0xA71C
23#define DEVICE_VER 0x0001
24#define MANUFACTURER ProjectKB
25#define PRODUCT Alice
26#define DESCRIPTION ProjectKB Alice
27
28/* key matrix size */
29#define MATRIX_ROWS 5
30#define MATRIX_COLS 16
31
32#define MATRIX_COL_PINS { B1, B0, A7, A1, A5, A4, A3, A10, B9, B8, B7, B6, B5, B4, B3, A15 }
33#define MATRIX_ROW_PINS { B2, B10, B11, A2, A0 }
34#define DIODE_DIRECTION COL2ROW
35
36#define BACKLIGHT_PIN A6
37#define BACKLIGHT_PWM_DRIVER PWMD3
38#define BACKLIGHT_PWM_CHANNEL 1
39#define BACKLIGHT_PAL_MODE 1
40#define BACKLIGHT_LEVELS 6
41#define BACKLIGHT_BREATHING
42#define BREATHING_PERIOD 6
43
44/* define if matrix has ghost */
45//#define MATRIX_HAS_GHOST
46
47/* Set 0 if debouncing isn't needed */
48#define DEBOUNCE 5
49
50/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
51#define LOCKING_SUPPORT_ENABLE
52/* Locking resynchronize hack */
53#define LOCKING_RESYNC_ENABLE
54
55#define RGBLIGHT_ANIMATIONS
56#define RGB_DI_PIN B15
57#define RGBLED_NUM 14
58#define WS2812_SPI SPID2
59#define WS2812_SPI_MOSI_PAL_MODE 0
60
61#define INDICATOR_PIN_0 A9
62#define INDICATOR_PIN_1 A8
63#define INDICATOR_PIN_2 B12
64
65
66// 2 bits for 4 layout options
67#define VIA_EEPROM_LAYOUT_OPTIONS_SIZE 2
68
69/*
70 * Feature disable options
71 * These options are also useful to firmware size reduction.
72 */
73
74/* disable debug print */
75//#define NO_DEBUG
76
77/* disable print */
78//#define NO_PRINT
79
80/* disable action features */
81//#define NO_ACTION_LAYER
82//#define NO_ACTION_TAPPING
83//#define NO_ACTION_ONESHOT
84//#define NO_ACTION_MACRO
85//#define NO_ACTION_FUNCTION