aboutsummaryrefslogtreecommitdiff
path: root/keyboards/nightly_boards/n2/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/nightly_boards/n2/config.h')
-rw-r--r--keyboards/nightly_boards/n2/config.h93
1 files changed, 93 insertions, 0 deletions
diff --git a/keyboards/nightly_boards/n2/config.h b/keyboards/nightly_boards/n2/config.h
new file mode 100644
index 000000000..5ffa15f08
--- /dev/null
+++ b/keyboards/nightly_boards/n2/config.h
@@ -0,0 +1,93 @@
1/*
2Copyright 2020 Neil Brian Ramirez
3This program is free software: you can redistribute it and/or modify
4it under the terms of the GNU General Public License as published by
5the Free Software Foundation, either version 2 of the License, or
6(at your option) any later version.
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.
11You should have received a copy of the GNU General Public License
12along with this program. If not, see <http://www.gnu.org/licenses/>.
13*/
14
15#pragma once
16
17#include "config_common.h"
18
19/* USB Device descriptor parameter */
20#define VENDOR_ID 0x0717
21#define PRODUCT_ID 0x0003
22#define DEVICE_VER 0x0001
23#define MANUFACTURER Neil Brian Ramirez
24#define PRODUCT [n]2
25
26/* key matrix size */
27#define MATRIX_ROWS 2
28#define MATRIX_COLS 2
29
30/*
31 * Keyboard Matrix Assignments
32 *
33 * Change this to how you wired your keyboard
34 * COLS: AVR pins used for columns, left to right
35 * ROWS: AVR pins used for rows, top to bottom
36 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
37 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
38 *
39 */
40#define MATRIX_ROW_PINS { F1, C7 }
41#define MATRIX_COL_PINS { F0, C6 }
42#define UNUSED_PINS
43
44/* COL2ROW, ROW2COL*/
45#define DIODE_DIRECTION COL2ROW
46
47// #define BACKLIGHT_PIN F1
48// #define BACKLIGHT_BREATHING
49// #define BACKLIGHT_LEVELS 3
50
51#define RGB_DI_PIN D4
52#ifdef RGB_DI_PIN
53#define RGBLED_NUM 2
54#define RGBLIGHT_HUE_STEP 8
55#define RGBLIGHT_SAT_STEP 8
56#define RGBLIGHT_VAL_STEP 8
57#define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
58#define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
59// /*== all animations enable ==*/
60#define RGBLIGHT_ANIMATIONS
61// /*== or choose animations ==*/
62// #define RGBLIGHT_EFFECT_BREATHING
63// #define RGBLIGHT_EFFECT_RAINBOW_MOOD
64// #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
65// #define RGBLIGHT_EFFECT_SNAKE
66// #define RGBLIGHT_EFFECT_KNIGHT
67// #define RGBLIGHT_EFFECT_CHRISTMAS
68// #define RGBLIGHT_EFFECT_STATIC_GRADIENT
69// #define RGBLIGHT_EFFECT_RGB_TEST
70// #define RGBLIGHT_EFFECT_ALTERNATING
71// /*== customize breathing effect ==*/
72// /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
73// #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
74// /*==== use exp() and sin() ====*/
75// #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
76// #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
77#endif
78
79/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
80#define DEBOUNCE 5
81
82/* define if matrix has ghost (lacks anti-ghosting diodes) */
83//#define MATRIX_HAS_GHOST
84
85/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
86#define LOCKING_SUPPORT_ENABLE
87/* Locking resynchronize hack */
88#define LOCKING_RESYNC_ENABLE
89
90
91/* disable these deprecated features by default */
92#define NO_ACTION_MACRO
93#define NO_ACTION_FUNCTION