aboutsummaryrefslogtreecommitdiff
path: root/keyboards/keycapsss/o4l_5x12/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/keycapsss/o4l_5x12/config.h')
-rw-r--r--keyboards/keycapsss/o4l_5x12/config.h115
1 files changed, 98 insertions, 17 deletions
diff --git a/keyboards/keycapsss/o4l_5x12/config.h b/keyboards/keycapsss/o4l_5x12/config.h
index 67bde35cf..e24275160 100644
--- a/keyboards/keycapsss/o4l_5x12/config.h
+++ b/keyboards/keycapsss/o4l_5x12/config.h
@@ -3,41 +3,122 @@
3#include "config_common.h" 3#include "config_common.h"
4 4
5/* USB Device descriptor parameter */ 5/* USB Device descriptor parameter */
6#define VENDOR_ID 0x7983 6#define VENDOR_ID 0x7983
7#define PRODUCT_ID 0x0512 7#define PRODUCT_ID 0x0512
8#define DEVICE_VER 0x0001 8#define DEVICE_VER 0x0001
9#define MANUFACTURER Keycapsss 9#define MANUFACTURER Keycapsss
10#define PRODUCT O4L:5x12 10#define PRODUCT O4L:5x12
11#define DESCRIPTION A 60 key ortholinear keyboard
12 11
13/* key matrix size */ 12/* key matrix size */
14#define MATRIX_ROWS 5 13#define MATRIX_ROWS 5
15#define MATRIX_COLS 12 14#define MATRIX_COLS 12
16 15
17/* key matrix pins */ 16/*
17 * Keyboard Matrix Assignments
18 *
19 * Change this to how you wired your keyboard
20 * COLS: AVR pins used for columns, left to right
21 * ROWS: AVR pins used for rows, top to bottom
22 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
23 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
24 *
25 */
18#define MATRIX_ROW_PINS { F7, B1, B3, B2, B6 } 26#define MATRIX_ROW_PINS { F7, B1, B3, B2, B6 }
19#define MATRIX_COL_PINS { B5, B4, E6, D7, C6, D4, D0, D1, D2, F6, F5, F4 } 27#define MATRIX_COL_PINS { B5, B4, E6, D7, C6, D4, D0, D1, D2, F6, F5, F4 }
20#define UNUSED_PINS 28#define UNUSED_PINS
21 29
22/* COL2ROW or ROW2COL */ 30/* COL2ROW, ROW2COL */
23#define DIODE_DIRECTION COL2ROW 31#define DIODE_DIRECTION COL2ROW
24 32
25/* WS2812 RGB LED */ 33//#define BACKLIGHT_PIN B7
26#define RGB_DI_PIN D3 34//#define BACKLIGHT_LEVELS 3
35//#define BACKLIGHT_BREATHING
27 36
37#define RGB_DI_PIN D3
28#ifdef RGB_DI_PIN 38#ifdef RGB_DI_PIN
29#define RGBLIGHT_ANIMATIONS 39# define RGBLED_NUM 12
30#define RGBLED_NUM 12 // Number of LEDs 40# define RGBLIGHT_HUE_STEP 4
31#define RGBLIGHT_HUE_STEP 4 41# define RGBLIGHT_SAT_STEP 4
32#define RGBLIGHT_SAT_STEP 4 42# define RGBLIGHT_VAL_STEP 4
33#define RGBLIGHT_VAL_STEP 4 43//# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
44//# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
45/*== all animations enable ==*/
46# define RGBLIGHT_ANIMATIONS
47/*== or choose animations ==*/
48//# define RGBLIGHT_EFFECT_BREATHING
49//# define RGBLIGHT_EFFECT_RAINBOW_MOOD
50//# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
51//# define RGBLIGHT_EFFECT_SNAKE
52//# define RGBLIGHT_EFFECT_KNIGHT
53//# define RGBLIGHT_EFFECT_CHRISTMAS
54//# define RGBLIGHT_EFFECT_STATIC_GRADIENT
55//# define RGBLIGHT_EFFECT_RGB_TEST
56//# define RGBLIGHT_EFFECT_ALTERNATING
57/*== customize breathing effect ==*/
58/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
59//# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
60/*==== use exp() and sin() ====*/
61//# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
62//# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
34#endif 63#endif
35 64
36/* Set 0 if debouncing isn't needed */ 65/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
37#define DEBOUNCE 5 66#define DEBOUNCE 5
38 67
68/* define if matrix has ghost (lacks anti-ghosting diodes) */
69//#define MATRIX_HAS_GHOST
70
39/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ 71/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
40#define LOCKING_SUPPORT_ENABLE 72#define LOCKING_SUPPORT_ENABLE
41
42/* Locking resynchronize hack */ 73/* Locking resynchronize hack */
43#define LOCKING_RESYNC_ENABLE 74#define LOCKING_RESYNC_ENABLE
75
76/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
77 * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
78 */
79//#define GRAVE_ESC_CTRL_OVERRIDE
80
81/*
82 * Force NKRO
83 *
84 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
85 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
86 * makefile for this to work.)
87 *
88 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
89 * until the next keyboard reset.
90 *
91 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
92 * fully operational during normal computer usage.
93 *
94 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
95 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
96 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
97 * power-up.
98 *
99 */
100//#define FORCE_NKRO
101
102/*
103 * Feature disable options
104 * These options are also useful to firmware size reduction.
105 */
106
107/* disable debug print */
108//#define NO_DEBUG
109
110/* disable print */
111//#define NO_PRINT
112
113/* disable action features */
114//#define NO_ACTION_LAYER
115//#define NO_ACTION_TAPPING
116//#define NO_ACTION_ONESHOT
117
118/* disable these deprecated features by default */
119#define NO_ACTION_MACRO
120#define NO_ACTION_FUNCTION
121
122/* Bootmagic Lite key configuration */
123//#define BOOTMAGIC_LITE_ROW 0
124//#define BOOTMAGIC_LITE_COLUMN 0