aboutsummaryrefslogtreecommitdiff
path: root/keyboard/cluepad/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboard/cluepad/config.h')
-rw-r--r--keyboard/cluepad/config.h102
1 files changed, 102 insertions, 0 deletions
diff --git a/keyboard/cluepad/config.h b/keyboard/cluepad/config.h
new file mode 100644
index 000000000..5ed421a6e
--- /dev/null
+++ b/keyboard/cluepad/config.h
@@ -0,0 +1,102 @@
1/*
2Copyright 2012 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#ifndef CONFIG_H
19#define CONFIG_H
20
21#include "config_common.h"
22
23/* USB Device descriptor parameter */
24#define VENDOR_ID 0xC1ED
25#define PRODUCT_ID 0x2312
26#define DEVICE_VER 0x0001
27#define MANUFACTURER Clueboard
28#define PRODUCT Cluepad with RGB Underlighting
29#define DESCRIPTION QMK keyboard firmware for Cluepad
30
31/* key matrix size */
32#define MATRIX_ROWS 5
33#define MATRIX_COLS 4
34
35// COLS: Left to right, ROWS: Top to bottom
36
37/* Column pin configuration
38 * col: 0 1 2 3
39 * pin: F4 E6 B1 D2
40 */
41#define COLS (int []){ F4, E6, B1, D2 }
42
43 /* Row pin configuration
44 * row: 0 1 2 3 4
45 * pin:
46 */
47#define ROWS (int []){ B0, D3, D5, D4, D6 }
48
49/* COL2ROW or ROW2COL */
50#define DIODE_DIRECTION COL2ROW
51
52/* define if matrix has ghost */
53//#define MATRIX_HAS_GHOST
54
55/* Set 0 if debouncing isn't needed */
56#define DEBOUNCE 5
57
58/* Number of backlighting levels */
59#define BACKLIGHT_LEVELS 3
60
61/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
62#define LOCKING_SUPPORT_ENABLE
63/* Locking resynchronize hack */
64#define LOCKING_RESYNC_ENABLE
65
66/* key combination for command */
67#define IS_COMMAND() ( \
68 keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
69)
70
71/* Underlight configuration
72 */
73 #define ws2812_PORTREG PORTF
74 #define ws2812_DDRREG DDRF
75 #define ws2812_pin 6
76 #define RGBLED_NUM 4 // Number of LEDs
77 #define RGBLIGHT_HUE_STEP 10
78 #define RGBLIGHT_SAT_STEP 17
79 #define RGBLIGHT_VAL_STEP 17
80
81/*
82 * Feature disable options
83 * These options are also useful to firmware size reduction.
84 */
85
86/* disable debug print */
87//#define NO_DEBUG
88
89/* Debug forcibly enabled */
90#define ALWAYS_DEBUG
91
92/* disable print */
93//#define NO_PRINT
94
95/* disable action features */
96//#define NO_ACTION_LAYER
97//#define NO_ACTION_TAPPING
98//#define NO_ACTION_ONESHOT
99//#define NO_ACTION_MACRO
100//#define NO_ACTION_FUNCTION
101
102#endif