forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f69460c
commit a625897
Showing
12 changed files
with
1,129 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
/* Copyright (C) 2022 jonylee@hfd | ||
* | ||
* 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 | ||
|
||
|
||
#define RGB_TRIGGER_ON_KEYDOWN | ||
/* Force NKRO on boot up regardless of the setting saved in the EEPROM (uncomment to enable it) */ | ||
#define FORCE_NKRO | ||
|
||
/* encoder resolution */ | ||
#define TAP_CODE_DELAY 15 | ||
|
||
/* DIP switch */ | ||
#define DIP_SWITCH_PINS \ | ||
{ A9 } | ||
|
||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
#define LOCKING_SUPPORT_ENABLE | ||
/* Locking resynchronize hack */ | ||
#define LOCKING_RESYNC_ENABLE | ||
|
||
/* SPI Config for spi flash*/ | ||
#define SPI_DRIVER SPIDQ | ||
#define SPI_SCK_PIN B3 | ||
#define SPI_MOSI_PIN B5 | ||
#define SPI_MISO_PIN B4 | ||
#define SPI_MOSI_PAL_MODE 5 | ||
|
||
#define EXTERNAL_FLASH_SPI_SLAVE_SELECT_PIN C12 | ||
#define WEAR_LEVELING_BACKING_SIZE (8 * 1024) | ||
|
||
/* I2C Config for LED Driver */ | ||
#define DRIVER_COUNT 2 | ||
#define DRIVER_ADDR_1 0b1110100 | ||
#define DRIVER_ADDR_2 0b1110111 | ||
#define I2C1_SDA_PIN B7 | ||
#define I2C1_SCL_PIN B6 | ||
#define I2C1_SCL_PAL_MODE 4 | ||
#define I2C1_OPMODE OPMODE_I2C | ||
#define I2C1_CLOCK_SPEED 400000 /* 400000 */ | ||
|
||
#define DRIVER_1_LED_TOTAL 61 | ||
#define DRIVER_2_LED_TOTAL 21 | ||
#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL + 10) | ||
|
||
#define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended | ||
|
||
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS | ||
#define RGB_MATRIX_KEYPRESSES | ||
#define RGB_MATRIX_KEYRELEASES | ||
|
||
// RGB Matrix Animation modes. Explicitly enabled | ||
// For full list of effects, see: | ||
// https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects | ||
#define ENABLE_RGB_MATRIX_BREATHING | ||
#define ENABLE_RGB_MATRIX_CYCLE_ALL | ||
#define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT | ||
#define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN | ||
#define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON | ||
#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN | ||
#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL | ||
#define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL | ||
#define ENABLE_RGB_MATRIX_CYCLE_SPIRAL | ||
#define ENABLE_RGB_MATRIX_DUAL_BEACON | ||
#define ENABLE_RGB_MATRIX_RAINBOW_BEACON | ||
#define ENABLE_RGB_MATRIX_RAINDROPS | ||
#define ENABLE_RGB_MATRIX_TYPING_HEATMAP | ||
// enabled only of RGB_MATRIX_KEYPRESSES or RGB_MATRIX_KEYRELEASES is defined | ||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE | ||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE | ||
#define ENABLE_RGB_MATRIX_MULTISPLASH | ||
|
||
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 /* The maximum brightness level */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* Copyright (C) 2022 jonylee@hfd | ||
* | ||
* 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 | ||
|
||
#define HAL_USE_I2C TRUE | ||
#define HAL_USE_SPI TRUE | ||
#define SPI_USE_WAIT TRUE | ||
#define SPI_SELECT_MODE SPI_SELECT_MODE_PAD | ||
|
||
#include_next <halconf.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
{ | ||
"keyboard_name": "KB83", | ||
"manufacturer": "www.hfd.cn", | ||
"maintainer": "hfd", | ||
"usb": { | ||
"vid": "0xFFFE", | ||
"pid": "0x0007", | ||
"device_version": "1.0.0" | ||
}, | ||
"processor": "WB32FQ95", | ||
"bootloader": "wb32-dfu", | ||
"matrix_pins": { | ||
"cols": ["C1","C2","C3","A0","A1","A2","A3","A4","A5","A6","A7","C4","C5","B0","B1","B2"], | ||
"rows": ["B15", "C6", "C7", "C8", "C9", "A8"] | ||
}, | ||
"diode_direction": "ROW2COL", | ||
"encoder": { | ||
"rotary": [ | ||
{ "pin_a": "B14", "pin_b": "B13","resolution": 4 } | ||
] | ||
}, | ||
"layouts": { | ||
"LAYOUT": { | ||
"layout": [ | ||
{ "label": "Esc", "x": 0, "y": 0 }, | ||
{ "label": "F1", "x": 2, "y": 0 }, | ||
{ "label": "F2", "x": 3, "y": 0 }, | ||
{ "label": "F3", "x": 4, "y": 0 }, | ||
{ "label": "F4", "x": 5, "y": 0 }, | ||
{ "label": "F5", "x": 6.5, "y": 0 }, | ||
{ "label": "F6", "x": 7.5, "y": 0 }, | ||
{ "label": "F7", "x": 8.5, "y": 0 }, | ||
{ "label": "F8", "x": 9.5, "y": 0 }, | ||
{ "label": "F9", "x": 11, "y": 0 }, | ||
{ "label": "F10", "x": 12, "y": 0 }, | ||
{ "label": "F11", "x": 13, "y": 0 }, | ||
{ "label": "F12", "x": 14, "y": 0 }, | ||
{ "label": "PrtSc", "x": 15.25, "y": 0 }, | ||
{ "label": "PrtSc", "x": 15.25, "y": 0 }, | ||
|
||
{ "label": "~", "x": 0, "y": 1.25 }, | ||
{ "label": "!", "x": 1, "y": 1.25 }, | ||
{ "label": "@", "x": 2, "y": 1.25 }, | ||
{ "label": "#", "x": 3, "y": 1.25 }, | ||
{ "label": "$", "x": 4, "y": 1.25 }, | ||
{ "label": "%", "x": 5, "y": 1.25 }, | ||
{ "label": "^", "x": 6, "y": 1.25 }, | ||
{ "label": "&", "x": 7, "y": 1.25 }, | ||
{ "label": "*", "x": 8, "y": 1.25 }, | ||
{ "label": "(", "x": 9, "y": 1.25 }, | ||
{ "label": ")", "x": 10, "y": 1.25 }, | ||
{ "label": "_", "x": 11, "y": 1.25 }, | ||
{ "label": "+", "x": 12, "y": 1.25 }, | ||
{ "label": "Bksp", "x": 14, "y": 1.25 }, | ||
{ "label": "Insert", "x": 15.25, "y": 1.25 }, | ||
|
||
{ "label": "Tab", "x": 0, "y": 2.25, "w": 1.5 }, | ||
{ "label": "Q", "x": 1.5, "y": 2.25 }, | ||
{ "label": "W", "x": 2.5, "y": 2.25 }, | ||
{ "label": "E", "x": 3.5, "y": 2.25 }, | ||
{ "label": "R", "x": 4.5, "y": 2.25 }, | ||
{ "label": "T", "x": 5.5, "y": 2.25 }, | ||
{ "label": "Y", "x": 6.5, "y": 2.25 }, | ||
{ "label": "U", "x": 7.5, "y": 2.25 }, | ||
{ "label": "I", "x": 8.5, "y": 2.25 }, | ||
{ "label": "O", "x": 9.5, "y": 2.25 }, | ||
{ "label": "P", "x": 10.5, "y": 2.25 }, | ||
{ "label": "{", "x": 11.5, "y": 2.25 }, | ||
{ "label": "}", "x": 12.5, "y": 2.25 }, | ||
{ "label": "|", "x": 13.5, "y": 2.25, "w": 1.5 }, | ||
{ "label": "Delete", "x": 15.25, "y": 2.25 }, | ||
|
||
{ "label": "Caps Lock", "x": 0, "y": 3.25, "w": 1.75 }, | ||
{ "label": "A", "x": 1.75, "y": 3.25 }, | ||
{ "label": "S", "x": 2.75, "y": 3.25 }, | ||
{ "label": "D", "x": 3.75, "y": 3.25 }, | ||
{ "label": "F", "x": 4.75, "y": 3.25 }, | ||
{ "label": "G", "x": 5.75, "y": 3.25 }, | ||
{ "label": "H", "x": 6.75, "y": 3.25 }, | ||
{ "label": "J", "x": 7.75, "y": 3.25 }, | ||
{ "label": "K", "x": 8.75, "y": 3.25 }, | ||
{ "label": "L", "x": 9.75, "y": 3.25 }, | ||
{ "label": ":", "x": 10.75, "y": 3.25 }, | ||
{ "label": "\"", "x": 11.75, "y": 3.25 }, | ||
{ "label": "Enter", "x": 13.75, "y": 3.25, "w": 1.25 }, | ||
{ "label": "End", "x": 16.25, "y": 2.25 }, | ||
|
||
{ "label": "Shift", "x": 0, "y": 4.25, "w": 1.25 }, | ||
{ "label": "Z", "x": 2.25, "y": 4.25 }, | ||
{ "label": "X", "x": 3.25, "y": 4.25 }, | ||
{ "label": "C", "x": 4.25, "y": 4.25 }, | ||
{ "label": "V", "x": 5.25, "y": 4.25 }, | ||
{ "label": "B", "x": 6.25, "y": 4.25 }, | ||
{ "label": "N", "x": 7.25, "y": 4.25 }, | ||
{ "label": "M", "x": 8.25, "y": 4.25 }, | ||
{ "label": "<", "x": 9.25, "y": 4.25 }, | ||
{ "label": ">", "x": 10.25, "y": 4.25 }, | ||
{ "label": "?", "x": 11.25, "y": 4.25 }, | ||
{ "label": "Shift", "x": 12.25, "y": 4.25, "w": 1.75 }, | ||
{ "label": "Up", "x": 16.25, "y": 4.25 }, | ||
{ "label": "Up", "x": 16.25, "y": 4.25 }, | ||
|
||
{ "label": "Ctrl", "x": 0, "y": 5.25, "w": 1.25 }, | ||
{ "label": "Win", "x": 1.25, "y": 5.25, "w": 1.25 }, | ||
{ "label": "Alt", "x": 2.5, "y": 5.25, "w": 1.25 }, | ||
{ "label": "Space", "x": 3.75, "y": 5.25, "w": 6.25 }, | ||
{ "label": "Alt", "x": 10, "y": 5.25, "w": 1.25 }, | ||
{ "label": "Menu", "x": 12.5, "y": 5.25, "w": 1.25 }, | ||
{ "label": "Ctrl", "x": 13.75, "y": 5.25, "w": 1.25 }, | ||
{ "label": "Left", "x": 15.25, "y": 5.25 }, | ||
{ "label": "Down", "x": 16.25, "y": 5.25 }, | ||
{ "label": "Right", "x": 17.25, "y": 5.25 } | ||
] | ||
} | ||
} | ||
} |
Oops, something went wrong.