aboutsummaryrefslogtreecommitdiff
path: root/keyboards/basekeys/slice/rev1_rgb/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/basekeys/slice/rev1_rgb/config.h')
-rw-r--r--keyboards/basekeys/slice/rev1_rgb/config.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/keyboards/basekeys/slice/rev1_rgb/config.h b/keyboards/basekeys/slice/rev1_rgb/config.h
new file mode 100644
index 000000000..6d423d9b5
--- /dev/null
+++ b/keyboards/basekeys/slice/rev1_rgb/config.h
@@ -0,0 +1,67 @@
1/*
2Copyright 2012 Jun Wako <wakojun@gmail.com>
3Copyright 2015 Jack Humbert
4
5This program is free software: you can redistribute it and/or modify
6it under the terms of the GNU General Public License as published by
7the Free Software Foundation, either version 2 of the License, or
8(at your option) any later version.
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19#pragma once
20
21/* USB Device descriptor parameter */
22#define VENDOR_ID 0x04D8
23#define PRODUCT_ID 0xEC15
24#define DEVICE_VER 0x0002
25#define MANUFACTURER 2Moons
26#define PRODUCT Slice RGB
27#define DESCRIPTION A custom keyboard
28
29/* key matrix size */
30#define MATRIX_ROWS 10
31#define MATRIX_COLS 18
32
33// wiring of each half
34#define MATRIX_ROW_PINS { D4, C6, D7, E6, B4 }
35#define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, B6, B5 }
36
37#define DIODE_DIRECTION COL2ROW
38
39/* Set 0 if debouncing isn't needed */
40#define DEBOUNCE 5
41
42/* serial.c configuration for split keyboard */
43#define SOFT_SERIAL_PIN D2
44
45/* Select hand configuration */
46//#define EE_HANDS
47#define MASTER_LEFT
48//#define MASTER_RIGHT
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/* RGB LED */
56#ifdef RGBLIGHT_ENABLE
57#define RGB_DI_PIN D3
58#define RGBLED_NUM 69 // Number of LEDs. backlight x69
59#define RGBLED_SPLIT { 34, 35 }
60#define RGBLIGHT_LIMIT_VAL 120 /* The maximum brightness level */
61#define RGBLIGHT_HUE_STEP 10
62#define RGBLIGHT_SAT_STEP 17
63#define RGBLIGHT_VAL_STEP 17
64#define RGBLIGHT_ANIMATIONS
65#endif
66
67#define OLED_FONT_H "keyboards/basekeys/slice/slice_font.c"