Skip to content

Commit ee6f264

Browse files
committed
Add QMK Config
1 parent e571766 commit ee6f264

File tree

7 files changed

+406
-0
lines changed

7 files changed

+406
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/* Copyright 2023
2+
*
3+
* This program is free software: you can redistribute it and/or modify
4+
* it under the terms of the GNU General Public License as published by
5+
* the Free Software Foundation, either version 2 of the License, or
6+
* (at your option) any later version.
7+
*
8+
* This program is distributed in the hope that it will be useful,
9+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
* GNU General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License
14+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15+
*/
16+
#include "casual_coders_keyboard.h"
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/* Copyright 2019
2+
*
3+
* This program is free software: you can redistribute it and/or modify
4+
* it under the terms of the GNU General Public License as published by
5+
* the Free Software Foundation, either version 2 of the License, or
6+
* (at your option) any later version.
7+
*
8+
* This program is distributed in the hope that it will be useful,
9+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
* GNU General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License
14+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15+
*/
16+
#pragma once
17+
18+
#include "quantum.h"
19+
20+
/* This a shortcut to help you visually see your layout.
21+
*
22+
* The first section contains all of the arguments representing the physical
23+
* layout of the board and position of the keys.
24+
*
25+
* The second converts the arguments into a two-dimensional array which
26+
* represents the switch matrix.
27+
*/
28+
#define LAYOUT( \
29+
K00, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F, K0G, K0H, K0I, K0J, K0K, \
30+
K10, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F, K1G, K1H, K1I, K1J, K1K, \
31+
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E, K2F, K2G, K2H, K2I, K2J, K2K, \
32+
K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, K3F, K3G, K3H, K3I, K3J, K3K, \
33+
K40, K41, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B, K4D, K4H, K4I, K4J, \
34+
K50, K51, K52, K53, K54, K55, K56, K57, K58, K59, K5A, K5D, K5F, K5H, K5I, K5J, K5K, \
35+
K60, K61, K62, K65, K69, K6A, K6B, K6D, K6E, K6F, K6G, K6I, K6J \
36+
) { \
37+
{ K00, KC_NO, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F, K0G, K0H, K0I, K0J, K0K }, \
38+
{ K10, KC_NO, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F, K1G, K1H, K1I, K1J, K1K }, \
39+
{ K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E, K2F, K2G, K2H, K2I, K2J, K2K }, \
40+
{ K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, K3F, K3G, K3H, K3I, K3J, K3K }, \
41+
{ K40, K41, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B, KC_NO, K4D, KC_NO, KC_NO, KC_NO, K4H, K4I, K4J, KC_NO }, \
42+
{ K50, K51, K52, K53, K54, K55, K56, K57, K58, K59, K5A, KC_NO, KC_NO, K5D, KC_NO, K5F, KC_NO, K5H, K5I, K5J, K5K }, \
43+
{ K60, K61, K62, KC_NO, KC_NO, K65, KC_NO, KC_NO, KC_NO, K69, K6A, K6B, KC_NO, K6D, K6E, K6F, K6G, KC_NO, K6I, K6J, KC_NO }, \
44+
}
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
/* Copyright 2023
2+
*
3+
* This program is free software: you can redistribute it and/or modify
4+
* it under the terms of the GNU General Public License as published by
5+
* the Free Software Foundation, either version 3 of the License, or
6+
* (at your option) any later version.
7+
*
8+
* This program is distributed in the hope that it will be useful,
9+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
* GNU General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License
14+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15+
*/
16+
#pragma once
17+
18+
/* key matrix size */
19+
#define MATRIX_ROWS 7
20+
#define MATRIX_COLS 21
21+
22+
// I2C Config
23+
#define I2C_SDA_PIN D1
24+
#define I2C_SCL_PIN D0
25+
26+
// Matrix Pins
27+
#define MATRIX_ROW_PINS { B7, B6, B5, B4, E4, C7, E0 }
28+
#define MATRIX_COL_PINS { A2, A1, F7, F6, F5, F4, F3, F2, C5, A6, A5, A4, A3, A7, C0, C3, D3, D4, D5, D6, D7 }
29+
30+
/* Encoder Setup*/
31+
#define ENCODERS_PAD_A { F1 }
32+
#define ENCODERS_PAD_B { F0 }
33+
34+
/* COL2ROW, ROW2COL*/
35+
#define DIODE_DIRECTION COL2ROW
36+
37+
// RGB Matrix Configuration
38+
#define WS2812_DI_PIN E6
39+
#define RGB_MATRIX_LED_COUNT 131
40+
41+
42+
#define RGBLIGHT_EFFECT_BREATHING
43+
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
44+
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
45+
#define RGBLIGHT_EFFECT_SNAKE
46+
#define RGBLIGHT_EFFECT_KNIGHT
47+
#define RGBLIGHT_EFFECT_CHRISTMAS
48+
#define RGBLIGHT_EFFECT_STATIC_GRADIENT
49+
#define RGBLIGHT_EFFECT_RGB_TEST
50+
#define RGBLIGHT_EFFECT_ALTERNATING
51+
#define ENABLE_RGB_MATRIX_ALPHAS_MODS
52+
#define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
53+
#define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
54+
#define ENABLE_RGB_MATRIX_BREATHING
55+
#define ENABLE_RGB_MATRIX_BAND_SAT
56+
#define ENABLE_RGB_MATRIX_BAND_VAL
57+
#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
58+
#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
59+
#define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
60+
#define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
61+
#define ENABLE_RGB_MATRIX_CYCLE_ALL
62+
#define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
63+
#define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
64+
#define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
65+
#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN
66+
#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
67+
#define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
68+
#define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
69+
#define ENABLE_RGB_MATRIX_DUAL_BEACON
70+
#define ENABLE_RGB_MATRIX_RAINBOW_BEACON
71+
#define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
72+
#define ENABLE_RGB_MATRIX_RAINDROPS
73+
#define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
74+
#define ENABLE_RGB_MATRIX_HUE_BREATHING
75+
#define ENABLE_RGB_MATRIX_HUE_PENDULUM
76+
#define ENABLE_RGB_MATRIX_HUE_WAVE
77+
#define ENABLE_RGB_MATRIX_PIXEL_FRACTAL
78+
#define ENABLE_RGB_MATRIX_PIXEL_FLOW
79+
#define ENABLE_RGB_MATRIX_PIXEL_RAIN
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+
/* Bootmagic Lite key configuration */
119+
// #define BOOTMAGIC_LITE_ROW 0
120+
// #define BOOTMAGIC_LITE_COLUMN 0
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"keyboard_name": "128cc",
3+
"manufacturer": "CasualCoders",
4+
"maintainer": "CasualCoders",
5+
"usb": {
6+
"vid": "0x9856",
7+
"pid": "0x6969",
8+
"device_version": "2.0.0"
9+
}
10+
}

0 commit comments

Comments
 (0)