From 2e90a7b3340e3c52f52fdfc52c11b4366a8143a5 Mon Sep 17 00:00:00 2001 From: Eduardo Speroni Date: Wed, 2 Dec 2026 15:49:39 -0300 Subject: [PATCH] Add Keychron C3 Pro 8K ABNT2 ISO layout plus KC_INT1 at (4,12) with a 1.75u right Shift, and KC_BSLS at (3,13). Adds LED 75 (CB1_CA13), shifting later LED indices by one. Config matches the official ABNT2 v1.0.0 firmware: LED current 0x25, WIN_LOCK_HOLD_TIME 3000 and WINLOCK_LED_LIST { 79 }. --- keyboards/keychron/c3_pro_8k/abnt2/abnt2.c | 168 ++++++++++++++ keyboards/keychron/c3_pro_8k/abnt2/config.h | 36 +++ .../keychron/c3_pro_8k/abnt2/keyboard.json | 217 ++++++++++++++++++ .../c3_pro_8k/abnt2/keymaps/default/keymap.c | 63 +++++ .../c3_pro_8k/abnt2/keymaps/keychron/keymap.c | 63 +++++ .../c3_pro_8k/abnt2/keymaps/keychron/rules.mk | 1 + keyboards/keychron/c3_pro_8k/abnt2/rules.mk | 1 + keyboards/keychron/c3_pro_8k/readme.md | 2 + 8 files changed, 551 insertions(+) create mode 100644 keyboards/keychron/c3_pro_8k/abnt2/abnt2.c create mode 100644 keyboards/keychron/c3_pro_8k/abnt2/config.h create mode 100644 keyboards/keychron/c3_pro_8k/abnt2/keyboard.json create mode 100644 keyboards/keychron/c3_pro_8k/abnt2/keymaps/default/keymap.c create mode 100644 keyboards/keychron/c3_pro_8k/abnt2/keymaps/keychron/keymap.c create mode 100644 keyboards/keychron/c3_pro_8k/abnt2/keymaps/keychron/rules.mk create mode 100644 keyboards/keychron/c3_pro_8k/abnt2/rules.mk diff --git a/keyboards/keychron/c3_pro_8k/abnt2/abnt2.c b/keyboards/keychron/c3_pro_8k/abnt2/abnt2.c new file mode 100644 index 000000000000..89991e0a39c4 --- /dev/null +++ b/keyboards/keychron/c3_pro_8k/abnt2/abnt2.c @@ -0,0 +1,168 @@ +/* Copyright 2025 @ 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 . + */ + +#include "quantum.h" + +#ifdef RGB_MATRIX_ENABLE +// clang-format off +const snled27351_led_t PROGMEM g_snled27351_leds[RGB_MATRIX_LED_COUNT] = { +/* Refer to SNLED27351 manual for these locations + * driver + * | R location + * | | G location + * | | | B location + * | | | | */ + {0, CB4_CA1, CB6_CA1, CB5_CA1}, + {0, CB4_CA3, CB6_CA3, CB5_CA3}, + {0, CB4_CA4, CB6_CA4, CB5_CA4}, + {0, CB4_CA5, CB6_CA5, CB5_CA5}, + {0, CB4_CA6, CB6_CA6, CB5_CA6}, + {0, CB4_CA7, CB6_CA7, CB5_CA7}, + {0, CB4_CA8, CB6_CA8, CB5_CA8}, + {0, CB4_CA9, CB6_CA9, CB5_CA9}, + {0, CB4_CA10, CB6_CA10, CB5_CA10}, + {0, CB4_CA11, CB6_CA11, CB5_CA11}, + {0, CB4_CA12, CB6_CA12, CB5_CA12}, + {0, CB4_CA13, CB6_CA13, CB5_CA13}, + {0, CB4_CA14, CB6_CA14, CB5_CA14}, + {0, CB4_CA15, CB6_CA15, CB5_CA15}, + {0, CB4_CA16, CB6_CA16, CB5_CA16}, + {1, CB7_CA16, CB9_CA16, CB8_CA16}, + + {0, CB7_CA1, CB9_CA1, CB8_CA1}, + {0, CB7_CA2, CB9_CA2, CB8_CA2}, + {0, CB7_CA3, CB9_CA3, CB8_CA3}, + {0, CB7_CA4, CB9_CA4, CB8_CA4}, + {0, CB7_CA5, CB9_CA5, CB8_CA5}, + {0, CB7_CA6, CB9_CA6, CB8_CA6}, + {0, CB7_CA7, CB9_CA7, CB8_CA7}, + {0, CB7_CA8, CB9_CA8, CB8_CA8}, + {0, CB7_CA9, CB9_CA9, CB8_CA9}, + {0, CB7_CA10, CB9_CA10, CB8_CA10}, + {0, CB7_CA11, CB9_CA11, CB8_CA11}, + {0, CB7_CA12, CB9_CA12, CB8_CA12}, + {0, CB7_CA13, CB9_CA13, CB8_CA13}, + {0, CB7_CA14, CB9_CA14, CB8_CA14}, + {0, CB7_CA15, CB9_CA15, CB8_CA15}, + {0, CB7_CA16, CB9_CA16, CB8_CA16}, + {1, CB7_CA13, CB9_CA13, CB8_CA13}, + + {0, CB1_CA1, CB3_CA1, CB2_CA1}, + {0, CB1_CA2, CB3_CA2, CB2_CA2}, + {0, CB1_CA3, CB3_CA3, CB2_CA3}, + {0, CB1_CA4, CB3_CA4, CB2_CA4}, + {0, CB1_CA5, CB3_CA5, CB2_CA5}, + {0, CB1_CA6, CB3_CA6, CB2_CA6}, + {0, CB1_CA7, CB3_CA7, CB2_CA7}, + {0, CB1_CA8, CB3_CA8, CB2_CA8}, + {0, CB1_CA9, CB3_CA9, CB2_CA9}, + {0, CB1_CA10, CB3_CA10, CB2_CA10}, + {0, CB1_CA11, CB3_CA11, CB2_CA11}, + {0, CB1_CA12, CB3_CA12, CB2_CA12}, + {0, CB1_CA13, CB3_CA13, CB2_CA13}, + {0, CB1_CA14, CB3_CA14, CB2_CA14}, + {0, CB1_CA15, CB3_CA15, CB2_CA15}, + {0, CB1_CA16, CB3_CA16, CB2_CA16}, + {1, CB7_CA15, CB9_CA15, CB8_CA15}, + + {1, CB7_CA1, CB9_CA1, CB8_CA1}, + {1, CB7_CA2, CB9_CA2, CB8_CA2}, + {1, CB7_CA3, CB9_CA3, CB8_CA3}, + {1, CB7_CA4, CB9_CA4, CB8_CA4}, + {1, CB7_CA5, CB9_CA5, CB8_CA5}, + {1, CB7_CA6, CB9_CA6, CB8_CA6}, + {1, CB7_CA7, CB9_CA7, CB8_CA7}, + {1, CB7_CA8, CB9_CA8, CB8_CA8}, + {1, CB7_CA9, CB9_CA9, CB8_CA9}, + {1, CB7_CA10, CB9_CA10, CB8_CA10}, + {1, CB7_CA11, CB9_CA11, CB8_CA11}, + {1, CB7_CA12, CB9_CA12, CB8_CA12}, + {1, CB7_CA14, CB9_CA14, CB8_CA14}, + + {1, CB1_CA1, CB3_CA1, CB2_CA1}, + {1, CB1_CA2, CB3_CA2, CB2_CA2}, + {1, CB1_CA3, CB3_CA3, CB2_CA3}, + {1, CB1_CA4, CB3_CA4, CB2_CA4}, + {1, CB1_CA5, CB3_CA5, CB2_CA5}, + {1, CB1_CA6, CB3_CA6, CB2_CA6}, + {1, CB1_CA7, CB3_CA7, CB2_CA7}, + {1, CB1_CA8, CB3_CA8, CB2_CA8}, + {1, CB1_CA9, CB3_CA9, CB2_CA9}, + {1, CB1_CA10, CB3_CA10, CB2_CA10}, + {1, CB1_CA11, CB3_CA11, CB2_CA11}, + {1, CB1_CA12, CB3_CA12, CB2_CA12}, + {1, CB1_CA13, CB3_CA13, CB2_CA13}, + {1, CB1_CA14, CB3_CA14, CB2_CA14}, + {1, CB1_CA16, CB3_CA16, CB2_CA16}, + + {1, CB4_CA1, CB6_CA1, CB5_CA1}, + {1, CB4_CA2, CB6_CA2, CB5_CA2}, + {1, CB4_CA3, CB6_CA3, CB5_CA3}, + {1, CB4_CA7, CB6_CA7, CB5_CA7}, + {1, CB4_CA11, CB6_CA11, CB5_CA11}, + {1, CB4_CA12, CB6_CA12, CB5_CA12}, + {1, CB4_CA13, CB6_CA13, CB5_CA13}, + {1, CB4_CA14, CB6_CA14, CB5_CA14}, + {1, CB4_CA15, CB6_CA15, CB5_CA15}, + {1, CB4_CA16, CB6_CA16, CB5_CA16}, + {1, CB1_CA15, CB3_CA15, CB2_CA15}, + + {0, CB10_CA1, CB12_CA1, CB11_CA1}, + {0, CB10_CA2, CB12_CA2, CB11_CA2}, + {0, CB10_CA3, CB12_CA3, CB11_CA3}, + {0, CB10_CA4, CB12_CA4, CB11_CA4}, + {0, CB10_CA5, CB12_CA5, CB11_CA5}, + {0, CB10_CA6, CB12_CA6, CB11_CA6}, + {0, CB10_CA7, CB12_CA7, CB11_CA7}, + {0, CB10_CA8, CB12_CA8, CB11_CA8}, + {0, CB10_CA9, CB12_CA9, CB11_CA9}, + {0, CB10_CA10, CB12_CA10, CB11_CA10}, + {0, CB10_CA11, CB12_CA11, CB11_CA11}, + {0, CB10_CA12, CB12_CA12, CB11_CA12}, +}; + +// Default Color of Per Key RGB +#define DC_RED {HSV_RED} +#define DC_BLU {HSV_BLUE} +#define DC_YLW {HSV_YELLOW} + +HSV default_per_key_led[RGB_MATRIX_LED_COUNT] = { + DC_RED, DC_YLW, DC_YLW, DC_YLW, DC_YLW, DC_YLW, DC_YLW, DC_YLW, DC_YLW, DC_YLW, DC_YLW, DC_YLW, DC_YLW, DC_YLW, DC_YLW, DC_YLW, + DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_YLW, DC_YLW, DC_YLW, DC_YLW, + DC_YLW, DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_RED, DC_YLW, DC_YLW, DC_YLW, + DC_YLW, DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_BLU, + DC_YLW, DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_BLU, DC_YLW, DC_YLW, + DC_YLW, DC_YLW, DC_YLW, DC_BLU, DC_YLW, DC_YLW, DC_YLW, DC_YLW, DC_YLW, DC_YLW, DC_YLW, + // Left side leds + DC_YLW, DC_YLW, DC_YLW, DC_YLW, DC_YLW, DC_YLW, + // Right side leds + DC_YLW, DC_YLW, DC_YLW, DC_YLW, DC_YLW, DC_YLW, +}; + +// Default mixed RGB region +uint8_t default_region[RGB_MATRIX_LED_COUNT] = { + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + // Left side leds + 0, 0, 0, 0, 0, 0, + // Right side leds + 0, 0, 0, 0, 0, 0 +}; +#endif diff --git a/keyboards/keychron/c3_pro_8k/abnt2/config.h b/keyboards/keychron/c3_pro_8k/abnt2/config.h new file mode 100644 index 000000000000..7d9d8887be91 --- /dev/null +++ b/keyboards/keychron/c3_pro_8k/abnt2/config.h @@ -0,0 +1,36 @@ +/* Copyright 2025 @ 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 . + */ + +#pragma once + +#ifdef RGB_MATRIX_ENABLE +/* RGB Matrix Driver Configuration */ +# define SNLED27351_SELECT_PINS \ + { A15, C11 } + +/* RGB Matrix Configuration */ +# define RGB_MATRIX_LED_COUNT 101 + +/* Set LED driver current */ +# define SNLED27351_CURRENT_TUNE \ + { 0x25, 0x25, 0x25, 0x25, 0x25, 0x25, 0x25, 0x25, 0x25, 0x25, 0x25, 0x25 } + +/* Indications */ +# define WINLOCK_LED_LIST \ + { 79 } +# define WIN_LOCK_HOLD_TIME 3000 + +#endif diff --git a/keyboards/keychron/c3_pro_8k/abnt2/keyboard.json b/keyboards/keychron/c3_pro_8k/abnt2/keyboard.json new file mode 100644 index 000000000000..5975c3e78eee --- /dev/null +++ b/keyboards/keychron/c3_pro_8k/abnt2/keyboard.json @@ -0,0 +1,217 @@ +{ + "usb": { + "pid": "0x0536", + "device_version": "1.0.0" + }, + "layouts": { + "LAYOUT_tkl_abnt2": { + "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, 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}, + {"matrix": [2, 13], "x": 13.75, "y": 2.25, "w": 1.25, "h": 2}, + + {"matrix": [4, 0], "x": 0, "y": 4.25, "w": 1.25}, + {"matrix": [4, 1], "x": 1.25, "y": 4.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, 12], "x": 12.25, "y": 4.25}, + {"matrix": [4, 13], "x": 13.25, "y": 4.25, "w": 1.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": { + "layout": [ + {"matrix": [0, 0], "flags": 1, "x": 0, "y": 0}, + {"matrix": [0, 2], "flags": 1, "x": 26, "y": 0}, + {"matrix": [0, 3], "flags": 1, "x": 39, "y": 0}, + {"matrix": [0, 4], "flags": 1, "x": 52, "y": 0}, + {"matrix": [0, 5], "flags": 1, "x": 65, "y": 0}, + {"matrix": [0, 6], "flags": 1, "x": 84, "y": 0}, + {"matrix": [0, 7], "flags": 1, "x": 97, "y": 0}, + {"matrix": [0, 8], "flags": 1, "x": 110, "y": 0}, + {"matrix": [0, 9], "flags": 1, "x": 123, "y": 0}, + {"matrix": [0, 10], "flags": 1, "x": 143, "y": 0}, + {"matrix": [0, 11], "flags": 1, "x": 156, "y": 0}, + {"matrix": [0, 12], "flags": 1, "x": 165, "y": 0}, + {"matrix": [0, 13], "flags": 1, "x": 176, "y": 0}, + {"matrix": [0, 14], "flags": 1, "x": 187, "y": 0}, + {"matrix": [0, 15], "flags": 1, "x": 198, "y": 0}, + {"matrix": [0, 16], "flags": 1, "x": 211, "y": 0}, + + {"matrix": [1, 0], "flags": 1, "x": 0, "y": 16}, + {"matrix": [1, 1], "flags": 1, "x": 13, "y": 16}, + {"matrix": [1, 2], "flags": 1, "x": 26, "y": 16}, + {"matrix": [1, 3], "flags": 1, "x": 39, "y": 16}, + {"matrix": [1, 4], "flags": 1, "x": 52, "y": 16}, + {"matrix": [1, 5], "flags": 1, "x": 65, "y": 16}, + {"matrix": [1, 6], "flags": 1, "x": 78, "y": 16}, + {"matrix": [1, 7], "flags": 1, "x": 91, "y": 16}, + {"matrix": [1, 8], "flags": 1, "x": 105, "y": 16}, + {"matrix": [1, 9], "flags": 1, "x": 117, "y": 16}, + {"matrix": [1, 10], "flags": 1, "x": 130, "y": 16}, + {"matrix": [1, 11], "flags": 1, "x": 143, "y": 16}, + {"matrix": [1, 12], "flags": 1, "x": 156, "y": 16}, + {"matrix": [1, 13], "flags": 1, "x": 170, "y": 16}, + {"matrix": [1, 14], "flags": 1, "x": 187, "y": 16}, + {"matrix": [1, 15], "flags": 1, "x": 198, "y": 16}, + {"matrix": [1, 16], "flags": 1, "x": 211, "y": 16}, + + {"matrix": [2, 0], "flags": 1, "x": 6, "y": 26}, + {"matrix": [2, 1], "flags": 1, "x": 19, "y": 26}, + {"matrix": [2, 2], "flags": 1, "x": 32, "y": 26}, + {"matrix": [2, 3], "flags": 1, "x": 46, "y": 26}, + {"matrix": [2, 4], "flags": 1, "x": 59, "y": 26}, + {"matrix": [2, 5], "flags": 1, "x": 72, "y": 26}, + {"matrix": [2, 6], "flags": 1, "x": 85, "y": 26}, + {"matrix": [2, 7], "flags": 1, "x": 98, "y": 26}, + {"matrix": [2, 8], "flags": 1, "x": 112, "y": 26}, + {"matrix": [2, 9], "flags": 1, "x": 124, "y": 26}, + {"matrix": [2, 10], "flags": 1, "x": 137, "y": 26}, + {"matrix": [2, 11], "flags": 1, "x": 150, "y": 26}, + {"matrix": [2, 12], "flags": 1, "x": 163, "y": 26}, + {"matrix": [2, 13], "flags": 4, "x": 174, "y": 32}, + {"matrix": [2, 14], "flags": 1, "x": 187, "y": 26}, + {"matrix": [2, 15], "flags": 1, "x": 198, "y": 26}, + {"matrix": [2, 16], "flags": 1, "x": 211, "y": 26}, + + {"matrix": [3, 0], "flags": 1, "x": 7, "y": 38}, + {"matrix": [3, 1], "flags": 1, "x": 23, "y": 38}, + {"matrix": [3, 2], "flags": 1, "x": 36, "y": 38}, + {"matrix": [3, 3], "flags": 1, "x": 49, "y": 38}, + {"matrix": [3, 4], "flags": 1, "x": 62, "y": 38}, + {"matrix": [3, 5], "flags": 1, "x": 75, "y": 38}, + {"matrix": [3, 6], "flags": 1, "x": 88, "y": 38}, + {"matrix": [3, 7], "flags": 1, "x": 101, "y": 38}, + {"matrix": [3, 8], "flags": 1, "x": 114, "y": 38}, + {"matrix": [3, 9], "flags": 1, "x": 127, "y": 38}, + {"matrix": [3, 10], "flags": 1, "x": 140, "y": 38}, + {"matrix": [3, 11], "flags": 1, "x": 153, "y": 38}, + {"matrix": [3, 13], "flags": 4, "x": 164, "y": 38}, + + {"matrix": [4, 0], "flags": 1, "x": 8, "y": 49}, + {"matrix": [4, 1], "flags": 1, "x": 13, "y": 49}, + {"matrix": [4, 2], "flags": 1, "x": 29, "y": 49}, + {"matrix": [4, 3], "flags": 1, "x": 42, "y": 49}, + {"matrix": [4, 4], "flags": 1, "x": 55, "y": 49}, + {"matrix": [4, 5], "flags": 1, "x": 68, "y": 49}, + {"matrix": [4, 6], "flags": 1, "x": 81, "y": 49}, + {"matrix": [4, 7], "flags": 1, "x": 94, "y": 49}, + {"matrix": [4, 8], "flags": 1, "x": 107, "y": 49}, + {"matrix": [4, 9], "flags": 1, "x": 120, "y": 49}, + {"matrix": [4, 10], "flags": 1, "x": 133, "y": 49}, + {"matrix": [4, 11], "flags": 1, "x": 150, "y": 49}, + {"matrix": [4, 12], "flags": 1, "x": 163, "y": 49}, + {"matrix": [4, 13], "flags": 1, "x": 176, "y": 49}, + {"matrix": [4, 15], "flags": 1, "x": 198, "y": 49}, + + {"matrix": [5, 0], "flags": 1, "x": 5, "y": 64}, + {"matrix": [5, 1], "flags": 1, "x": 14, "y": 64}, + {"matrix": [5, 2], "flags": 1, "x": 34, "y": 64}, + {"matrix": [5, 6], "flags": 4, "x": 84, "y": 64}, + {"matrix": [5, 10], "flags": 1, "x": 130, "y": 64}, + {"matrix": [5, 11], "flags": 1, "x": 148, "y": 64}, + {"matrix": [5, 12], "flags": 1, "x": 164, "y": 64}, + {"matrix": [5, 13], "flags": 1, "x": 176 , "y": 64}, + {"matrix": [5, 14], "flags": 1, "x": 187, "y": 64}, + {"matrix": [5, 15], "flags": 1, "x": 198, "y": 64}, + {"matrix": [5, 16], "flags": 1, "x": 211, "y": 64}, + + {"flags": 1, "x": 5, "y": 0}, + {"flags": 1, "x": 5, "y": 16}, + {"flags": 1, "x": 5, "y": 26}, + {"flags": 1, "x": 5, "y": 38}, + {"flags": 1, "x": 5, "y": 49}, + {"flags": 1, "x": 5, "y": 64}, + {"flags": 1, "x": 218, "y": 64}, + {"flags": 1, "x": 218, "y": 49}, + {"flags": 1, "x": 218, "y": 38}, + {"flags": 1, "x": 218, "y": 26}, + {"flags": 1, "x": 218, "y": 16}, + {"flags": 1, "x": 218, "y": 0} + ] + } +} diff --git a/keyboards/keychron/c3_pro_8k/abnt2/keymaps/default/keymap.c b/keyboards/keychron/c3_pro_8k/abnt2/keymaps/default/keymap.c new file mode 100644 index 000000000000..a67f7a07c8a7 --- /dev/null +++ b/keyboards/keychron/c3_pro_8k/abnt2/keymaps/default/keymap.c @@ -0,0 +1,63 @@ +/* Copyright 2025 @ 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 . + */ + +#include QMK_KEYBOARD_H +#include "keychron_common.h" + +enum layers { + MAC_BASE, + MAC_FN, + WIN_BASE, + WIN_FN, +}; + +#define FN_MAC MO(MAC_FN) +#define FN_WIN MO(WIN_FN) + +// clang-format off +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [MAC_BASE] = LAYOUT_tkl_abnt2( + KC_ESC, KC_BRID, KC_BRIU, KC_MCTRL, KC_LNPAD, UG_VALD, UG_VALU, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, KC_SNAP, KC_SIRI, UG_NEXT, + 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_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_BSLS, KC_ENT, + KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_INT1, KC_RSFT, KC_UP, + KC_LCTL, KC_LOPTN, KC_LCMMD, KC_SPC, KC_RCMMD, KC_ROPTN, FN_MAC, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT), + + [MAC_FN] = LAYOUT_tkl_abnt2( + _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, UG_TOGG, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + UG_TOGG, UG_NEXT, UG_VALU, UG_HUEU, UG_SATU, UG_SPDU, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + OS_TOGGL, UG_PREV, UG_VALD, UG_HUED, UG_SATD, UG_SPDD, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______), + + [WIN_BASE] = LAYOUT_tkl_abnt2( + 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_CTANA, UG_NEXT, + 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_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_BSLS, KC_ENT, + KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_INT1, KC_RSFT, KC_UP, + KC_LCTL, KC_LWIN, KC_LALT, KC_SPC, KC_RALT, KC_RWIN, FN_WIN, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT), + + [WIN_FN] = LAYOUT_tkl_abnt2( + _______, KC_BRID, KC_BRIU, KC_TASK, KC_FILE, UG_VALD, UG_VALU, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, _______, _______, UG_TOGG, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + UG_TOGG, UG_NEXT, UG_VALU, UG_HUEU, UG_SATU, UG_SPDU, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + OS_TOGGL, UG_PREV, UG_VALD, UG_HUED, UG_SATD, UG_SPDD, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, GU_TOGG, _______, _______, _______, _______, _______, _______, _______, _______, _______), +}; diff --git a/keyboards/keychron/c3_pro_8k/abnt2/keymaps/keychron/keymap.c b/keyboards/keychron/c3_pro_8k/abnt2/keymaps/keychron/keymap.c new file mode 100644 index 000000000000..a67f7a07c8a7 --- /dev/null +++ b/keyboards/keychron/c3_pro_8k/abnt2/keymaps/keychron/keymap.c @@ -0,0 +1,63 @@ +/* Copyright 2025 @ 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 . + */ + +#include QMK_KEYBOARD_H +#include "keychron_common.h" + +enum layers { + MAC_BASE, + MAC_FN, + WIN_BASE, + WIN_FN, +}; + +#define FN_MAC MO(MAC_FN) +#define FN_WIN MO(WIN_FN) + +// clang-format off +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [MAC_BASE] = LAYOUT_tkl_abnt2( + KC_ESC, KC_BRID, KC_BRIU, KC_MCTRL, KC_LNPAD, UG_VALD, UG_VALU, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, KC_SNAP, KC_SIRI, UG_NEXT, + 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_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_BSLS, KC_ENT, + KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_INT1, KC_RSFT, KC_UP, + KC_LCTL, KC_LOPTN, KC_LCMMD, KC_SPC, KC_RCMMD, KC_ROPTN, FN_MAC, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT), + + [MAC_FN] = LAYOUT_tkl_abnt2( + _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, UG_TOGG, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + UG_TOGG, UG_NEXT, UG_VALU, UG_HUEU, UG_SATU, UG_SPDU, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + OS_TOGGL, UG_PREV, UG_VALD, UG_HUED, UG_SATD, UG_SPDD, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______), + + [WIN_BASE] = LAYOUT_tkl_abnt2( + 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_CTANA, UG_NEXT, + 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_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_BSLS, KC_ENT, + KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_INT1, KC_RSFT, KC_UP, + KC_LCTL, KC_LWIN, KC_LALT, KC_SPC, KC_RALT, KC_RWIN, FN_WIN, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT), + + [WIN_FN] = LAYOUT_tkl_abnt2( + _______, KC_BRID, KC_BRIU, KC_TASK, KC_FILE, UG_VALD, UG_VALU, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, _______, _______, UG_TOGG, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + UG_TOGG, UG_NEXT, UG_VALU, UG_HUEU, UG_SATU, UG_SPDU, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + OS_TOGGL, UG_PREV, UG_VALD, UG_HUED, UG_SATD, UG_SPDD, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, GU_TOGG, _______, _______, _______, _______, _______, _______, _______, _______, _______), +}; diff --git a/keyboards/keychron/c3_pro_8k/abnt2/keymaps/keychron/rules.mk b/keyboards/keychron/c3_pro_8k/abnt2/keymaps/keychron/rules.mk new file mode 100644 index 000000000000..1e5b99807cb7 --- /dev/null +++ b/keyboards/keychron/c3_pro_8k/abnt2/keymaps/keychron/rules.mk @@ -0,0 +1 @@ +VIA_ENABLE = yes diff --git a/keyboards/keychron/c3_pro_8k/abnt2/rules.mk b/keyboards/keychron/c3_pro_8k/abnt2/rules.mk new file mode 100644 index 000000000000..e597def7d22e --- /dev/null +++ b/keyboards/keychron/c3_pro_8k/abnt2/rules.mk @@ -0,0 +1 @@ +KEYCHRON_RGB_ENABLE=yes diff --git a/keyboards/keychron/c3_pro_8k/readme.md b/keyboards/keychron/c3_pro_8k/readme.md index e3ce2c8dba83..ca0e3a237e62 100644 --- a/keyboards/keychron/c3_pro_8k/readme.md +++ b/keyboards/keychron/c3_pro_8k/readme.md @@ -15,12 +15,14 @@ Make example for this keyboard (after setting up your build environment): make keychron/c3_pro_8k/ansi:keychron make keychron/c3_pro_8k/iso:keychron make keychron/c3_pro_8k/jis:keychron + make keychron/c3_pro_8k/abnt2:keychron Flashing example for this keyboard: make keychron/c3_pro_8k/ansi:keychron:flash make keychron/c3_pro_8k/iso:keychron:flash make keychron/c3_pro_8k/jis:keychron:flash + make keychron/c3_pro_8k/abnt2:keychron:flash ## bootloader