diff options
| -rw-r--r-- | keyboards/chosfox/cf81/cf81.c | 188 | ||||
| -rw-r--r-- | keyboards/chosfox/cf81/config.h | 52 | ||||
| -rw-r--r-- | keyboards/chosfox/cf81/halconf.h | 23 | ||||
| -rw-r--r-- | keyboards/chosfox/cf81/info.json | 270 | ||||
| -rw-r--r-- | keyboards/chosfox/cf81/keymaps/default/keymap.c | 71 | ||||
| -rw-r--r-- | keyboards/chosfox/cf81/keymaps/default/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/chosfox/cf81/keymaps/via/keymap.c | 71 | ||||
| -rw-r--r-- | keyboards/chosfox/cf81/keymaps/via/rules.mk | 2 | ||||
| -rw-r--r-- | keyboards/chosfox/cf81/mcuconf.h | 24 | ||||
| -rw-r--r-- | keyboards/chosfox/cf81/readme.md | 19 | ||||
| -rw-r--r-- | keyboards/chosfox/cf81/rules.mk | 1 |
11 files changed, 722 insertions, 0 deletions
diff --git a/keyboards/chosfox/cf81/cf81.c b/keyboards/chosfox/cf81/cf81.c new file mode 100644 index 0000000000..ab8afd0c63 --- /dev/null +++ b/keyboards/chosfox/cf81/cf81.c | |||
| @@ -0,0 +1,188 @@ | |||
| 1 | /* Copyright (C) 2023 jonylee@hfd | ||
| 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 | |||
| 17 | #include "quantum.h" | ||
| 18 | |||
| 19 | // clang-format off | ||
| 20 | #ifdef RGB_MATRIX_ENABLE | ||
| 21 | const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = { | ||
| 22 | /* Refer to IS31 manual for these locations | ||
| 23 | * driver | ||
| 24 | * | R location | ||
| 25 | * | | G location | ||
| 26 | * | | | B location | ||
| 27 | * | | | | */ | ||
| 28 | {1, A_1, B_1, C_1}, | ||
| 29 | {1, A_2, B_2, C_2}, | ||
| 30 | {1, A_3, B_3, C_3}, | ||
| 31 | {1, A_4, B_4, C_4}, | ||
| 32 | {1, A_5, B_5, C_5}, | ||
| 33 | {1, A_6, B_6, C_6}, | ||
| 34 | {1, A_7, B_7, C_7}, | ||
| 35 | {1, A_8, B_8, C_8}, | ||
| 36 | {1, A_9, B_9, C_9}, | ||
| 37 | {1, A_10, B_10, C_10}, | ||
| 38 | {1, A_11, B_11, C_11}, | ||
| 39 | {1, A_12, B_12, C_12}, | ||
| 40 | {1, A_13, B_13, C_13}, | ||
| 41 | {1, A_14, B_14, C_14}, | ||
| 42 | |||
| 43 | {0, A_1, B_1, C_1}, | ||
| 44 | {0, A_2, B_2, C_2}, | ||
| 45 | {0, A_3, B_3, C_3}, | ||
| 46 | {0, A_4, B_4, C_4}, | ||
| 47 | {0, A_5, B_5, C_5}, | ||
| 48 | {0, A_6, B_6, C_6}, | ||
| 49 | {0, A_7, B_7, C_7}, | ||
| 50 | {0, A_8, B_8, C_8}, | ||
| 51 | {0, A_9, B_9, C_9}, | ||
| 52 | {0, A_10, B_10, C_10}, | ||
| 53 | {0, A_11, B_11, C_11}, | ||
| 54 | {0, A_12, B_12, C_12}, | ||
| 55 | {0, A_13, B_13, C_13}, | ||
| 56 | {0, A_14, B_14, C_14}, | ||
| 57 | {1, D_1, E_1, F_1}, | ||
| 58 | |||
| 59 | {0, D_1, E_1, F_1}, | ||
| 60 | {0, D_2, E_2, F_2}, | ||
| 61 | {0, D_3, E_3, F_3}, | ||
| 62 | {0, D_4, E_4, F_4}, | ||
| 63 | {0, D_5, E_5, F_5}, | ||
| 64 | {0, D_6, E_6, F_6}, | ||
| 65 | {0, D_7, E_7, F_7}, | ||
| 66 | {0, D_8, E_8, F_8}, | ||
| 67 | {0, D_9, E_9, F_9}, | ||
| 68 | {0, D_10, E_10, F_10}, | ||
| 69 | {0, D_11, E_11, F_11}, | ||
| 70 | {0, D_12, E_12, F_12}, | ||
| 71 | {0, D_13, E_13, F_13}, | ||
| 72 | {0, D_14, E_14, F_14}, | ||
| 73 | {1, D_2, E_2, F_2}, | ||
| 74 | |||
| 75 | {0, G_1, H_1, I_1}, | ||
| 76 | {0, G_2, H_2, I_2}, | ||
| 77 | {0, G_3, H_3, I_3}, | ||
| 78 | {0, G_4, H_4, I_4}, | ||
| 79 | {0, G_5, H_5, I_5}, | ||
| 80 | {0, G_6, H_6, I_6}, | ||
| 81 | {0, G_7, H_7, I_7}, | ||
| 82 | {0, G_8, H_8, I_8}, | ||
| 83 | {0, G_9, H_9, I_9}, | ||
| 84 | {0, G_10, H_10, I_10}, | ||
| 85 | {0, G_11, H_11, I_11}, | ||
| 86 | {0, G_12, H_12, I_12}, | ||
| 87 | {0, A_15, B_15, C_15}, | ||
| 88 | {0, G_13, H_13, I_13}, | ||
| 89 | {1, D_3, E_3, F_3}, | ||
| 90 | |||
| 91 | {0, J_1, K_1, L_1}, | ||
| 92 | {0, A_16, B_16, C_16}, | ||
| 93 | {0, J_2, K_2, L_2}, | ||
| 94 | {0, J_3, K_3, L_3}, | ||
| 95 | {0, J_4, K_4, L_4}, | ||
| 96 | {0, J_5, K_5, L_5}, | ||
| 97 | {0, J_6, K_6, L_6}, | ||
| 98 | {0, J_7, K_7, L_7}, | ||
| 99 | {0, J_8, K_8, L_8}, | ||
| 100 | {0, J_9, K_9, L_9}, | ||
| 101 | {0, J_10, K_10, L_10}, | ||
| 102 | {0, J_11, K_11, L_11}, | ||
| 103 | {0, J_12, K_12, L_12}, | ||
| 104 | {1, D_7, E_7, F_7}, | ||
| 105 | |||
| 106 | |||
| 107 | {0, J_13, K_13, L_13}, | ||
| 108 | {0, J_14, K_14, L_14}, | ||
| 109 | {0, J_15, K_15, L_15}, | ||
| 110 | {0, J_16, K_16, L_16}, | ||
| 111 | |||
| 112 | {0, G_14, H_14, I_14}, | ||
| 113 | {0, G_15, H_15, I_15}, | ||
| 114 | {0, G_16, H_16, I_16}, | ||
| 115 | |||
| 116 | {0, D_15, E_15, F_15}, | ||
| 117 | {1, D_6, E_6, F_6}, | ||
| 118 | {1, D_5, E_5, F_5}, | ||
| 119 | |||
| 120 | |||
| 121 | {1, G_1, H_1, I_1}, | ||
| 122 | {1, G_2, H_2, I_2}, | ||
| 123 | {1, G_3, H_3, I_3}, | ||
| 124 | {1, G_4, H_4, I_4}, | ||
| 125 | {1, G_5, H_5, I_5}, | ||
| 126 | {1, G_6, H_6, I_6}, | ||
| 127 | {1, G_7, H_7, I_7}, | ||
| 128 | {1, G_8, H_8, I_8}, | ||
| 129 | {1, G_9, H_9, I_9}, | ||
| 130 | {1, G_10, H_10, I_10}, | ||
| 131 | {1, G_11, H_11, I_11}, | ||
| 132 | |||
| 133 | {1, J_1, K_1, L_1}, | ||
| 134 | {1, J_2, K_2, L_2}, | ||
| 135 | {1, J_3, K_3, L_3}, | ||
| 136 | {1, J_4, K_4, L_4}, | ||
| 137 | {1, J_5, K_5, L_5}, | ||
| 138 | {1, J_6, K_6, L_6}, | ||
| 139 | {1, J_7, K_7, L_7}, | ||
| 140 | {1, J_8, K_8, L_8}, | ||
| 141 | {1, J_9, K_9, L_9}, | ||
| 142 | {1, J_10, K_10, L_10}, | ||
| 143 | {1, J_11, K_11, L_11}, | ||
| 144 | }; | ||
| 145 | // clang-format on | ||
| 146 | bool rgb_matrix_indicators_advanced_kb(uint8_t led_min, uint8_t led_max) { | ||
| 147 | if (!rgb_matrix_indicators_advanced_user(led_min, led_max)) { | ||
| 148 | return false; | ||
| 149 | } | ||
| 150 | if (host_keyboard_led_state().caps_lock) { | ||
| 151 | RGB_MATRIX_INDICATOR_SET_COLOR(44, 255, 255, 255); | ||
| 152 | } | ||
| 153 | if (keymap_config.no_gui) { | ||
| 154 | RGB_MATRIX_INDICATOR_SET_COLOR(74, 255, 255, 255); | ||
| 155 | } | ||
| 156 | return true; | ||
| 157 | } | ||
| 158 | |||
| 159 | #endif | ||
| 160 | |||
| 161 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | ||
| 162 | if (!process_record_user(keycode, record)) { | ||
| 163 | return false; | ||
| 164 | } | ||
| 165 | switch (keycode) { | ||
| 166 | #ifdef RGB_MATRIX_ENABLE | ||
| 167 | case RGB_TOG: | ||
| 168 | if (record->event.pressed) { | ||
| 169 | switch (rgb_matrix_get_flags()) { | ||
| 170 | case LED_FLAG_ALL: { | ||
| 171 | rgb_matrix_set_flags(LED_FLAG_NONE); | ||
| 172 | rgb_matrix_set_color_all(0, 0, 0); | ||
| 173 | } break; | ||
| 174 | default: { | ||
| 175 | rgb_matrix_set_flags(LED_FLAG_ALL); | ||
| 176 | } break; | ||
| 177 | } | ||
| 178 | } | ||
| 179 | if (!rgb_matrix_is_enabled()) { | ||
| 180 | rgb_matrix_set_flags(LED_FLAG_ALL); | ||
| 181 | rgb_matrix_enable(); | ||
| 182 | } | ||
| 183 | return false; | ||
| 184 | #endif | ||
| 185 | default: | ||
| 186 | return true; | ||
| 187 | } | ||
| 188 | } | ||
diff --git a/keyboards/chosfox/cf81/config.h b/keyboards/chosfox/cf81/config.h new file mode 100644 index 0000000000..b1ea8bba20 --- /dev/null +++ b/keyboards/chosfox/cf81/config.h | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | /* Copyright (C) 2023 jonylee@hfd | ||
| 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 | |||
| 17 | #pragma once | ||
| 18 | |||
| 19 | /* Use 4 dynamic keymap layers */ | ||
| 20 | #define DYNAMIC_KEYMAP_LAYER_COUNT 4 | ||
| 21 | |||
| 22 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 23 | #define LOCKING_SUPPORT_ENABLE | ||
| 24 | /* Locking resynchronize hack */ | ||
| 25 | #define LOCKING_RESYNC_ENABLE | ||
| 26 | |||
| 27 | /* SPI Config for spi flash*/ | ||
| 28 | #define SPI_DRIVER SPIDQ | ||
| 29 | #define SPI_SCK_PIN B3 | ||
| 30 | #define SPI_MOSI_PIN B5 | ||
| 31 | #define SPI_MISO_PIN B4 | ||
| 32 | #define SPI_MOSI_PAL_MODE 5 | ||
| 33 | |||
| 34 | #define EXTERNAL_FLASH_SPI_SLAVE_SELECT_PIN C12 | ||
| 35 | #define WEAR_LEVELING_BACKING_SIZE (8 * 1024) | ||
| 36 | |||
| 37 | /* I2C Config for LED Driver */ | ||
| 38 | #define DRIVER_COUNT 2 | ||
| 39 | #define DRIVER_ADDR_1 0b1110100 | ||
| 40 | #define DRIVER_ADDR_2 0b1110111 | ||
| 41 | #define I2C1_OPMODE OPMODE_I2C | ||
| 42 | #define I2C1_CLOCK_SPEED 400000 /* 400000 */ | ||
| 43 | |||
| 44 | #define DRIVER_1_LED_TOTAL 63 | ||
| 45 | #define DRIVER_2_LED_TOTAL 20 | ||
| 46 | #define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL + 22) | ||
| 47 | |||
| 48 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended | ||
| 49 | #define RGB_TRIGGER_ON_KEYDOWN | ||
| 50 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | ||
| 51 | #define RGB_MATRIX_KEYPRESSES | ||
| 52 | #define RGB_MATRIX_KEYRELEASES | ||
diff --git a/keyboards/chosfox/cf81/halconf.h b/keyboards/chosfox/cf81/halconf.h new file mode 100644 index 0000000000..2f64e65393 --- /dev/null +++ b/keyboards/chosfox/cf81/halconf.h | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | /* Copyright (C) 2022 jonylee@hfd | ||
| 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 | #define HAL_USE_I2C TRUE | ||
| 19 | #define HAL_USE_SPI TRUE | ||
| 20 | #define SPI_USE_WAIT TRUE | ||
| 21 | #define SPI_SELECT_MODE SPI_SELECT_MODE_PAD | ||
| 22 | |||
| 23 | #include_next <halconf.h> | ||
diff --git a/keyboards/chosfox/cf81/info.json b/keyboards/chosfox/cf81/info.json new file mode 100644 index 0000000000..8b09d5daf6 --- /dev/null +++ b/keyboards/chosfox/cf81/info.json | |||
| @@ -0,0 +1,270 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "CHOSFOX CF81", | ||
| 3 | "manufacturer": "CHOSFOX", | ||
| 4 | "maintainer": "jonylee@hfd", | ||
| 5 | "usb": { | ||
| 6 | "force_nkro": true, | ||
| 7 | "vid": "0xFFFE", | ||
| 8 | "pid": "0x0012", | ||
| 9 | "device_version": "1.0.0", | ||
| 10 | "suspend_wakeup_delay": 400 | ||
| 11 | }, | ||
| 12 | "eeprom": { | ||
| 13 | "driver": "wear_leveling" | ||
| 14 | }, | ||
| 15 | "processor": "WB32FQ95", | ||
| 16 | "bootloader": "wb32-dfu", | ||
| 17 | "features": { | ||
| 18 | "bootmagic": true, | ||
| 19 | "mousekey": false, | ||
| 20 | "extrakey": true, | ||
| 21 | "console": false, | ||
| 22 | "command": false, | ||
| 23 | "nkro": true, | ||
| 24 | "encoder": true, | ||
| 25 | "rgb_matrix": true | ||
| 26 | }, | ||
| 27 | "matrix_pins": { | ||
| 28 | "cols": ["C1","C2","C3","A0","A1","A2","A3","A4","A5","A6","A7","C4","C5","B0","B1","B2"], | ||
| 29 | "rows": ["B15", "C6", "C7", "C8", "C9", "A8"] | ||
| 30 | }, | ||
| 31 | "diode_direction": "ROW2COL", | ||
| 32 | "encoder": { | ||
| 33 | "rotary": [ | ||
| 34 | { "pin_a": "B14", "pin_b": "B13" } | ||
| 35 | ] | ||
| 36 | }, | ||
| 37 | "rgb_matrix": { | ||
| 38 | "driver": "IS31FL3733", | ||
| 39 | "animations": { | ||
| 40 | "breathing": true, | ||
| 41 | "cycle_all": true, | ||
| 42 | "cycle_left_right": true, | ||
| 43 | "cycle_up_down": true, | ||
| 44 | "rainbow_moving_chevron": true, | ||
| 45 | "cycle_out_in": true, | ||
| 46 | "cycle_out_in_dual": true, | ||
| 47 | "cycle_pinwheel": true, | ||
| 48 | "cycle_spiral": true, | ||
| 49 | "dual_beacon": true, | ||
| 50 | "rainbow_beacon": true, | ||
| 51 | "raindrops": true, | ||
| 52 | "typing_heatmap": true, | ||
| 53 | "solid_reactive_simple": true, | ||
| 54 | "solid_reactive": true, | ||
| 55 | "solid_reactive_cross": true, | ||
| 56 | "multisplash": true | ||
| 57 | }, | ||
| 58 | "max_brightness": 200, | ||
| 59 | "val_steps": 20, | ||
| 60 | "layout":[ | ||
| 61 | { "flags": 4, "matrix": [0, 0], "x": 0, "y": 0 }, | ||
| 62 | { "flags": 4, "matrix": [0, 1], "x": 14, "y": 0 }, | ||
| 63 | { "flags": 4, "matrix": [0, 2], "x": 29, "y": 0 }, | ||
| 64 | { "flags": 4, "matrix": [0, 3], "x": 44, "y": 0 }, | ||
| 65 | { "flags": 4, "matrix": [0, 4], "x": 59, "y": 0 }, | ||
| 66 | { "flags": 4, "matrix": [0, 5], "x": 74, "y": 0 }, | ||
| 67 | { "flags": 4, "matrix": [0, 6], "x": 89, "y": 0 }, | ||
| 68 | { "flags": 4, "matrix": [0, 7], "x":104, "y": 0 }, | ||
| 69 | { "flags": 4, "matrix": [0, 8], "x":119, "y": 0 }, | ||
| 70 | { "flags": 4, "matrix": [0, 9], "x":134, "y": 0 }, | ||
| 71 | { "flags": 4, "matrix": [0, 10], "x":149, "y": 0 }, | ||
| 72 | { "flags": 4, "matrix": [0, 11], "x":164, "y": 0 }, | ||
| 73 | { "flags": 4, "matrix": [0, 12], "x":179, "y": 0 }, | ||
| 74 | { "flags": 4, "matrix": [0, 13], "x":196, "y": 0 }, | ||
| 75 | |||
| 76 | { "flags": 4, "matrix": [1, 0], "x": 0, "y": 12}, | ||
| 77 | { "flags": 4, "matrix": [1, 1], "x": 14, "y": 12}, | ||
| 78 | { "flags": 4, "matrix": [1, 2], "x": 28, "y": 12}, | ||
| 79 | { "flags": 4, "matrix": [1, 3], "x": 42, "y": 12}, | ||
| 80 | { "flags": 4, "matrix": [1, 4], "x": 56, "y": 12}, | ||
| 81 | { "flags": 4, "matrix": [1, 5], "x": 70, "y": 12}, | ||
| 82 | { "flags": 4, "matrix": [1, 6], "x": 84, "y": 12}, | ||
| 83 | { "flags": 4, "matrix": [1, 7], "x": 98, "y": 12}, | ||
| 84 | { "flags": 4, "matrix": [1, 8], "x":112, "y": 12}, | ||
| 85 | { "flags": 4, "matrix": [1, 9], "x":126, "y": 12}, | ||
| 86 | { "flags": 4, "matrix": [1, 10], "x":140, "y": 12}, | ||
| 87 | { "flags": 4, "matrix": [1, 11], "x":154, "y": 12}, | ||
| 88 | { "flags": 4, "matrix": [1, 12], "x":168, "y": 12}, | ||
| 89 | { "flags": 4, "matrix": [1, 13], "x":182, "y": 12}, | ||
| 90 | { "flags": 4, "matrix": [1, 15], "x":224, "y": 12}, | ||
| 91 | |||
| 92 | { "flags": 4, "matrix": [2, 0], "x": 0, "y": 25}, | ||
| 93 | { "flags": 4, "matrix": [2, 1], "x": 14, "y": 25}, | ||
| 94 | { "flags": 4, "matrix": [2, 2], "x": 28, "y": 25}, | ||
| 95 | { "flags": 4, "matrix": [2, 3], "x": 42, "y": 25}, | ||
| 96 | { "flags": 4, "matrix": [2, 4], "x": 56, "y": 25}, | ||
| 97 | { "flags": 4, "matrix": [2, 5], "x": 70, "y": 25}, | ||
| 98 | { "flags": 4, "matrix": [2, 6], "x": 84, "y": 25}, | ||
| 99 | { "flags": 4, "matrix": [2, 7], "x": 98, "y": 25}, | ||
| 100 | { "flags": 4, "matrix": [2, 8], "x":112, "y": 25}, | ||
| 101 | { "flags": 4, "matrix": [2, 9], "x":126, "y": 25}, | ||
| 102 | { "flags": 4, "matrix": [2, 10], "x":140, "y": 25}, | ||
| 103 | { "flags": 4, "matrix": [2, 11], "x":154, "y": 25}, | ||
| 104 | { "flags": 4, "matrix": [2, 12], "x":168, "y": 25}, | ||
| 105 | { "flags": 4, "matrix": [2, 13], "x":182, "y": 25}, | ||
| 106 | { "flags": 4, "matrix": [2, 15], "x":224, "y": 25}, | ||
| 107 | |||
| 108 | { "flags": 4, "matrix": [3, 0], "x": 0, "y": 38}, | ||
| 109 | { "flags": 4, "matrix": [3, 1], "x": 28, "y": 38}, | ||
| 110 | { "flags": 4, "matrix": [3, 2], "x": 42, "y": 38}, | ||
| 111 | { "flags": 4, "matrix": [3, 3], "x": 56, "y": 38}, | ||
| 112 | { "flags": 4, "matrix": [3, 4], "x": 70, "y": 38}, | ||
| 113 | { "flags": 4, "matrix": [3, 5], "x": 84, "y": 38}, | ||
| 114 | { "flags": 4, "matrix": [3, 6], "x": 98, "y": 38}, | ||
| 115 | { "flags": 4, "matrix": [3, 7], "x":112, "y": 38}, | ||
| 116 | { "flags": 4, "matrix": [3, 8], "x":126, "y": 38}, | ||
| 117 | { "flags": 4, "matrix": [3, 9], "x":140, "y": 38}, | ||
| 118 | { "flags": 4, "matrix": [3, 10], "x":154, "y": 38}, | ||
| 119 | { "flags": 4, "matrix": [3, 11], "x":168, "y": 38}, | ||
| 120 | { "flags": 4, "matrix": [3, 12], "x":182, "y": 38}, | ||
| 121 | { "flags": 4, "matrix": [3, 13], "x":196, "y": 38}, | ||
| 122 | { "flags": 4, "matrix": [3, 15], "x":224, "y": 38}, | ||
| 123 | |||
| 124 | { "flags": 4, "matrix": [4, 0], "x": 0, "y": 51}, | ||
| 125 | { "flags": 4, "matrix": [4, 11], "x": 14, "y": 51}, | ||
| 126 | { "flags": 4, "matrix": [4, 1], "x": 28, "y": 51}, | ||
| 127 | { "flags": 4, "matrix": [4, 2], "x": 37, "y": 51}, | ||
| 128 | { "flags": 4, "matrix": [4, 3], "x": 56, "y": 51}, | ||
| 129 | { "flags": 4, "matrix": [4, 4], "x": 74, "y": 51}, | ||
| 130 | { "flags": 4, "matrix": [4, 5], "x": 93, "y": 51}, | ||
| 131 | { "flags": 4, "matrix": [4, 6], "x":112, "y": 51}, | ||
| 132 | { "flags": 4, "matrix": [4, 7], "x":130, "y": 51}, | ||
| 133 | { "flags": 4, "matrix": [4, 8], "x":149, "y": 51}, | ||
| 134 | { "flags": 4, "matrix": [4, 9], "x":168, "y": 51}, | ||
| 135 | { "flags": 4, "matrix": [4, 10], "x":186, "y": 51}, | ||
| 136 | { "flags": 4, "matrix": [4, 13], "x":200, "y": 51}, | ||
| 137 | { "flags": 4, "matrix": [4, 14], "x":214, "y": 51}, | ||
| 138 | |||
| 139 | { "flags": 4, "matrix": [5, 0], "x": 0, "y": 64}, | ||
| 140 | { "flags": 4, "matrix": [5, 1], "x": 18, "y": 64}, | ||
| 141 | { "flags": 4, "matrix": [5, 2], "x": 37, "y": 64}, | ||
| 142 | { "flags": 4, "matrix": [5, 5], "x": 92, "y": 64}, | ||
| 143 | { "flags": 4, "matrix": [5, 9], "x":140, "y": 64}, | ||
| 144 | { "flags": 4, "matrix": [5, 10], "x":154, "y": 64}, | ||
| 145 | { "flags": 4, "matrix": [5, 11], "x":168, "y": 64}, | ||
| 146 | { "flags": 4, "matrix": [5, 13], "x":196, "y": 64}, | ||
| 147 | { "flags": 4, "matrix": [5, 14], "x":210, "y": 64}, | ||
| 148 | { "flags": 4, "matrix": [5, 15], "x":224, "y": 64}, | ||
| 149 | |||
| 150 | { "flags": 2, "x":0, "y":0}, | ||
| 151 | { "flags": 2, "x":0, "y":6}, | ||
| 152 | { "flags": 2, "x":0, "y":13}, | ||
| 153 | { "flags": 2, "x":0, "y":19}, | ||
| 154 | { "flags": 2, "x":0, "y":25}, | ||
| 155 | { "flags": 2, "x":0, "y":32}, | ||
| 156 | { "flags": 2, "x":0, "y":38}, | ||
| 157 | { "flags": 2, "x":0, "y":45}, | ||
| 158 | { "flags": 2, "x":0, "y":51}, | ||
| 159 | { "flags": 2, "x":0, "y":57}, | ||
| 160 | { "flags": 2, "x":0, "y":64}, | ||
| 161 | |||
| 162 | { "flags": 2, "x":224, "y":0}, | ||
| 163 | { "flags": 2, "x":224, "y":6}, | ||
| 164 | { "flags": 2, "x":224, "y":13}, | ||
| 165 | { "flags": 2, "x":224, "y":19}, | ||
| 166 | { "flags": 2, "x":224, "y":25}, | ||
| 167 | { "flags": 2, "x":224, "y":32}, | ||
| 168 | { "flags": 2, "x":224, "y":38}, | ||
| 169 | { "flags": 2, "x":224, "y":45}, | ||
| 170 | { "flags": 2, "x":224, "y":51}, | ||
| 171 | { "flags": 2, "x":224, "y":57}, | ||
| 172 | { "flags": 2, "x":224, "y":64} | ||
| 173 | ] | ||
| 174 | }, | ||
| 175 | "layouts": { | ||
| 176 | "LAYOUT": { | ||
| 177 | "layout": [ | ||
| 178 | { "label": "Esc", "matrix": [0, 0], "x": 0, "y": 0 }, | ||
| 179 | { "label": "F1", "matrix": [0, 1], "x": 1.25, "y": 0 }, | ||
| 180 | { "label": "F2", "matrix": [0, 2], "x": 2.25, "y": 0 }, | ||
| 181 | { "label": "F3", "matrix": [0, 3], "x": 3.25, "y": 0 }, | ||
| 182 | { "label": "F4", "matrix": [0, 4], "x": 4.25, "y": 0 }, | ||
| 183 | { "label": "F5", "matrix": [0, 5], "x": 5.5, "y": 0 }, | ||
| 184 | { "label": "F6", "matrix": [0, 6], "x": 6.5, "y": 0 }, | ||
| 185 | { "label": "F7", "matrix": [0, 7], "x": 7.5, "y": 0 }, | ||
| 186 | { "label": "F8", "matrix": [0, 8], "x": 8.5, "y": 0 }, | ||
| 187 | { "label": "F9", "matrix": [0, 9], "x": 9.75, "y": 0 }, | ||
| 188 | { "label": "F10", "matrix": [0, 10], "x": 10.75, "y": 0 }, | ||
| 189 | { "label": "F11", "matrix": [0, 11], "x": 11.75, "y": 0 }, | ||
| 190 | { "label": "F12", "matrix": [0, 12], "x": 12.75, "y": 0 }, | ||
| 191 | { "label": "Del", "matrix": [0, 13], "x": 14, "y": 0 }, | ||
| 192 | { "label": "Mute", "matrix": [0, 15], "x": 15.5, "y": 0 }, | ||
| 193 | |||
| 194 | { "label": "~", "matrix": [1, 0], "x": 0, "y": 1.25 }, | ||
| 195 | { "label": "!", "matrix": [1, 1], "x": 1, "y": 1.25 }, | ||
| 196 | { "label": "@", "matrix": [1, 2], "x": 2, "y": 1.25 }, | ||
| 197 | { "label": "#", "matrix": [1, 3], "x": 3, "y": 1.25 }, | ||
| 198 | { "label": "$", "matrix": [1, 4], "x": 4, "y": 1.25 }, | ||
| 199 | { "label": "%", "matrix": [1, 5], "x": 5, "y": 1.25 }, | ||
| 200 | { "label": "^", "matrix": [1, 6], "x": 6, "y": 1.25 }, | ||
| 201 | { "label": "&", "matrix": [1, 7], "x": 7, "y": 1.25 }, | ||
| 202 | { "label": "*", "matrix": [1, 8], "x": 8, "y": 1.25 }, | ||
| 203 | { "label": "(", "matrix": [1, 9], "x": 9, "y": 1.25 }, | ||
| 204 | { "label": ")", "matrix": [1, 10], "x": 10, "y": 1.25 }, | ||
| 205 | { "label": "_", "matrix": [1, 11], "x": 11, "y": 1.25 }, | ||
| 206 | { "label": "+", "matrix": [1, 12], "x": 12, "y": 1.25 }, | ||
| 207 | { "label": "Bksp", "matrix": [1, 13], "w": 2, "x": 13, "y": 1.25 }, | ||
| 208 | { "label": "Home", "matrix": [1, 15], "x": 15.5, "y": 1.25 }, | ||
| 209 | |||
| 210 | { "label": "Tab", "matrix": [2, 0], "w": 1.5, "x": 0, "y": 2.25 }, | ||
| 211 | { "label": "Q", "matrix": [2, 1], "x": 1.5, "y": 2.25 }, | ||
| 212 | { "label": "W", "matrix": [2, 2], "x": 2.5, "y": 2.25 }, | ||
| 213 | { "label": "E", "matrix": [2, 3], "x": 3.5, "y": 2.25 }, | ||
| 214 | { "label": "R", "matrix": [2, 4], "x": 4.5, "y": 2.25 }, | ||
| 215 | { "label": "T", "matrix": [2, 5], "x": 5.5, "y": 2.25 }, | ||
| 216 | { "label": "Y", "matrix": [2, 6], "x": 6.5, "y": 2.25 }, | ||
| 217 | { "label": "U", "matrix": [2, 7], "x": 7.5, "y": 2.25 }, | ||
| 218 | { "label": "I", "matrix": [2, 8], "x": 8.5, "y": 2.25 }, | ||
| 219 | { "label": "O", "matrix": [2, 9], "x": 9.5, "y": 2.25 }, | ||
| 220 | { "label": "P", "matrix": [2, 10], "x": 10.5, "y": 2.25 }, | ||
| 221 | { "label": "{", "matrix": [2, 11], "x": 11.5, "y": 2.25 }, | ||
| 222 | { "label": "}", "matrix": [2, 12], "x": 12.5, "y": 2.25 }, | ||
| 223 | { "label": "|", "matrix": [2, 13], "w": 1.5, "x": 13.5, "y": 2.25 }, | ||
| 224 | { "label": "PageUp", "matrix": [2, 15], "x": 15.5, "y": 2.25 }, | ||
| 225 | |||
| 226 | { "label": "Caps Lock", "matrix": [3, 0], "w": 1.75, "x": 0, "y": 3.25 }, | ||
| 227 | { "label": "A", "matrix": [3, 1], "x": 1.75, "y": 3.25 }, | ||
| 228 | { "label": "S", "matrix": [3, 2], "x": 2.75, "y": 3.25 }, | ||
| 229 | { "label": "D", "matrix": [3, 3], "x": 3.75, "y": 3.25 }, | ||
| 230 | { "label": "F", "matrix": [3, 4], "x": 4.75, "y": 3.25 }, | ||
| 231 | { "label": "G", "matrix": [3, 5], "x": 5.75, "y": 3.25 }, | ||
| 232 | { "label": "H", "matrix": [3, 6], "x": 6.75, "y": 3.25 }, | ||
| 233 | { "label": "J", "matrix": [3, 7], "x": 7.75, "y": 3.25 }, | ||
| 234 | { "label": "K", "matrix": [3, 8], "x": 8.75, "y": 3.25 }, | ||
| 235 | { "label": "L", "matrix": [3, 9], "x": 9.75, "y": 3.25 }, | ||
| 236 | { "label": ":", "matrix": [3, 10], "x": 10.75, "y": 3.25 }, | ||
| 237 | { "label": "\"", "matrix": [3, 11], "x": 11.75, "y": 3.25 }, | ||
| 238 | { "label": ":", "matrix": [3, 12], "x": 12.75, "y": 3.25 }, | ||
| 239 | { "label": "Enter", "matrix": [3, 13], "w": 1.25, "x": 13.75, "y": 3.25 }, | ||
| 240 | { "label": "PageDn", "matrix": [3, 15], "x": 15.5, "y": 3.25 }, | ||
| 241 | |||
| 242 | { "label": "Shift", "matrix": [4, 0], "w": 1.25, "x": 0, "y": 4.25 }, | ||
| 243 | { "label": ":", "matrix": [4, 11], "x": 1.25, "y": 4.25 }, | ||
| 244 | { "label": "Z", "matrix": [4, 1], "x": 2.25, "y": 4.25 }, | ||
| 245 | { "label": "X", "matrix": [4, 2], "x": 3.25, "y": 4.25 }, | ||
| 246 | { "label": "C", "matrix": [4, 3], "x": 4.25, "y": 4.25 }, | ||
| 247 | { "label": "V", "matrix": [4, 4], "x": 5.25, "y": 4.25 }, | ||
| 248 | { "label": "B", "matrix": [4, 5], "x": 6.25, "y": 4.25 }, | ||
| 249 | { "label": "N", "matrix": [4, 6], "x": 7.25, "y": 4.25 }, | ||
| 250 | { "label": "M", "matrix": [4, 7], "x": 8.25, "y": 4.25 }, | ||
| 251 | { "label": "<", "matrix": [4, 8], "x": 9.25, "y": 4.25 }, | ||
| 252 | { "label": ">", "matrix": [4, 9], "x": 10.25, "y": 4.25 }, | ||
| 253 | { "label": "?", "matrix": [4, 10], "x": 11.25, "y": 4.25 }, | ||
| 254 | { "label": "Shift", "matrix": [4, 13], "w": 1.75, "x": 12.25, "y": 4.25 }, | ||
| 255 | { "label": "Up", "matrix": [4, 14], "x": 14.25, "y": 4.25 }, | ||
| 256 | |||
| 257 | { "label": "Ctrl", "matrix": [5, 0], "w": 1.25, "x": 0, "y": 5.25 }, | ||
| 258 | { "label": "Win", "matrix": [5, 1], "w": 1.25, "x": 1.25, "y": 5.25 }, | ||
| 259 | { "label": "Alt", "matrix": [5, 2], "w": 1.25, "x": 2.5, "y": 5.25 }, | ||
| 260 | { "label": "Space", "matrix": [5, 5], "w": 6.25, "x": 3.75, "y": 5.25 }, | ||
| 261 | { "label": "Alt", "matrix": [5, 9], "x": 10, "y": 5.25 }, | ||
| 262 | { "label": "Fn", "matrix": [5, 10], "x": 11, "y": 5.25 }, | ||
| 263 | { "label": "Ctrl", "matrix": [5, 11], "x": 12, "y": 5.25 }, | ||
| 264 | { "label": "Left", "matrix": [5, 13], "x": 13.25, "y": 5.25 }, | ||
| 265 | { "label": "Down", "matrix": [5, 14], "x": 14.25, "y": 5.25 }, | ||
| 266 | { "label": "Right", "matrix": [5, 15], "x": 15.25, "y": 5.25 } | ||
| 267 | ] | ||
| 268 | } | ||
| 269 | } | ||
| 270 | } | ||
diff --git a/keyboards/chosfox/cf81/keymaps/default/keymap.c b/keyboards/chosfox/cf81/keymaps/default/keymap.c new file mode 100644 index 0000000000..753bdebc0a --- /dev/null +++ b/keyboards/chosfox/cf81/keymaps/default/keymap.c | |||
| @@ -0,0 +1,71 @@ | |||
| 1 | /* Copyright (C) 2023 jonylee@hfd | ||
| 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 | |||
| 17 | #include QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | enum __layers { | ||
| 20 | WIN_B, | ||
| 21 | WIN_FN, | ||
| 22 | MAC_B, | ||
| 23 | MAC_FN | ||
| 24 | }; | ||
| 25 | |||
| 26 | // clang-format off | ||
| 27 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 28 | |||
| 29 | [WIN_B] = LAYOUT( /* Base */ | ||
| 30 | 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_DEL, KC_MUTE, | ||
| 31 | 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_HOME, | ||
| 32 | 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_PGUP, | ||
| 33 | 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_NUHS, KC_ENT, KC_PGDN, | ||
| 34 | 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_RSFT, KC_UP, | ||
| 35 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(WIN_FN),KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT), | ||
| 36 | |||
| 37 | |||
| 38 | [WIN_FN] = LAYOUT( /* FN */ | ||
| 39 | _______, KC_MSEL, KC_VOLD, KC_VOLU, KC_MUTE, KC_MSTP, KC_MPRV, KC_MPLY, KC_MNXT, KC_MAIL, KC_WHOM, KC_CALC, KC_WSCH, KC_INS, _______, | ||
| 40 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_SPD, RGB_SPI, RGB_TOG, KC_END, | ||
| 41 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_SAD, RGB_SAI, RGB_MOD, _______, | ||
| 42 | _______, _______,DF(MAC_B),_______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_MOD, _______, _______, | ||
| 43 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_VAI, | ||
| 44 | _______, GU_TOGG, _______, EE_CLR, _______, _______, _______, RGB_HUD, RGB_VAD, RGB_HUD), | ||
| 45 | |||
| 46 | [MAC_B] = LAYOUT( /* Base */ | ||
| 47 | KC_ESC, KC_BRID, KC_BRIU, KC_MCTL, KC_LPAD, KC_F5, KC_F6, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD,KC_VOLU, KC_DEL, KC_MUTE, | ||
| 48 | 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_HOME, | ||
| 49 | 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_PGUP, | ||
| 50 | 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_NUHS, KC_ENT, KC_PGDN, | ||
| 51 | 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_RSFT, KC_UP, | ||
| 52 | KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RGUI, MO(MAC_FN),KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT), | ||
| 53 | |||
| 54 | [MAC_FN] = LAYOUT( /* FN */ | ||
| 55 | _______, 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_INS, _______, | ||
| 56 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_SPD, RGB_SPI, RGB_TOG, KC_END, | ||
| 57 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_SAD, RGB_SAI, RGB_MOD, _______, | ||
| 58 | _______,DF(WIN_B),_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_MOD, _______, _______, | ||
| 59 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_VAI, | ||
| 60 | _______, _______, _______, EE_CLR, _______, _______, _______, RGB_HUD, RGB_VAD, RGB_HUD) | ||
| 61 | }; | ||
| 62 | |||
| 63 | #if defined(ENCODER_MAP_ENABLE) | ||
| 64 | const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = { | ||
| 65 | [WIN_B] = { ENCODER_CCW_CW(KC_VOLU, KC_VOLD) }, | ||
| 66 | [WIN_FN] = { ENCODER_CCW_CW(KC_VOLU, KC_VOLD) }, | ||
| 67 | [MAC_B] = { ENCODER_CCW_CW(KC_VOLU, KC_VOLD) }, | ||
| 68 | [MAC_FN] = { ENCODER_CCW_CW(KC_VOLU, KC_VOLD) } | ||
| 69 | }; | ||
| 70 | #endif | ||
| 71 | |||
diff --git a/keyboards/chosfox/cf81/keymaps/default/rules.mk b/keyboards/chosfox/cf81/keymaps/default/rules.mk new file mode 100644 index 0000000000..ee32568148 --- /dev/null +++ b/keyboards/chosfox/cf81/keymaps/default/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| ENCODER_MAP_ENABLE = yes | |||
diff --git a/keyboards/chosfox/cf81/keymaps/via/keymap.c b/keyboards/chosfox/cf81/keymaps/via/keymap.c new file mode 100644 index 0000000000..753bdebc0a --- /dev/null +++ b/keyboards/chosfox/cf81/keymaps/via/keymap.c | |||
| @@ -0,0 +1,71 @@ | |||
| 1 | /* Copyright (C) 2023 jonylee@hfd | ||
| 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 | |||
| 17 | #include QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | enum __layers { | ||
| 20 | WIN_B, | ||
| 21 | WIN_FN, | ||
| 22 | MAC_B, | ||
| 23 | MAC_FN | ||
| 24 | }; | ||
| 25 | |||
| 26 | // clang-format off | ||
| 27 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 28 | |||
| 29 | [WIN_B] = LAYOUT( /* Base */ | ||
| 30 | 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_DEL, KC_MUTE, | ||
| 31 | 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_HOME, | ||
| 32 | 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_PGUP, | ||
| 33 | 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_NUHS, KC_ENT, KC_PGDN, | ||
| 34 | 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_RSFT, KC_UP, | ||
| 35 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(WIN_FN),KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT), | ||
| 36 | |||
| 37 | |||
| 38 | [WIN_FN] = LAYOUT( /* FN */ | ||
| 39 | _______, KC_MSEL, KC_VOLD, KC_VOLU, KC_MUTE, KC_MSTP, KC_MPRV, KC_MPLY, KC_MNXT, KC_MAIL, KC_WHOM, KC_CALC, KC_WSCH, KC_INS, _______, | ||
| 40 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_SPD, RGB_SPI, RGB_TOG, KC_END, | ||
| 41 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_SAD, RGB_SAI, RGB_MOD, _______, | ||
| 42 | _______, _______,DF(MAC_B),_______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_MOD, _______, _______, | ||
| 43 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_VAI, | ||
| 44 | _______, GU_TOGG, _______, EE_CLR, _______, _______, _______, RGB_HUD, RGB_VAD, RGB_HUD), | ||
| 45 | |||
| 46 | [MAC_B] = LAYOUT( /* Base */ | ||
| 47 | KC_ESC, KC_BRID, KC_BRIU, KC_MCTL, KC_LPAD, KC_F5, KC_F6, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD,KC_VOLU, KC_DEL, KC_MUTE, | ||
| 48 | 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_HOME, | ||
| 49 | 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_PGUP, | ||
| 50 | 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_NUHS, KC_ENT, KC_PGDN, | ||
| 51 | 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_RSFT, KC_UP, | ||
| 52 | KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RGUI, MO(MAC_FN),KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT), | ||
| 53 | |||
| 54 | [MAC_FN] = LAYOUT( /* FN */ | ||
| 55 | _______, 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_INS, _______, | ||
| 56 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_SPD, RGB_SPI, RGB_TOG, KC_END, | ||
| 57 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_SAD, RGB_SAI, RGB_MOD, _______, | ||
| 58 | _______,DF(WIN_B),_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_MOD, _______, _______, | ||
| 59 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_VAI, | ||
| 60 | _______, _______, _______, EE_CLR, _______, _______, _______, RGB_HUD, RGB_VAD, RGB_HUD) | ||
| 61 | }; | ||
| 62 | |||
| 63 | #if defined(ENCODER_MAP_ENABLE) | ||
| 64 | const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = { | ||
| 65 | [WIN_B] = { ENCODER_CCW_CW(KC_VOLU, KC_VOLD) }, | ||
| 66 | [WIN_FN] = { ENCODER_CCW_CW(KC_VOLU, KC_VOLD) }, | ||
| 67 | [MAC_B] = { ENCODER_CCW_CW(KC_VOLU, KC_VOLD) }, | ||
| 68 | [MAC_FN] = { ENCODER_CCW_CW(KC_VOLU, KC_VOLD) } | ||
| 69 | }; | ||
| 70 | #endif | ||
| 71 | |||
diff --git a/keyboards/chosfox/cf81/keymaps/via/rules.mk b/keyboards/chosfox/cf81/keymaps/via/rules.mk new file mode 100644 index 0000000000..f1adcab005 --- /dev/null +++ b/keyboards/chosfox/cf81/keymaps/via/rules.mk | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | VIA_ENABLE = yes | ||
| 2 | ENCODER_MAP_ENABLE = yes | ||
diff --git a/keyboards/chosfox/cf81/mcuconf.h b/keyboards/chosfox/cf81/mcuconf.h new file mode 100644 index 0000000000..e2884f3828 --- /dev/null +++ b/keyboards/chosfox/cf81/mcuconf.h | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | /* Copyright (C) 2023 jonylee@hfd | ||
| 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_next <mcuconf.h> | ||
| 19 | |||
| 20 | #undef WB32_SPI_USE_QSPI | ||
| 21 | #define WB32_SPI_USE_QSPI TRUE | ||
| 22 | |||
| 23 | #undef WB32_I2C_USE_I2C1 | ||
| 24 | #define WB32_I2C_USE_I2C1 TRUE | ||
diff --git a/keyboards/chosfox/cf81/readme.md b/keyboards/chosfox/cf81/readme.md new file mode 100644 index 0000000000..06522836fd --- /dev/null +++ b/keyboards/chosfox/cf81/readme.md | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | # CHOSFOX CF81 keyboard | ||
| 2 | |||
| 3 | A customizable 75% encoder keyboard. | ||
| 4 | |||
| 5 | * Keyboard Maintainer: [jonylee@hfd](https://github.com/jonylee1986) | ||
| 6 | * Hardware Supported: CF81 | ||
| 7 | * Hardware Availability: [CHOSFOX](https://chosfox.com/) | ||
| 8 | |||
| 9 | Make example for this keyboard (after setting up your build environment): | ||
| 10 | |||
| 11 | make chosfox/cf81:default | ||
| 12 | |||
| 13 | Flashing example for this keyboard: | ||
| 14 | |||
| 15 | make chosfox/cf81:default:flash | ||
| 16 | |||
| 17 | **Reset Key**: Hold down the key located at *K00*, which programmed as *Esc* while plugging in the keyboard. | ||
| 18 | |||
| 19 | See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). | ||
diff --git a/keyboards/chosfox/cf81/rules.mk b/keyboards/chosfox/cf81/rules.mk new file mode 100644 index 0000000000..002458405e --- /dev/null +++ b/keyboards/chosfox/cf81/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| WEAR_LEVELING_DRIVER = spi_flash | |||
