mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-28 11:47:32 +06:00
Added C3 Pro RGB
This commit is contained in:
parent
25bacce4bc
commit
0daedeb229
|
@ -1,4 +1,4 @@
|
|||
/* Copyright 2023 @ Keychron (https://www.keychron.com)
|
||||
/* Copyright 2024 @ Keychron (https://www.keychron.com)
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -16,6 +16,11 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
/* Indication led */
|
||||
#define LED_MAC_OS_PIN A4
|
||||
#define LED_WIN_OS_PIN A5
|
||||
#define LED_OS_PIN_ON_STATE 1
|
||||
|
||||
#ifdef LED_MATRIX_ENABLE
|
||||
/* RGB Matrix Driver Configuration */
|
||||
# define DRIVER_COUNT 1
|
||||
|
|
|
@ -6,6 +6,115 @@
|
|||
"features": {
|
||||
"led_matrix": true
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["C6", "C7", "C8", "A14", "A15", "C10", "C11", "C13", "C14", "C15", "C0", "C1", "C2", "C3", "A0","A1", "A2"],
|
||||
"rows": ["C12", "D2", "B3", "B4", "B5", "B6"]
|
||||
},
|
||||
"diode_direction": "ROW2COL",
|
||||
"indicators": {
|
||||
"caps_lock": "A3"
|
||||
},
|
||||
"community_layouts": [
|
||||
"tkl_ansi"
|
||||
],
|
||||
"layouts": {
|
||||
"LAYOUT_tkl_ansi": {
|
||||
"layout": [
|
||||
{"matrix":[0,0], "x":0, "y":0},
|
||||
{"matrix":[0,2], "x":2, "y":0},
|
||||
{"matrix":[0,3], "x":3, "y":0},
|
||||
{"matrix":[0,4], "x":4, "y":0},
|
||||
{"matrix":[0,5], "x":5, "y":0},
|
||||
{"matrix":[0,6], "x":6.5, "y":0},
|
||||
{"matrix":[0,7], "x":7.5, "y":0},
|
||||
{"matrix":[0,8], "x":8.5, "y":0},
|
||||
{"matrix":[0,9], "x":9.5, "y":0},
|
||||
{"matrix":[0,10], "x":11, "y":0},
|
||||
{"matrix":[0,11], "x":12, "y":0},
|
||||
{"matrix":[0,12], "x":13, "y":0},
|
||||
{"matrix":[0,13], "x":14, "y":0},
|
||||
{"matrix":[0,14], "x":15.25, "y":0},
|
||||
{"matrix":[0,15], "x":16.25, "y":0},
|
||||
{"matrix":[0,16], "x":17.25, "y":0},
|
||||
|
||||
{"matrix":[1,0], "x":0, "y":1.25},
|
||||
{"matrix":[1,1], "x":1, "y":1.25},
|
||||
{"matrix":[1,2], "x":2, "y":1.25},
|
||||
{"matrix":[1,3], "x":3, "y":1.25},
|
||||
{"matrix":[1,4], "x":4, "y":1.25},
|
||||
{"matrix":[1,5], "x":5, "y":1.25},
|
||||
{"matrix":[1,6], "x":6, "y":1.25},
|
||||
{"matrix":[1,7], "x":7, "y":1.25},
|
||||
{"matrix":[1,8], "x":8, "y":1.25},
|
||||
{"matrix":[1,9], "x":9, "y":1.25},
|
||||
{"matrix":[1,10], "x":10, "y":1.25},
|
||||
{"matrix":[1,11], "x":11, "y":1.25},
|
||||
{"matrix":[1,12], "x":12, "y":1.25},
|
||||
{"matrix":[1,13], "x":13, "y":1.25, "w":2},
|
||||
{"matrix":[1,14], "x":15.25, "y":1.25},
|
||||
{"matrix":[1,15], "x":16.25, "y":1.25},
|
||||
{"matrix":[1,16], "x":17.25, "y":1.25},
|
||||
|
||||
{"matrix":[2,0], "x":0, "y":2.25, "w":1.5},
|
||||
{"matrix":[2,1], "x":1.5, "y":2.25},
|
||||
{"matrix":[2,2], "x":2.5, "y":2.25},
|
||||
{"matrix":[2,3], "x":3.5, "y":2.25},
|
||||
{"matrix":[2,4], "x":4.5, "y":2.25},
|
||||
{"matrix":[2,5], "x":5.5, "y":2.25},
|
||||
{"matrix":[2,6], "x":6.5, "y":2.25},
|
||||
{"matrix":[2,7], "x":7.5, "y":2.25},
|
||||
{"matrix":[2,8], "x":8.5, "y":2.25},
|
||||
{"matrix":[2,9], "x":9.5, "y":2.25},
|
||||
{"matrix":[2,10], "x":10.5, "y":2.25},
|
||||
{"matrix":[2,11], "x":11.5, "y":2.25},
|
||||
{"matrix":[2,12], "x":12.5, "y":2.25},
|
||||
{"matrix":[2,13], "x":13.5, "y":2.25, "w":1.5},
|
||||
{"matrix":[2,14], "x":15.25, "y":2.25},
|
||||
{"matrix":[2,15], "x":16.25, "y":2.25},
|
||||
{"matrix":[2,16], "x":17.25, "y":2.25},
|
||||
|
||||
{"matrix":[3,0], "x":0, "y":3.25, "w":1.75},
|
||||
{"matrix":[3,1], "x":1.75, "y":3.25},
|
||||
{"matrix":[3,2], "x":2.75, "y":3.25},
|
||||
{"matrix":[3,3], "x":3.75, "y":3.25},
|
||||
{"matrix":[3,4], "x":4.75, "y":3.25},
|
||||
{"matrix":[3,5], "x":5.75, "y":3.25},
|
||||
{"matrix":[3,6], "x":6.75, "y":3.25},
|
||||
{"matrix":[3,7], "x":7.75, "y":3.25},
|
||||
{"matrix":[3,8], "x":8.75, "y":3.25},
|
||||
{"matrix":[3,9], "x":9.75, "y":3.25},
|
||||
{"matrix":[3,10], "x":10.75, "y":3.25},
|
||||
{"matrix":[3,11], "x":11.75, "y":3.25},
|
||||
{"matrix":[3,13], "x":12.75, "y":3.25, "w":2.25},
|
||||
|
||||
{"matrix":[4,0], "x":0, "y":4.25, "w":2.25},
|
||||
{"matrix":[4,2], "x":2.25, "y":4.25},
|
||||
{"matrix":[4,3], "x":3.25, "y":4.25},
|
||||
{"matrix":[4,4], "x":4.25, "y":4.25},
|
||||
{"matrix":[4,5], "x":5.25, "y":4.25},
|
||||
{"matrix":[4,6], "x":6.25, "y":4.25},
|
||||
{"matrix":[4,7], "x":7.25, "y":4.25},
|
||||
{"matrix":[4,8], "x":8.25, "y":4.25},
|
||||
{"matrix":[4,9], "x":9.25, "y":4.25},
|
||||
{"matrix":[4,10], "x":10.25, "y":4.25},
|
||||
{"matrix":[4,11], "x":11.25, "y":4.25},
|
||||
{"matrix":[4,13], "x":12.25, "y":4.25, "w":2.75},
|
||||
{"matrix":[4,15], "x":16.25, "y":4.25},
|
||||
|
||||
{"matrix":[5,0], "x":0, "y":5.25, "w":1.25},
|
||||
{"matrix":[5,1], "x":1.25, "y":5.25, "w":1.25},
|
||||
{"matrix":[5,2], "x":2.5, "y":5.25, "w":1.25},
|
||||
{"matrix":[5,6], "x":3.75, "y":5.25, "w":6.25},
|
||||
{"matrix":[5,10], "x":10, "y":5.25, "w":1.25},
|
||||
{"matrix":[5,11], "x":11.25, "y":5.25, "w":1.25},
|
||||
{"matrix":[5,12], "x":12.5, "y":5.25, "w":1.25},
|
||||
{"matrix":[5,13], "x":13.75, "y":5.25, "w":1.25},
|
||||
{"matrix":[5,14], "x":15.25, "y":5.25},
|
||||
{"matrix":[5,15], "x":16.25, "y":5.25},
|
||||
{"matrix":[5,16], "x":17.25, "y":5.25}
|
||||
]
|
||||
}
|
||||
},
|
||||
"led_matrix": {
|
||||
"driver": "ckled2001",
|
||||
"animations": {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright 2023 @ Keychron (https://www.keychron.com)
|
||||
/* Copyright 2024 @ Keychron (https://www.keychron.com)
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -17,10 +17,10 @@
|
|||
#include QMK_KEYBOARD_H
|
||||
|
||||
enum layers{
|
||||
MAC_BASE,
|
||||
MAC_FN,
|
||||
WIN_BASE,
|
||||
WIN_FN,
|
||||
MAC_BASE,
|
||||
MAC_FN,
|
||||
WIN_BASE,
|
||||
WIN_FN,
|
||||
};
|
||||
|
||||
#define KC_TASK LGUI(KC_TAB)
|
||||
|
@ -34,7 +34,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN,
|
||||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
|
||||
KC_LCTL, KC_LOPT, KC_LCMD, KC_SPC, KC_RCMD, MO(MAC_FN),KC_TRNS, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
|
||||
KC_LCTL, KC_LOPT, KC_LCMD, KC_SPC, KC_RCMD, MO(MAC_FN),KC_TRNS, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
|
||||
|
||||
[MAC_FN] = LAYOUT_tkl_ansi(
|
||||
_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, BL_STEP,
|
||||
|
@ -50,7 +50,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN,
|
||||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
|
||||
KC_LCTL, KC_LWIN, KC_LALT, KC_SPC, KC_RALT, MO(WIN_FN), KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
|
||||
KC_LCTL, KC_LWIN, KC_LALT, KC_SPC, KC_RALT, MO(WIN_FN),KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
|
||||
|
||||
[WIN_FN] = LAYOUT_tkl_ansi(
|
||||
_______, KC_BRID, KC_BRIU, KC_TASK, KC_FLXP, BL_DOWN, BL_UP, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, _______, _______, BL_STEP,
|
||||
|
@ -60,3 +60,4 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
_______, _______, _______, _______, _______, _______, NK_TOGG, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______),
|
||||
};
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include "keychron_common.h"
|
||||
#include "keychron_ft_common.h"
|
||||
|
||||
enum layers {
|
||||
enum layers{
|
||||
MAC_BASE,
|
||||
MAC_FN,
|
||||
WIN_BASE,
|
||||
|
@ -49,7 +49,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN,
|
||||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
|
||||
KC_LCTL, KC_LWIN, KC_LALT, KC_SPC, KC_RALT, MO(WIN_FN),KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
|
||||
KC_LCTL, KC_LWIN, KC_LALT, KC_SPC, KC_RALT, MO(WIN_FN), KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
|
||||
|
||||
[WIN_FN] = LAYOUT_tkl_ansi(
|
||||
_______, KC_BRID, KC_BRIU, KC_TASK, KC_FLXP, BL_DOWN, BL_UP, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, _______, KC_CRTA, BL_STEP,
|
||||
|
@ -57,10 +57,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
BL_TOGG, BL_STEP, BL_UP, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
KC_OSSW, _______, BL_DOWN, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, NK_TOGG, _______, _______, _______, _______, _______, _______,
|
||||
_______, GU_TOGG, _______, _______, _______, _______, _______, _______, _______, _______, _______),
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______),
|
||||
};
|
||||
|
||||
// clang-format on
|
||||
void housekeeping_task_user(void) {
|
||||
housekeeping_task_keychron();
|
||||
housekeeping_task_keychron_ft();
|
||||
|
|
|
@ -17,10 +17,10 @@
|
|||
#include QMK_KEYBOARD_H
|
||||
|
||||
enum layers{
|
||||
MAC_BASE,
|
||||
MAC_FN,
|
||||
WIN_BASE,
|
||||
WIN_FN,
|
||||
MAC_BASE,
|
||||
MAC_FN,
|
||||
WIN_BASE,
|
||||
WIN_FN,
|
||||
};
|
||||
|
||||
#define KC_TASK LGUI(KC_TAB)
|
||||
|
@ -28,7 +28,7 @@ enum layers{
|
|||
|
||||
// clang-format off
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[MAC_BASE] = LAYOUT_87_ansi(
|
||||
[MAC_BASE] = LAYOUT_tkl_ansi(
|
||||
KC_ESC, KC_BRID, KC_BRIU, KC_MCTL, KC_LPAD, BL_DOWN, BL_UP, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, KC_NO, KC_TRNS, KC_PAUS,
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP,
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN,
|
||||
|
@ -36,7 +36,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
|
||||
KC_LCTL, KC_LOPT, KC_LCMD, KC_SPC, KC_RCMD, MO(MAC_FN),KC_TRNS, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
|
||||
|
||||
[MAC_FN] = LAYOUT_87_ansi(
|
||||
[MAC_FN] = LAYOUT_tkl_ansi(
|
||||
_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, BL_STEP,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
BL_TOGG, BL_STEP, BL_UP, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
|
@ -44,7 +44,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
_______, _______, _______, _______, _______, _______, NK_TOGG, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______),
|
||||
|
||||
[WIN_BASE] = LAYOUT_87_ansi(
|
||||
[WIN_BASE] = LAYOUT_tkl_ansi(
|
||||
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SCRL, KC_PAUS,
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP,
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN,
|
||||
|
@ -52,7 +52,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
|
||||
KC_LCTL, KC_LWIN, KC_LALT, KC_SPC, KC_RALT, MO(WIN_FN), KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
|
||||
|
||||
[WIN_FN] = LAYOUT_87_ansi(
|
||||
[WIN_FN] = LAYOUT_tkl_ansi(
|
||||
_______, KC_BRID, KC_BRIU, KC_TASK, KC_FLXP, BL_DOWN, BL_UP, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, _______, _______, BL_STEP,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
BL_TOGG, BL_STEP, BL_UP, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
|
|
46
keyboards/keychron/c3_pro/ansi/rgb/config.h
Normal file
46
keyboards/keychron/c3_pro/ansi/rgb/config.h
Normal file
|
@ -0,0 +1,46 @@
|
|||
/* Copyright 2024 @ Keychron (https://www.keychron.com)
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
/* Enable indicator LED*/
|
||||
#define LED_MAC_OS_PIN A6
|
||||
#define LED_WIN_OS_PIN A7
|
||||
#define LED_OS_PIN_ON_STATE 1
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
/* RGB Matrix Driver Configuration */
|
||||
# define DRIVER_COUNT 2
|
||||
# define DRIVER_ADDR_1 0b1110111
|
||||
# define DRIVER_ADDR_2 0b1110100
|
||||
|
||||
/* Set LED driver current */
|
||||
#define CKLED2001_CURRENT_TUNE \
|
||||
{ 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30 }
|
||||
|
||||
/* RGB Matrix Configuration */
|
||||
#define RGB_MATRIX_LED_COUNT 99
|
||||
|
||||
/* turn off effects when suspended */
|
||||
#define RGB_DISABLE_WHEN_USB_SUSPENDED
|
||||
|
||||
// RGB Matrix Animation modes. Explicitly enabled
|
||||
// For full list of effects, see:
|
||||
// https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects
|
||||
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
|
||||
#define RGB_MATRIX_KEYPRESSES
|
||||
#endif
|
||||
|
251
keyboards/keychron/c3_pro/ansi/rgb/info.json
Normal file
251
keyboards/keychron/c3_pro/ansi/rgb/info.json
Normal file
|
@ -0,0 +1,251 @@
|
|||
{
|
||||
"usb": {
|
||||
"pid": "0x0433",
|
||||
"device_version": "1.0.1"
|
||||
},
|
||||
"features": {
|
||||
"rgb_matrix": true
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["C6", "C7", "C8", "A14", "B7", "C13", "C14", "C15", "C0", "C1", "C2", "C3", "A0", "A1", "A2", "A3", "A4"],
|
||||
"rows": ["C12", "D2", "B3", "B4", "B5", "B6"]
|
||||
},
|
||||
"diode_direction": "ROW2COL",
|
||||
"indicators": {
|
||||
"caps_lock": "A5"
|
||||
},
|
||||
"community_layouts": [
|
||||
"tkl_ansi"
|
||||
],
|
||||
"layouts": {
|
||||
"LAYOUT_tkl_ansi": {
|
||||
"layout": [
|
||||
{"matrix":[0, 0], "x":0, "y":0},
|
||||
{"matrix":[0, 2], "x":3, "y":0},
|
||||
{"matrix":[0, 3], "x":4, "y":0},
|
||||
{"matrix":[0, 4], "x":5, "y":0},
|
||||
{"matrix":[0, 5], "x":6.5, "y":0},
|
||||
{"matrix":[0, 6], "x":7.5, "y":0},
|
||||
{"matrix":[0, 7], "x":8.5, "y":0},
|
||||
{"matrix":[0, 8], "x":9.5, "y":0},
|
||||
{"matrix":[0, 9], "x":10, "y":0},
|
||||
{"matrix":[0,10], "x":11, "y":0},
|
||||
{"matrix":[0,11], "x":12, "y":0},
|
||||
{"matrix":[0,12], "x":13, "y":0},
|
||||
{"matrix":[0,13], "x":14, "y":0},
|
||||
{"matrix":[0,14], "x":15.25, "y":0},
|
||||
{"matrix":[0,15], "x":16.25, "y":0},
|
||||
{"matrix":[0,16], "x":17.25, "y":0},
|
||||
|
||||
{"matrix":[1, 0], "x":0, "y":1.25},
|
||||
{"matrix":[1, 1], "x":1, "y":1.25},
|
||||
{"matrix":[1, 2], "x":2, "y":1.25},
|
||||
{"matrix":[1, 3], "x":3, "y":1.25},
|
||||
{"matrix":[1, 4], "x":4, "y":1.25},
|
||||
{"matrix":[1, 5], "x":5, "y":1.25},
|
||||
{"matrix":[1, 6], "x":6, "y":1.25},
|
||||
{"matrix":[1, 7], "x":7, "y":1.25},
|
||||
{"matrix":[1, 8], "x":8, "y":1.25},
|
||||
{"matrix":[1, 9], "x":9, "y":1.25},
|
||||
{"matrix":[1,10], "x":10, "y":1.25},
|
||||
{"matrix":[1,11], "x":11, "y":1.25},
|
||||
{"matrix":[1,12], "x":12, "y":1.25},
|
||||
{"matrix":[1,13], "x":13, "y":1.25, "w":2},
|
||||
{"matrix":[1,14], "x":15.25, "y":1.25},
|
||||
{"matrix":[1,15], "x":16.25, "y":1.25},
|
||||
{"matrix":[1,16], "x":17.25, "y":1.25},
|
||||
|
||||
{"matrix":[2, 0], "x":0, "y":2.25, "w":1.5},
|
||||
{"matrix":[2, 1], "x":1.5, "y":2.25},
|
||||
{"matrix":[2, 2], "x":2.5, "y":2.25},
|
||||
{"matrix":[2, 3], "x":3.5, "y":2.25},
|
||||
{"matrix":[2, 4], "x":4.5, "y":2.25},
|
||||
{"matrix":[2, 5], "x":5.5, "y":2.25},
|
||||
{"matrix":[2, 6], "x":6.5, "y":2.25},
|
||||
{"matrix":[2, 7], "x":7.5, "y":2.25},
|
||||
{"matrix":[2, 8], "x":8.5, "y":2.25},
|
||||
{"matrix":[2, 9], "x":9.5, "y":2.25},
|
||||
{"matrix":[2,10], "x":10.5, "y":2.25},
|
||||
{"matrix":[2,11], "x":11.5, "y":2.25},
|
||||
{"matrix":[2,12], "x":12.5, "y":2.25},
|
||||
{"matrix":[2,13], "x":13.5, "y":2.25, "w":1.5},
|
||||
{"matrix":[2,14], "x":15.25, "y":2.25},
|
||||
{"matrix":[2,15], "x":16.25, "y":2.25},
|
||||
{"matrix":[2,16], "x":17.25, "y":2.25},
|
||||
|
||||
{"matrix":[3, 0], "x":0, "y":3.25, "w":1.75},
|
||||
{"matrix":[3, 1], "x":1.75, "y":3.25},
|
||||
{"matrix":[3, 2], "x":2.75, "y":3.25},
|
||||
{"matrix":[3, 3], "x":3.75, "y":3.25},
|
||||
{"matrix":[3, 4], "x":4.75, "y":3.25},
|
||||
{"matrix":[3, 5], "x":5.75, "y":3.25},
|
||||
{"matrix":[3, 6], "x":6.75, "y":3.25},
|
||||
{"matrix":[3, 7], "x":7.75, "y":3.25},
|
||||
{"matrix":[3, 8], "x":8.75, "y":3.25},
|
||||
{"matrix":[3, 9], "x":9.75, "y":3.25},
|
||||
{"matrix":[3,10], "x":10.75, "y":3.25},
|
||||
{"matrix":[3,11], "x":11.75, "y":3.25},
|
||||
{"matrix":[3,13], "x":12.75, "y":3.25, "w":2.25},
|
||||
|
||||
{"matrix":[4, 0], "x":0, "y":4.25, "w":2.25},
|
||||
{"matrix":[4, 2], "x":2.25, "y":4.25},
|
||||
{"matrix":[4, 3], "x":3.25, "y":4.25},
|
||||
{"matrix":[4, 4], "x":4.25, "y":4.25},
|
||||
{"matrix":[4, 5], "x":5.25, "y":4.25},
|
||||
{"matrix":[4, 6], "x":6.25, "y":4.25},
|
||||
{"matrix":[4, 7], "x":7.25, "y":4.25},
|
||||
{"matrix":[4, 8], "x":8.25, "y":4.25},
|
||||
{"matrix":[4, 9], "x":9.25, "y":4.25},
|
||||
{"matrix":[4,10], "x":10.25, "y":4.25},
|
||||
{"matrix":[4,11], "x":11.25, "y":4.25},
|
||||
{"matrix":[4,13], "x":12.25, "y":4.25, "w":2.75},
|
||||
{"matrix":[4,15], "x":16.25, "y":4.25},
|
||||
|
||||
{"matrix":[5, 0], "x":0, "y":5.25, "w":1.25},
|
||||
{"matrix":[5, 1], "x":1.25, "y":5.25, "w":1.25},
|
||||
{"matrix":[5, 2], "x":2.5, "y":5.25, "w":1.25},
|
||||
{"matrix":[5, 6], "x":3.75, "y":5.25, "w":6.25},
|
||||
{"matrix":[5,10], "x":10, "y":5.25, "w":1.25},
|
||||
{"matrix":[5,11], "x":11.25, "y":5.25, "w":1.25},
|
||||
{"matrix":[5,12], "x":12.5, "y":5.25, "w":1.25},
|
||||
{"matrix":[5,13], "x":13.75, "y":5.25, "w":1.25},
|
||||
{"matrix":[5,14], "x":15.25, "y":5.25},
|
||||
{"matrix":[5,15], "x":16.25, "y":5.25},
|
||||
{"matrix":[5,16], "x":17.25, "y":5.25}
|
||||
]
|
||||
}
|
||||
},
|
||||
"rgb_matrix": {
|
||||
"driver": "ckled2001",
|
||||
"animations": {
|
||||
"breathing": true,
|
||||
"band_spiral_val": true,
|
||||
"cycle_all": true,
|
||||
"cycle_left_right": true,
|
||||
"cycle_up_down": true,
|
||||
"rainbow_moving_chevron": true,
|
||||
"cycle_out_in": true,
|
||||
"cycle_out_in_dual": true,
|
||||
"cycle_pinwheel": true,
|
||||
"cycle_spiral": true,
|
||||
"dual_beacon": true,
|
||||
"rainbow_beacon": true,
|
||||
"jellybean_raindrops": true,
|
||||
"pixel_rain": true,
|
||||
"typing_heatmap": true,
|
||||
"digital_rain": true,
|
||||
"solid_reactive_simple": true,
|
||||
"solid_reactive_multiwide": true,
|
||||
"solid_reactive_multinexus": true,
|
||||
"splash": true,
|
||||
"solid_splash": true
|
||||
},
|
||||
"layout": [
|
||||
{"matrix":[0, 0], "flags":1, "x":0, "y":0},
|
||||
{"matrix":[0, 2], "flags":1, "x":20, "y":0},
|
||||
{"matrix":[0, 3], "flags":1, "x":30, "y":0},
|
||||
{"matrix":[0, 4], "flags":1, "x":40, "y":0},
|
||||
{"matrix":[0, 5], "flags":1, "x":50, "y":0},
|
||||
{"matrix":[0, 6], "flags":1, "x":65, "y":0},
|
||||
{"matrix":[0, 7], "flags":1, "x":75, "y":0},
|
||||
{"matrix":[0, 8], "flags":1, "x":85, "y":0},
|
||||
{"matrix":[0, 9], "flags":1, "x":95, "y":0},
|
||||
{"matrix":[0, 10], "flags":1, "x":110, "y":0},
|
||||
{"matrix":[0, 11], "flags":1, "x":120, "y":0},
|
||||
{"matrix":[0, 12], "flags":1, "x":130, "y":0},
|
||||
{"matrix":[0, 13], "flags":1, "x":140, "y":0},
|
||||
{"matrix":[0, 14], "flags":1, "x":155, "y":0},
|
||||
{"matrix":[0, 15], "flags":1, "x":165, "y":0},
|
||||
{"matrix":[0, 16], "flags":1, "x":175, "y":0},
|
||||
|
||||
{"matrix":[1, 0], "flags":4, "x":0, "y":15},
|
||||
{"matrix":[1, 1], "flags":4, "x":10, "y":15},
|
||||
{"matrix":[1, 2], "flags":4, "x":20, "y":15},
|
||||
{"matrix":[1, 3], "flags":4, "x":30, "y":15},
|
||||
{"matrix":[1, 4], "flags":4, "x":40, "y":15},
|
||||
{"matrix":[1, 5], "flags":4, "x":50, "y":15},
|
||||
{"matrix":[1, 6], "flags":4, "x":60, "y":15},
|
||||
{"matrix":[1, 7], "flags":4, "x":70, "y":15},
|
||||
{"matrix":[1, 8], "flags":4, "x":80, "y":15},
|
||||
{"matrix":[1, 9], "flags":4, "x":90, "y":15},
|
||||
{"matrix":[1, 10], "flags":4, "x":100, "y":15},
|
||||
{"matrix":[1, 11], "flags":4, "x":110, "y":15},
|
||||
{"matrix":[1, 12], "flags":4, "x":120, "y":15},
|
||||
{"matrix":[1, 13], "flags":1, "x":135, "y":15},
|
||||
{"matrix":[1, 14], "flags":1, "x":155, "y":15},
|
||||
{"matrix":[1, 15], "flags":1, "x":165, "y":15},
|
||||
{"matrix":[1, 16], "flags":1, "x":175, "y":15},
|
||||
|
||||
{"matrix":[2, 0], "flags":1, "x":3, "y":27},
|
||||
{"matrix":[2, 1], "flags":4, "x":16, "y":27},
|
||||
{"matrix":[2, 2], "flags":4, "x":26, "y":27},
|
||||
{"matrix":[2, 3], "flags":4, "x":36, "y":27},
|
||||
{"matrix":[2, 4], "flags":4, "x":47, "y":27},
|
||||
{"matrix":[2, 5], "flags":4, "x":57, "y":27},
|
||||
{"matrix":[2, 6], "flags":4, "x":68, "y":27},
|
||||
{"matrix":[2, 7], "flags":4, "x":78, "y":27},
|
||||
{"matrix":[2, 8], "flags":4, "x":89, "y":27},
|
||||
{"matrix":[2, 9], "flags":4, "x":99, "y":27},
|
||||
{"matrix":[2, 10], "flags":4, "x":109, "y":27},
|
||||
{"matrix":[2, 11], "flags":4, "x":120, "y":27},
|
||||
{"matrix":[2, 12], "flags":4, "x":130, "y":27},
|
||||
{"matrix":[2, 13], "flags":4, "x":143, "y":27},
|
||||
{"matrix":[2, 14], "flags":1, "x":155, "y":27},
|
||||
{"matrix":[2, 15], "flags":1, "x":165, "y":27},
|
||||
{"matrix":[2, 16], "flags":1, "x":175, "y":27},
|
||||
|
||||
{"matrix":[3, 0], "flags":8, "x":4, "y":40},
|
||||
{"matrix":[3, 1], "flags":4, "x":18, "y":40},
|
||||
{"matrix":[3, 2], "flags":4, "x":29, "y":40},
|
||||
{"matrix":[3, 3], "flags":4, "x":39, "y":40},
|
||||
{"matrix":[3, 4], "flags":4, "x":50, "y":40},
|
||||
{"matrix":[3, 5], "flags":4, "x":60, "y":40},
|
||||
{"matrix":[3, 6], "flags":4, "x":70, "y":40},
|
||||
{"matrix":[3, 7], "flags":4, "x":81, "y":40},
|
||||
{"matrix":[3, 8], "flags":4, "x":91, "y":40},
|
||||
{"matrix":[3, 9], "flags":4, "x":102, "y":40},
|
||||
{"matrix":[3, 10], "flags":4, "x":112, "y":40},
|
||||
{"matrix":[3, 11], "flags":4, "x":123, "y":40},
|
||||
{"matrix":[3, 13], "flags":4, "x":143, "y":40},
|
||||
|
||||
{"matrix":[4, 0], "flags":1, "x":7, "y":52},
|
||||
{"matrix":[4, 2], "flags":4, "x":23, "y":52},
|
||||
{"matrix":[4, 3], "flags":4, "x":34, "y":52},
|
||||
{"matrix":[4, 4], "flags":4, "x":44, "y":52},
|
||||
{"matrix":[4, 5], "flags":4, "x":55, "y":52},
|
||||
{"matrix":[4, 6], "flags":4, "x":65, "y":52},
|
||||
{"matrix":[4, 7], "flags":4, "x":76, "y":52},
|
||||
{"matrix":[4, 8], "flags":4, "x":86, "y":52},
|
||||
{"matrix":[4, 9], "flags":4, "x":96, "y":52},
|
||||
{"matrix":[4, 10], "flags":4, "x":107, "y":52},
|
||||
{"matrix":[4, 11], "flags":4, "x":117, "y":52},
|
||||
{"matrix":[4, 13], "flags":1, "x":137, "y":52},
|
||||
{"matrix":[4, 15], "flags":1, "x":165, "y":52},
|
||||
|
||||
{"matrix":[5, 0], "flags":1, "x":1, "y":64},
|
||||
{"matrix":[5, 1], "flags":1, "x":14, "y":64},
|
||||
{"matrix":[5, 2], "flags":1, "x":27, "y":64},
|
||||
{"matrix":[5, 6], "flags":4, "x":67, "y":64},
|
||||
{"matrix":[5, 10], "flags":1, "x":104, "y":64},
|
||||
{"matrix":[5, 11], "flags":1, "x":116, "y":64},
|
||||
{"matrix":[5, 12], "flags":4, "x":128, "y":64},
|
||||
{"matrix":[5, 13], "flags":1, "x":140, "y":64},
|
||||
{"matrix":[5, 14], "flags":1, "x":155, "y":64},
|
||||
{"matrix":[5, 15], "flags":1, "x":165, "y":64},
|
||||
{"matrix":[5, 16], "flags":1, "x":175, "y":64},
|
||||
|
||||
{"flags":1, "x":0, "y":0},
|
||||
{"flags":1, "x":0, "y":16},
|
||||
{"flags":1, "x":0, "y":28},
|
||||
{"flags":1, "x":0, "y":40},
|
||||
{"flags":1, "x":0, "y":52},
|
||||
{"flags":1, "x":0, "y":64},
|
||||
{"flags":1, "x":224, "y":0},
|
||||
{"flags":1, "x":224, "y":16},
|
||||
{"flags":1, "x":224, "y":28},
|
||||
{"flags":1, "x":224, "y":40},
|
||||
{"flags":1, "x":224, "y":52},
|
||||
{"flags":1, "x":224, "y":64}
|
||||
]
|
||||
}
|
||||
}
|
65
keyboards/keychron/c3_pro/ansi/rgb/keymaps/default/keymap.c
Normal file
65
keyboards/keychron/c3_pro/ansi/rgb/keymaps/default/keymap.c
Normal file
|
@ -0,0 +1,65 @@
|
|||
/* Copyright 2024 @ Keychron (https://www.keychron.com)
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
// clang-format off
|
||||
|
||||
enum layers{
|
||||
MAC_BASE,
|
||||
MAC_FN,
|
||||
WIN_BASE,
|
||||
WIN_FN,
|
||||
};
|
||||
|
||||
#define KC_TASK LGUI(KC_TAB)
|
||||
#define KC_FLXP LGUI(KC_E)
|
||||
|
||||
// clang-format off
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[MAC_BASE] = LAYOUT_tkl_ansi(
|
||||
KC_ESC, KC_BRID, KC_BRIU, KC_MCTL, KC_LPAD, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, KC_NO, KC_TRNS, RGB_MOD,
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP,
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN,
|
||||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
|
||||
KC_LCTL, KC_LOPT, KC_LCMD, KC_SPC, KC_RCMD, MO(MAC_FN), KC_APP, KC_RCTL,KC_LEFT, KC_DOWN, KC_RGHT ),
|
||||
|
||||
[MAC_FN] = LAYOUT_tkl_ansi(
|
||||
_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
RGB_TOG, RGB_MOD, RGB_VAI, RGB_HUI, RGB_SAI, RGB_SPI, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, RGB_RMOD, RGB_VAD, RGB_HUD, RGB_SAD, RGB_SPD, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, NK_TOGG, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ ),
|
||||
|
||||
[WIN_BASE] = LAYOUT_tkl_ansi(
|
||||
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR,KC_SCROLL_LOCK,KC_PAUSE,
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP,
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN,
|
||||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
|
||||
KC_LCTL, KC_LWIN, KC_LALT, KC_SPC, KC_RALT, MO(WIN_FN),KC_APP, KC_RCTL,KC_LEFT, KC_DOWN, KC_RGHT ),
|
||||
|
||||
[WIN_FN] = LAYOUT_tkl_ansi(
|
||||
_______, KC_BRID, KC_BRIU, KC_TASK, KC_FLXP, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, _______, _______, RGB_MOD,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
RGB_TOG, RGB_MOD, RGB_VAI, RGB_HUI, RGB_SAI, RGB_SPI, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, RGB_RMOD, RGB_VAD, RGB_HUD, RGB_SAD, RGB_SPD, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, NK_TOGG, _______, _______, _______, _______, _______, _______,
|
||||
_______, GU_TOGG, _______, _______, _______, _______, _______, _______, _______, _______, _______ ),
|
||||
};
|
||||
|
78
keyboards/keychron/c3_pro/ansi/rgb/keymaps/keychron/keymap.c
Normal file
78
keyboards/keychron/c3_pro/ansi/rgb/keymaps/keychron/keymap.c
Normal file
|
@ -0,0 +1,78 @@
|
|||
/* Copyright 2024 @ Keychron (https://www.keychron.com)
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
#include "keychron_common.h"
|
||||
#include "keychron_ft_common.h"
|
||||
|
||||
enum layers{
|
||||
MAC_BASE,
|
||||
MAC_FN,
|
||||
WIN_BASE,
|
||||
WIN_FN,
|
||||
};
|
||||
|
||||
// clang-format off
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[MAC_BASE] = LAYOUT_tkl_ansi(
|
||||
KC_ESC, KC_BRID, KC_BRIU, KC_MICT, KC_LAPA, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, KC_SNAP, KC_SIRI, RGB_MOD,
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP,
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN,
|
||||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
|
||||
KC_LCTL, KC_LOPTN, KC_LCMMD, KC_SPC, KC_RCMMD, MO(MAC_FN),KC_APP, KC_RCTL,KC_LEFT, KC_DOWN, KC_RGHT ),
|
||||
|
||||
[MAC_FN] = LAYOUT_tkl_ansi(
|
||||
_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
RGB_TOG, RGB_MOD, RGB_VAI, RGB_HUI, RGB_SAI, RGB_SPI, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
KC_OSSW, RGB_RMOD, RGB_VAD, RGB_HUD, RGB_SAD, RGB_SPD, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, NK_TOGG, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ ),
|
||||
|
||||
[WIN_BASE] = LAYOUT_tkl_ansi(
|
||||
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR,KC_SCROLL_LOCK,KC_PAUSE,
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP,
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN,
|
||||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
|
||||
KC_LCTL, KC_LWIN, KC_LALT, KC_SPC, KC_RALT, MO(WIN_FN),KC_APP, KC_RCTL,KC_LEFT, KC_DOWN, KC_RGHT ),
|
||||
|
||||
[WIN_FN] = LAYOUT_tkl_ansi(
|
||||
_______, KC_BRID, KC_BRIU, KC_TASK, KC_FLXP, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, _______, KC_CRTA, RGB_MOD,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
RGB_TOG, RGB_MOD, RGB_VAI, RGB_HUI, RGB_SAI, RGB_SPI, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
KC_OSSW, RGB_RMOD, RGB_VAD, RGB_HUD, RGB_SAD, RGB_SPD, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, NK_TOGG, _______, _______, _______, _______, _______, _______,
|
||||
_______, GU_TOGG, _______, _______, _______, _______, _______, _______, _______, _______, _______ ),
|
||||
};
|
||||
|
||||
// clang-format on
|
||||
void housekeeping_task_user(void) {
|
||||
housekeeping_task_keychron();
|
||||
housekeeping_task_keychron_ft();
|
||||
}
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
if (!process_record_keychron(keycode, record)) {
|
||||
return false;
|
||||
}
|
||||
if (!process_record_keychron_ft(keycode, record)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
VIA_ENABLE = yes
|
||||
|
||||
include keyboards/keychron/common/common.mk
|
63
keyboards/keychron/c3_pro/ansi/rgb/keymaps/via/keymap.c
Normal file
63
keyboards/keychron/c3_pro/ansi/rgb/keymaps/via/keymap.c
Normal file
|
@ -0,0 +1,63 @@
|
|||
/* Copyright 2024 @ Keychron (https://www.keychron.com)
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
enum layers{
|
||||
MAC_BASE,
|
||||
MAC_FN,
|
||||
WIN_BASE,
|
||||
WIN_FN,
|
||||
};
|
||||
|
||||
#define KC_TASK LGUI(KC_TAB)
|
||||
#define KC_FLXP LGUI(KC_E)
|
||||
|
||||
// clang-format off
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[MAC_BASE] = LAYOUT_tkl_ansi(
|
||||
KC_ESC, KC_BRID, KC_BRIU, KC_MCTL, KC_LPAD, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, KC_NO, KC_TRNS, RGB_MOD,
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP,
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN,
|
||||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
|
||||
KC_LCTL, KC_LOPT, KC_LCMD, KC_SPC, KC_RCMD, MO(MAC_FN), KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT ),
|
||||
|
||||
[MAC_FN] = LAYOUT_tkl_ansi(
|
||||
_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
RGB_TOG, RGB_MOD, RGB_VAI, RGB_HUI, RGB_SAI, RGB_SPI, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, RGB_RMOD, RGB_VAD, RGB_HUD, RGB_SAD, RGB_SPD, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, NK_TOGG, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ ),
|
||||
|
||||
[WIN_BASE] = LAYOUT_tkl_ansi(
|
||||
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR,KC_SCROLL_LOCK,KC_PAUSE,
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP,
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN,
|
||||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
|
||||
KC_LCTL, KC_LWIN, KC_LALT, KC_SPC, KC_RALT, MO(WIN_FN),KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT ),
|
||||
|
||||
[WIN_FN] = LAYOUT_tkl_ansi(
|
||||
_______, KC_BRID, KC_BRIU, KC_TASK, KC_FLXP, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, _______, _______, RGB_MOD,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
RGB_TOG, RGB_MOD, RGB_VAI, RGB_HUI, RGB_SAI, RGB_SPI, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, RGB_RMOD, RGB_VAD, RGB_HUD, RGB_SAD, RGB_SPD, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, NK_TOGG, _______, _______, _______, _______, _______, _______,
|
||||
_______, GU_TOGG, _______, _______, _______, _______, _______, _______, _______, _______, _______ ),
|
||||
};
|
||||
|
3
keyboards/keychron/c3_pro/ansi/rgb/keymaps/via/rules.mk
Normal file
3
keyboards/keychron/c3_pro/ansi/rgb/keymaps/via/rules.mk
Normal file
|
@ -0,0 +1,3 @@
|
|||
VIA_ENABLE = yes
|
||||
|
||||
|
135
keyboards/keychron/c3_pro/ansi/rgb/rgb.c
Normal file
135
keyboards/keychron/c3_pro/ansi/rgb/rgb.c
Normal file
|
@ -0,0 +1,135 @@
|
|||
/* Copyright 2024 @ Keychron (https://www.keychron.com)
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
// clang-format off
|
||||
const ckled2001_led PROGMEM g_ckled2001_leds[RGB_MATRIX_LED_COUNT] = {
|
||||
/* Refer to CKLED2001 manual for these locations
|
||||
|
||||
* driver
|
||||
* | R location
|
||||
* | | G location
|
||||
* | | | B location
|
||||
* | | | | */
|
||||
{0, G_1, I_1, H_1},
|
||||
{0, G_3, I_3, H_3},
|
||||
{0, G_4, I_4, H_4},
|
||||
{0, G_5, I_5, H_5},
|
||||
{0, G_6, I_6, H_6},
|
||||
{0, G_7, I_7, H_7},
|
||||
{0, G_8, I_8, H_8},
|
||||
{0, G_9, I_9, H_9},
|
||||
{0, G_10, I_10, H_10},
|
||||
{0, G_11, I_11, H_11},
|
||||
{0, G_12, I_12, H_12},
|
||||
{0, G_13, I_13, H_13},
|
||||
{0, G_14, I_14, H_14},
|
||||
{0, G_15, I_15, H_15},
|
||||
{0, G_16, I_16, H_16},
|
||||
{1, G_16, I_16, H_16},
|
||||
|
||||
{0, D_1, F_1, E_1},
|
||||
{0, D_2, F_2, E_2},
|
||||
{0, D_3, F_3, E_3},
|
||||
{0, D_4, F_4, E_4},
|
||||
{0, D_5, F_5, E_5},
|
||||
{0, D_6, F_6, E_6},
|
||||
{0, D_7, F_7, E_7},
|
||||
{0, D_8, F_8, E_8},
|
||||
{0, D_9, F_9, E_9},
|
||||
{0, D_10, F_10, E_10},
|
||||
{0, D_11, F_11, E_11},
|
||||
{0, D_12, F_12, E_12},
|
||||
{0, D_13, F_13, E_13},
|
||||
{0, D_14, F_14, E_14},
|
||||
{0, D_15, F_15, E_15},
|
||||
{0, D_16, F_16, E_16},
|
||||
{1, G_13, I_13, H_13},
|
||||
|
||||
{0, A_1, C_1, B_1},
|
||||
{0, A_2, C_2, B_2},
|
||||
{0, A_3, C_3, B_3},
|
||||
{0, A_4, C_4, B_4},
|
||||
{0, A_5, C_5, B_5},
|
||||
{0, A_6, C_6, B_6},
|
||||
{0, A_7, C_7, B_7},
|
||||
{0, A_8, C_8, B_8},
|
||||
{0, A_9, C_9, B_9},
|
||||
{0, A_10, C_10, B_10},
|
||||
{0, A_11, C_11, B_11},
|
||||
{0, A_12, C_12, B_12},
|
||||
{0, A_13, C_13, B_13},
|
||||
{0, A_14, C_14, B_14},
|
||||
{0, A_15, C_15, B_15},
|
||||
{0, A_16, C_16, B_16},
|
||||
{1, G_15, I_15, H_15},
|
||||
|
||||
{1, G_1, I_1, H_1},
|
||||
{1, G_2, I_2, H_2},
|
||||
{1, G_3, I_3, H_3},
|
||||
{1, G_4, I_4, H_4},
|
||||
{1, G_5, I_5, H_5},
|
||||
{1, G_6, I_6, H_6},
|
||||
{1, G_7, I_7, H_7},
|
||||
{1, G_8, I_8, H_8},
|
||||
{1, G_9, I_9, H_9},
|
||||
{1, G_10, I_10, H_10},
|
||||
{1, G_11, I_11, H_11},
|
||||
{1, G_12, I_12, H_12},
|
||||
{1, G_14, I_14, H_14},
|
||||
|
||||
{1, A_1, C_1, B_1},
|
||||
{1, A_3, C_3, B_3},
|
||||
{1, A_4, C_4, B_4},
|
||||
{1, A_5, C_5, B_5},
|
||||
{1, A_6, C_6, B_6},
|
||||
{1, A_7, C_7, B_7},
|
||||
{1, A_8, C_8, B_8},
|
||||
{1, A_9, C_9, B_9},
|
||||
{1, A_10, C_10, B_10},
|
||||
{1, A_11, C_11, B_11},
|
||||
{1, A_12, C_12, B_12},
|
||||
{1, A_14, C_14, B_14},
|
||||
{1, A_16, C_16, B_16},
|
||||
|
||||
{1, D_1, F_1, E_1},
|
||||
{1, D_2, F_2, E_2},
|
||||
{1, D_3, F_3, E_3},
|
||||
{1, D_7, F_7, E_7},
|
||||
{1, D_11, F_11, E_11},
|
||||
{1, D_12, F_12, E_12},
|
||||
{1, D_13, F_13, E_13},
|
||||
{1, D_14, F_14, E_14},
|
||||
{1, D_15, F_15, E_15},
|
||||
{1, D_16, F_16, E_16},
|
||||
{1, A_15, C_15, B_15},
|
||||
|
||||
{0, J_1, L_1, K_1},
|
||||
{0, J_2, L_2, K_2},
|
||||
{0, J_3, L_3, K_3},
|
||||
{0, J_4, L_4, K_4},
|
||||
{0, J_5, L_5, K_5},
|
||||
{0, J_6, L_6, K_6},
|
||||
{0, J_7, L_7, K_7},
|
||||
{0, J_8, L_8, K_8},
|
||||
{0, J_9, L_9, K_9},
|
||||
{0, J_10, L_10, K_10},
|
||||
{0, J_11, L_11, K_11},
|
||||
{0, J_12, L_12, K_12},
|
||||
};
|
||||
#endif
|
1
keyboards/keychron/c3_pro/ansi/rgb/rules.mk
Normal file
1
keyboards/keychron/c3_pro/ansi/rgb/rules.mk
Normal file
|
@ -0,0 +1 @@
|
|||
# This file intentionally left blank
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright 2023 @ Keychron (https://www.keychron.com)
|
||||
/* Copyright 2024 @ Keychron (https://www.keychron.com)
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -75,6 +75,44 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
|
|||
}
|
||||
|
||||
switch (keycode) {
|
||||
#ifdef LED_MATRIX_ENABLE
|
||||
case BL_TOGG:
|
||||
if (record->event.pressed) {
|
||||
switch (led_matrix_get_flags()) {
|
||||
case LED_FLAG_ALL: {
|
||||
led_matrix_set_flags(LED_FLAG_NONE);
|
||||
led_matrix_set_value_all(0);
|
||||
} break;
|
||||
default: {
|
||||
led_matrix_set_flags(LED_FLAG_ALL);
|
||||
} break;
|
||||
}
|
||||
}
|
||||
if (!led_matrix_get_val()) {
|
||||
led_matrix_set_flags(LED_FLAG_ALL);
|
||||
led_matrix_increase_val();
|
||||
}
|
||||
return false;
|
||||
#endif
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
case RGB_TOG:
|
||||
if (record->event.pressed) {
|
||||
switch (rgb_matrix_get_flags()) {
|
||||
case LED_FLAG_ALL: {
|
||||
rgb_matrix_set_flags(LED_FLAG_NONE);
|
||||
rgb_matrix_set_color_all(0, 0, 0);
|
||||
} break;
|
||||
default: {
|
||||
rgb_matrix_set_flags(LED_FLAG_ALL);
|
||||
} break;
|
||||
}
|
||||
}
|
||||
if(!rgb_matrix_get_val()){
|
||||
rgb_matrix_set_flags(LED_FLAG_ALL);
|
||||
rgb_matrix_increase_val();
|
||||
}
|
||||
return false;
|
||||
#endif
|
||||
case KC_OSSW:
|
||||
if (record->event.pressed) {
|
||||
default_layer_xor(1U << 0);
|
||||
|
@ -88,6 +126,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef LED_MATRIX_ENABLE
|
||||
bool led_matrix_indicators_kb(void) {
|
||||
if (!led_matrix_indicators_user()) {
|
||||
return false;
|
||||
|
@ -99,7 +138,19 @@ bool led_matrix_indicators_kb(void) {
|
|||
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
bool rgb_matrix_indicators_kb(void){
|
||||
if(!rgb_matrix_indicators_user()){
|
||||
return false;
|
||||
}
|
||||
if(os_switch_indicate_count){
|
||||
rgb_matrix_set_color_all(os_switch_indicate_count % 2 ? 0 : RGB_RED);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
void suspend_power_down_kb(void) {
|
||||
writePin(LED_WIN_OS_PIN, !LED_OS_PIN_ON_STATE);
|
||||
writePin(LED_MAC_OS_PIN, !LED_OS_PIN_ON_STATE);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright 2023 @ Keychron (https://www.keychron.com)
|
||||
/* Copyright 2024 @ Keychron (https://www.keychron.com)
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright 2023 @ Keychron(https://www.keychron.com)
|
||||
/* Copyright 2024 @ Keychron(https://www.keychron.com)
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -20,11 +20,6 @@
|
|||
#define WEAR_LEVELING_LOGICAL_SIZE 2048
|
||||
#define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2)
|
||||
|
||||
/* Indication led */
|
||||
#define LED_MAC_OS_PIN A4
|
||||
#define LED_WIN_OS_PIN A5
|
||||
#define LED_OS_PIN_ON_STATE 1
|
||||
|
||||
/* I2C driver Configuration */
|
||||
#define I2C1_SCL_PIN B8
|
||||
#define I2C1_SDA_PIN B9
|
||||
|
@ -34,3 +29,4 @@
|
|||
/* Factory test keys */
|
||||
#define FN_KEY1 MO(1)
|
||||
#define FN_KEY2 MO(3)
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright 2020 QMK
|
||||
/* Copyright 2024 @ Keychron (https://www.keychron.com)
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"keyboard_name": "Keychron C3 Pro",
|
||||
"manufacturer": "Keychron",
|
||||
"url": "https://github.com/Keychron",
|
||||
"maintainer": "lalalademaxiya1",
|
||||
"maintainer": "Joe",
|
||||
"processor": "STM32F401",
|
||||
"bootloader": "stm32-dfu",
|
||||
"usb": {
|
||||
|
@ -15,114 +15,5 @@
|
|||
"extrakey": true,
|
||||
"mousekey": true,
|
||||
"nkro": true
|
||||
},
|
||||
"indicators": {
|
||||
"caps_lock": "A3"
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["C6", "C7", "C8", "A14", "A15", "C10", "C11", "C13", "C14", "C15", "C0", "C1", "C2", "C3", "A0","A1", "A2"],
|
||||
"rows": ["C12", "D2", "B3", "B4", "B5", "B6"]
|
||||
},
|
||||
"diode_direction": "ROW2COL",
|
||||
"community_layouts": [
|
||||
"tkl_ansi"
|
||||
],
|
||||
"layouts": {
|
||||
"LAYOUT_tkl_ansi": {
|
||||
"layout": [
|
||||
{"matrix":[0,0], "x":0, "y":0},
|
||||
{"matrix":[0,2], "x":2, "y":0},
|
||||
{"matrix":[0,3], "x":3, "y":0},
|
||||
{"matrix":[0,4], "x":4, "y":0},
|
||||
{"matrix":[0,5], "x":5, "y":0},
|
||||
{"matrix":[0,6], "x":6.5, "y":0},
|
||||
{"matrix":[0,7], "x":7.5, "y":0},
|
||||
{"matrix":[0,8], "x":8.5, "y":0},
|
||||
{"matrix":[0,9], "x":9.5, "y":0},
|
||||
{"matrix":[0,10], "x":11, "y":0},
|
||||
{"matrix":[0,11], "x":12, "y":0},
|
||||
{"matrix":[0,12], "x":13, "y":0},
|
||||
{"matrix":[0,13], "x":14, "y":0},
|
||||
{"matrix":[0,14], "x":15.25, "y":0},
|
||||
{"matrix":[0,15], "x":16.25, "y":0},
|
||||
{"matrix":[0,16], "x":17.25, "y":0},
|
||||
|
||||
{"matrix":[1,0], "x":0, "y":1.25},
|
||||
{"matrix":[1,1], "x":1, "y":1.25},
|
||||
{"matrix":[1,2], "x":2, "y":1.25},
|
||||
{"matrix":[1,3], "x":3, "y":1.25},
|
||||
{"matrix":[1,4], "x":4, "y":1.25},
|
||||
{"matrix":[1,5], "x":5, "y":1.25},
|
||||
{"matrix":[1,6], "x":6, "y":1.25},
|
||||
{"matrix":[1,7], "x":7, "y":1.25},
|
||||
{"matrix":[1,8], "x":8, "y":1.25},
|
||||
{"matrix":[1,9], "x":9, "y":1.25},
|
||||
{"matrix":[1,10], "x":10, "y":1.25},
|
||||
{"matrix":[1,11], "x":11, "y":1.25},
|
||||
{"matrix":[1,12], "x":12, "y":1.25},
|
||||
{"matrix":[1,13], "x":13, "y":1.25, "w":2},
|
||||
{"matrix":[1,14], "x":15.25, "y":1.25},
|
||||
{"matrix":[1,15], "x":16.25, "y":1.25},
|
||||
{"matrix":[1,16], "x":17.25, "y":1.25},
|
||||
|
||||
{"matrix":[2,0], "x":0, "y":2.25, "w":1.5},
|
||||
{"matrix":[2,1], "x":1.5, "y":2.25},
|
||||
{"matrix":[2,2], "x":2.5, "y":2.25},
|
||||
{"matrix":[2,3], "x":3.5, "y":2.25},
|
||||
{"matrix":[2,4], "x":4.5, "y":2.25},
|
||||
{"matrix":[2,5], "x":5.5, "y":2.25},
|
||||
{"matrix":[2,6], "x":6.5, "y":2.25},
|
||||
{"matrix":[2,7], "x":7.5, "y":2.25},
|
||||
{"matrix":[2,8], "x":8.5, "y":2.25},
|
||||
{"matrix":[2,9], "x":9.5, "y":2.25},
|
||||
{"matrix":[2,10], "x":10.5, "y":2.25},
|
||||
{"matrix":[2,11], "x":11.5, "y":2.25},
|
||||
{"matrix":[2,12], "x":12.5, "y":2.25},
|
||||
{"matrix":[2,13], "x":13.5, "y":2.25, "w":1.5},
|
||||
{"matrix":[2,14], "x":15.25, "y":2.25},
|
||||
{"matrix":[2,15], "x":16.25, "y":2.25},
|
||||
{"matrix":[2,16], "x":17.25, "y":2.25},
|
||||
|
||||
{"matrix":[3,0], "x":0, "y":3.25, "w":1.75},
|
||||
{"matrix":[3,1], "x":1.75, "y":3.25},
|
||||
{"matrix":[3,2], "x":2.75, "y":3.25},
|
||||
{"matrix":[3,3], "x":3.75, "y":3.25},
|
||||
{"matrix":[3,4], "x":4.75, "y":3.25},
|
||||
{"matrix":[3,5], "x":5.75, "y":3.25},
|
||||
{"matrix":[3,6], "x":6.75, "y":3.25},
|
||||
{"matrix":[3,7], "x":7.75, "y":3.25},
|
||||
{"matrix":[3,8], "x":8.75, "y":3.25},
|
||||
{"matrix":[3,9], "x":9.75, "y":3.25},
|
||||
{"matrix":[3,10], "x":10.75, "y":3.25},
|
||||
{"matrix":[3,11], "x":11.75, "y":3.25},
|
||||
{"matrix":[3,13], "x":12.75, "y":3.25, "w":2.25},
|
||||
|
||||
{"matrix":[4,0], "x":0, "y":4.25, "w":2.25},
|
||||
{"matrix":[4,2], "x":2.25, "y":4.25},
|
||||
{"matrix":[4,3], "x":3.25, "y":4.25},
|
||||
{"matrix":[4,4], "x":4.25, "y":4.25},
|
||||
{"matrix":[4,5], "x":5.25, "y":4.25},
|
||||
{"matrix":[4,6], "x":6.25, "y":4.25},
|
||||
{"matrix":[4,7], "x":7.25, "y":4.25},
|
||||
{"matrix":[4,8], "x":8.25, "y":4.25},
|
||||
{"matrix":[4,9], "x":9.25, "y":4.25},
|
||||
{"matrix":[4,10], "x":10.25, "y":4.25},
|
||||
{"matrix":[4,11], "x":11.25, "y":4.25},
|
||||
{"matrix":[4,13], "x":12.25, "y":4.25, "w":2.75},
|
||||
{"matrix":[4,15], "x":16.25, "y":4.25},
|
||||
|
||||
{"matrix":[5,0], "x":0, "y":5.25, "w":1.25},
|
||||
{"matrix":[5,1], "x":1.25, "y":5.25, "w":1.25},
|
||||
{"matrix":[5,2], "x":2.5, "y":5.25, "w":1.25},
|
||||
{"matrix":[5,6], "x":3.75, "y":5.25, "w":6.25},
|
||||
{"matrix":[5,10], "x":10, "y":5.25, "w":1.25},
|
||||
{"matrix":[5,11], "x":11.25, "y":5.25, "w":1.25},
|
||||
{"matrix":[5,12], "x":12.5, "y":5.25, "w":1.25},
|
||||
{"matrix":[5,13], "x":13.75, "y":5.25, "w":1.25},
|
||||
{"matrix":[5,14], "x":15.25, "y":5.25},
|
||||
{"matrix":[5,15], "x":16.25, "y":5.25},
|
||||
{"matrix":[5,16], "x":17.25, "y":5.25}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright 2020 QMK
|
||||
/* Copyright 2024 @ Keychron (https://www.keychron.com)
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Keychron C3
|
||||
# Keychron C3 Pro
|
||||
|
||||
![Keychron C3](https://i.imgur.com/b4FTJsf.jpg)
|
||||
![Keychron C3 Pro](https://i.imgur.com/b4FTJsf.jpg)
|
||||
|
||||
A customizable 87% keyboard.
|
||||
|
||||
|
@ -10,11 +10,13 @@ A customizable 87% keyboard.
|
|||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make keychron/c3/ansi/white:default
|
||||
make keychron/c3_pro/ansi/red:default
|
||||
make keychron/c3_pro/ansi/rgb:default
|
||||
|
||||
Flashing example for this keyboard:
|
||||
|
||||
make keychron/c3/ansi/white:default:flash
|
||||
make keychron/c3_pro/ansi/red:default:flash
|
||||
make keychron/c3_pro/ansi/rgb:default:flash
|
||||
|
||||
## bootloader
|
||||
|
||||
|
|
286
keyboards/keychron/c3_pro/via_json/c3_pro_ansi_rgb.json
Normal file
286
keyboards/keychron/c3_pro/via_json/c3_pro_ansi_rgb.json
Normal file
|
@ -0,0 +1,286 @@
|
|||
{
|
||||
"name": "Keychron C3 Pro ANSI RGB",
|
||||
"vendorId": "0x3434",
|
||||
"productId": "0x0433",
|
||||
"keycodes" : ["qmk_lighting"],
|
||||
"menus": [
|
||||
{
|
||||
"label": "Lighting",
|
||||
"content": [
|
||||
{
|
||||
"label": "Backlight",
|
||||
"content": [
|
||||
{
|
||||
"label": "Brightness",
|
||||
"type": "range",
|
||||
"options": [0, 255],
|
||||
"content": ["id_qmk_rgb_matrix_brightness", 3, 1]
|
||||
},
|
||||
{
|
||||
"label": "Effect",
|
||||
"type": "dropdown",
|
||||
"content": ["id_qmk_rgb_matrix_effect", 3, 2],
|
||||
"options": [
|
||||
["None", 0],
|
||||
["Solid Color", 1],
|
||||
["Breathing", 2],
|
||||
["Band Spiral Val", 3],
|
||||
["Cycle All", 4],
|
||||
["Cycle Left Right", 5],
|
||||
["Cycle Up Down", 6],
|
||||
["Rainbow Moving Chevron", 7],
|
||||
["Cycle Out In", 8],
|
||||
["Cycle Out In Dual", 9],
|
||||
["Cycle Pinwheel", 10],
|
||||
["Cycle Spiral", 11],
|
||||
["Dual Beacon", 12],
|
||||
["Rainbow Beacon", 13],
|
||||
["Jellybean Raindrops", 14],
|
||||
["Pixel Rain", 15],
|
||||
["Typing Heatmap", 16],
|
||||
["Digital Rain", 17],
|
||||
["Reactive Simple", 18],
|
||||
["Reactive Multiwide", 19],
|
||||
["Reactive Multinexus", 20],
|
||||
["Splash", 21],
|
||||
["Solid Splash", 22]
|
||||
]
|
||||
},
|
||||
{
|
||||
"showIf": "{id_qmk_rgb_matrix_effect} > 1",
|
||||
"label": "Effect Speed",
|
||||
"type": "range",
|
||||
"options": [0, 255],
|
||||
"content": ["id_qmk_rgb_matrix_effect_speed", 3, 3]
|
||||
},
|
||||
{
|
||||
"showIf": "{id_qmk_rgb_matrix_effect} != 0 && ( {id_qmk_rgb_matrix_effect} < 4 || {id_qmk_rgb_matrix_effect} == 18 || ({id_qmk_rgb_matrix_effect} > 17 && {id_qmk_rgb_matrix_effect} != 21) ) ",
|
||||
"label": "Color",
|
||||
"type": "color",
|
||||
"content": ["id_qmk_rgb_matrix_color", 3, 4]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"customKeycodes": [
|
||||
{"name": "Mission Control", "title": "Mission Control in macOS", "shortName": "MCtrl"},
|
||||
{"name": "Launch Pad", "title": "Launch Pad in macOS", "shortName": "LPad"},
|
||||
{"name": "Left Option", "title": "Left Option in macOS", "shortName": "LOpt"},
|
||||
{"name": "Right Option", "title": "Right Option in macOS", "shortName": "ROpt"},
|
||||
{"name": "Left Cmd", "title": "Left Command in macOS", "shortName": "LCmd"},
|
||||
{"name": "Right Cmd", "title": "Right Command in macOS", "shortName": "RCmd"},
|
||||
{"name": "Siri", "title": "Siri in macOS", "shortName": "Siri"},
|
||||
{"name": "Task View", "title": "Task View in windows", "shortName": "Task"},
|
||||
{"name": "File Explorer", "title": "File Explorer in windows", "shortName": "File"},
|
||||
{"name": "Screen Shot", "title": "Screenshot in macOS", "shortName": "SShot"},
|
||||
{"name": "Cortana", "title": "Cortana in windows", "shortName": "Cortana"},
|
||||
{"name": "Mac/Win", "title": "Switch between Windows and mac OS", "shortName": "Mac/Win"}
|
||||
],
|
||||
"matrix": {"rows": 6, "cols": 17},
|
||||
"layouts": {
|
||||
"keymap": [
|
||||
[
|
||||
{
|
||||
"c": "#777777"
|
||||
},
|
||||
"0,0",
|
||||
{
|
||||
"x": 1,
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"0,2",
|
||||
"0,3",
|
||||
"0,4",
|
||||
"0,5",
|
||||
{
|
||||
"x": 0.5,
|
||||
"c": "#aaaaaa"
|
||||
},
|
||||
"0,6",
|
||||
"0,7",
|
||||
"0,8",
|
||||
"0,9",
|
||||
{
|
||||
"x": 0.5,
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"0,10",
|
||||
"0,11",
|
||||
"0,12",
|
||||
"0,13",
|
||||
{
|
||||
"x": 0.25,
|
||||
"c": "#aaaaaa"
|
||||
},
|
||||
"0,14",
|
||||
"0,15",
|
||||
"0,16"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": 0.25
|
||||
},
|
||||
"1,0",
|
||||
{
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"1,1",
|
||||
"1,2",
|
||||
"1,3",
|
||||
"1,4",
|
||||
"1,5",
|
||||
"1,6",
|
||||
"1,7",
|
||||
"1,8",
|
||||
"1,9",
|
||||
"1,10",
|
||||
"1,11",
|
||||
"1,12",
|
||||
{
|
||||
"c": "#aaaaaa",
|
||||
"w": 2
|
||||
},
|
||||
"1,13",
|
||||
{
|
||||
"x": 0.25
|
||||
},
|
||||
"1,14",
|
||||
"1,15",
|
||||
"1,16"
|
||||
],
|
||||
[
|
||||
{
|
||||
"w": 1.5
|
||||
},
|
||||
"2,0",
|
||||
{
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"2,1",
|
||||
"2,2",
|
||||
"2,3",
|
||||
"2,4",
|
||||
"2,5",
|
||||
"2,6",
|
||||
"2,7",
|
||||
"2,8",
|
||||
"2,9",
|
||||
"2,10",
|
||||
"2,11",
|
||||
"2,12",
|
||||
{
|
||||
"c": "#aaaaaa",
|
||||
"w": 1.5
|
||||
},
|
||||
"2,13",
|
||||
{
|
||||
"x": 0.25
|
||||
},
|
||||
"2,14",
|
||||
"2,15",
|
||||
"2,16"
|
||||
],
|
||||
[
|
||||
{
|
||||
"w": 1.75
|
||||
},
|
||||
"3,0",
|
||||
{
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"3,1",
|
||||
"3,2",
|
||||
"3,3",
|
||||
"3,4",
|
||||
"3,5",
|
||||
"3,6",
|
||||
"3,7",
|
||||
"3,8",
|
||||
"3,9",
|
||||
"3,10",
|
||||
"3,11",
|
||||
{
|
||||
"c": "#777777",
|
||||
"w": 2.25
|
||||
},
|
||||
"3,13"
|
||||
],
|
||||
[
|
||||
{
|
||||
"c": "#aaaaaa",
|
||||
"w": 2.25
|
||||
},
|
||||
"4,0",
|
||||
{
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"4,2",
|
||||
"4,3",
|
||||
"4,4",
|
||||
"4,5",
|
||||
"4,6",
|
||||
"4,7",
|
||||
"4,8",
|
||||
"4,9",
|
||||
"4,10",
|
||||
"4,11",
|
||||
{
|
||||
"c": "#aaaaaa",
|
||||
"w": 2.75
|
||||
},
|
||||
"4,13",
|
||||
{
|
||||
"x": 1.25,
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"4,15"
|
||||
],
|
||||
[
|
||||
{
|
||||
"c": "#aaaaaa",
|
||||
"w": 1.25
|
||||
},
|
||||
"5,0",
|
||||
{
|
||||
"w": 1.25
|
||||
},
|
||||
"5,1",
|
||||
{
|
||||
"w": 1.25
|
||||
},
|
||||
"5,2",
|
||||
{
|
||||
"c": "#777777",
|
||||
"w": 6.25
|
||||
},
|
||||
"5,6",
|
||||
{
|
||||
"c": "#aaaaaa",
|
||||
"w": 1.25
|
||||
},
|
||||
"5,10",
|
||||
{
|
||||
"w": 1.25
|
||||
},
|
||||
"5,11",
|
||||
{
|
||||
"w": 1.25
|
||||
},
|
||||
"5,12",
|
||||
{
|
||||
"w": 1.25
|
||||
},
|
||||
"5,13",
|
||||
{
|
||||
"x": 0.25,
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"5,14",
|
||||
"5,15",
|
||||
"5,16"
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user