aboutsummaryrefslogtreecommitdiff
path: root/keyboards/jj40/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/jj40/config.h')
-rw-r--r--keyboards/jj40/config.h40
1 files changed, 22 insertions, 18 deletions
diff --git a/keyboards/jj40/config.h b/keyboards/jj40/config.h
index 67561b0b2..e88147ac8 100644
--- a/keyboards/jj40/config.h
+++ b/keyboards/jj40/config.h
@@ -1,51 +1,55 @@
1/* 1/*
2Copyright 2017 Luiz Ribeiro <luizribeiro@gmail.com> 2Copyright 2017 Luiz Ribeiro <luizribeiro@gmail.com>
3
4This program is free software: you can redistribute it and/or modify 3This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by 4it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or 5the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version. 6(at your option) any later version.
8
9This program is distributed in the hope that it will be useful, 7This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of 8but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 9MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details. 10GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License 11You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>. 12along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 13*/
17 14
18#include "config_common.h" 15#pragma once
19 16
20#ifndef CONFIG_H 17#include "config_common.h"
21#define CONFIG_H
22 18
23#define VENDOR_ID 0x20A0 19#define VENDOR_ID 0x20A0
24#define PRODUCT_ID 0x422D 20#define PRODUCT_ID 0x422D
25// TODO: share these strings with usbconfig.h 21// TODO: share these strings with usbconfig.h
26// Edit usbconfig.h to change these. 22// Edit usbconfig.h to change these.
27#define MANUFACTURER winkeyless.kr 23#define MANUFACTURER Kprepublic
28#define PRODUCT jj40 24#define PRODUCT jj40
29 25
30/* matrix size */ 26/* matrix size */
31#define MATRIX_ROWS 8 27#define MATRIX_ROWS 4
32#define MATRIX_COLS 15 28#define MATRIX_COLS 12
29#define MATRIX_ROW_PINS { B0, B1, B3, B4 }
30#define MATRIX_COL_PINS { C4, C5, C6, C7, A4, A5, A6, A7, A3, A2, A1, A0 }
33 31
34/* COL2ROW or ROW2COL */ 32/* COL2ROW or ROW2COL */
35#define DIODE_DIRECTION COL2ROW 33#define DIODE_DIRECTION COL2ROW
36 34
35#define BACKLIGHT_PIN D4
37#define BACKLIGHT_LEVELS 12 36#define BACKLIGHT_LEVELS 12
38// #define BACKLIGHT_BREATHING // works, but BL_TOGG might not work 37// #define BACKLIGHT_BREATHING // Requires #4324 to enable hardware pwm for atmega32a
39
40#define TAPPING_TOGGLE 3
41
42#define NO_UART 1
43 38
44/* RGB underglow */ 39/* RGB underglow */
45// The RGB_DI_PIN value seems to be shared between all PS2AVRGB boards. 40// NOTE: for PS2AVRGB boards, underglow commands are sent via I2C to 0xB0.
46// The same pin is used on the JJ40, at least.
47#define RGBLED_NUM 5 41#define RGBLED_NUM 5
48#define RGB_DI_PIN E2 // NOTE: for PS2AVRGB boards, underglow commands are sent via I2C to 0xB0.
49#define RGBLIGHT_ANIMATIONS 42#define RGBLIGHT_ANIMATIONS
50 43
51#endif 44/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
45#define DEBOUNCING_DELAY 5
46
47#define NO_UART 1
48
49/* key combination for magic key command */
50/* defined by default; to change, uncomment and set to the combination you want */
51// #define IS_COMMAND() (get_mods() == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)))
52
53/* Bootmagic Lite key configuration */
54// #define BOOTMAGIC_LITE_ROW 0
55// #define BOOTMAGIC_LITE_COLUMN 0