forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Showing
13 changed files
with
471 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,74 @@ | ||
/* Copyright 2021 JasonRen(biu) | ||
* | ||
* 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 | ||
|
||
#include "config_common.h" | ||
|
||
/* USB Device descriptor parameter */ | ||
#define VENDOR_ID 0xAA96 | ||
#define PRODUCT_ID 0xAA05 | ||
#define DEVICE_VER 0x0001 | ||
#define MANUFACTURER JasonRen biu | ||
#define PRODUCT whiteMouse28T | ||
|
||
/* key matrix size */ | ||
#define MATRIX_ROWS 4 | ||
#define MATRIX_COLS 7 | ||
|
||
// 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ||
#define MATRIX_COL_PINS { B14, B15, A8, A9, A10, B4, B3} | ||
#define MATRIX_ROW_PINS { B13, B12, B7, B6} | ||
|
||
/* COL2ROW or ROW2COL */ | ||
#define DIODE_DIRECTION COL2ROW | ||
|
||
|
||
// enable the nkro when using the VIA. | ||
#define FORCE_NKRO | ||
|
||
// fix VIA RGB_light | ||
#define VIA_HAS_BROKEN_KEYCODES | ||
|
||
/* define if matrix has ghost */ | ||
//#define MATRIX_HAS_GHOST | ||
|
||
/* Set 0 if debouncing isn't needed */ | ||
#define DEBOUNCE 5 | ||
|
||
|
||
|
||
/* RGN Matrix */ | ||
#ifdef RGB_MATRIX_ENABLE | ||
|
||
# define RGB_DI_PIN B5 | ||
# define RGBLED_NUM 2 | ||
# define DRIVER_LED_TOTAL RGBLED_NUM | ||
|
||
|
||
# define WS2812_SPI SPID1 // default: SPID1 | ||
# define WS2812_SPI_MOSI_PAL_MODE 5 | ||
|
||
# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 180 | ||
# define RGBLIGHT_VAL_STEP 18 | ||
# define RGB_DISABLE_WHEN_USB_SUSPENDED true | ||
# define RGB_MATRIX_CENTER { 32, 96 } | ||
# define RGB_MATRIX_KEYPRESSES | ||
# define RGB_MATRIX_FRAMEBUFFER_EFFECTS | ||
|
||
#endif | ||
|
||
|
||
|
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,24 @@ | ||
/* Copyright 2020 Nick Brassel (tzarc) | ||
* | ||
* 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 3 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 <https://www.gnu.org/licenses/>. | ||
*/ | ||
#pragma once | ||
|
||
#include_next "board.h" | ||
|
||
#undef STM32_HSE_BYPASS | ||
#ifdef STM32_HSECLK | ||
#undef STM32_HSECLK | ||
#endif // STM32_HSECLK | ||
#define STM32_HSECLK 8000000 |
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,36 @@ | ||
/* Copyright 2020 QMK | ||
* | ||
* 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/>. | ||
*/ | ||
|
||
/* | ||
* This file was auto-generated by: | ||
* `qmk chibios-confmigrate -i keyboards/zvecr/zv48/f401/halconf.h -r platforms/chibios/common/configs/halconf.h` | ||
*/ | ||
|
||
#pragma once | ||
|
||
|
||
// #undef HAL_USE_PWM | ||
// #define HAL_USE_PWM TRUE | ||
|
||
// #define HAL_USE_SERIAL TRUE | ||
#undef SERIAL_USB_BUFFERS_SIZE | ||
#define SERIAL_USB_BUFFERS_SIZE 256 | ||
|
||
#undef HAL_USE_SPI | ||
#define HAL_USE_SPI TRUE | ||
|
||
|
||
#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,93 @@ | ||
/* Copyright 2020 QMK | ||
* | ||
* 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/>. | ||
*/ | ||
|
||
/* | ||
* This file was auto-generated by: | ||
* `qmk chibios-confmigrate -i keyboards/zvecr/zv48/f401/mcuconf.h -r platforms/chibios/BLACKPILL_STM32_F401/configs/mcuconf.h` | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include_next <mcuconf.h> | ||
|
||
// #undef STM32_PWM_USE_TIM3 | ||
// #define STM32_PWM_USE_TIM3 TRUE | ||
|
||
#undef STM32_SERIAL_USE_USART1 | ||
#define STM32_SERIAL_USE_USART1 FALSE | ||
|
||
#undef STM32_SPI_USE_SPI1 | ||
#define STM32_SPI_USE_SPI1 TRUE | ||
|
||
|
||
#undef STM32_NO_INIT | ||
#undef STM32_HSI_ENABLED | ||
#undef STM32_LSI_ENABLED | ||
#undef STM32_HSE_ENABLED | ||
#undef STM32_LSE_ENABLED | ||
#undef STM32_CLOCK48_REQUIRED | ||
#undef STM32_SW | ||
#undef STM32_PLLSRC | ||
#undef STM32_PLLM_VALUE | ||
#undef STM32_PLLN_VALUE | ||
#undef STM32_PLLP_VALUE | ||
#undef STM32_PLLQ_VALUE | ||
#undef STM32_HPRE | ||
#undef STM32_PPRE1 | ||
#undef STM32_PPRE2 | ||
#undef STM32_RTCSEL | ||
#undef STM32_RTCPRE_VALUE | ||
#undef STM32_MCO1SEL | ||
#undef STM32_MCO1PRE | ||
#undef STM32_MCO2SEL | ||
#undef STM32_MCO2PRE | ||
#undef STM32_I2SSRC | ||
#undef STM32_PLLI2SN_VALUE | ||
#undef STM32_PLLI2SR_VALUE | ||
#undef STM32_PVD_ENABLE | ||
#undef STM32_PLS | ||
#undef STM32_BKPRAM_ENABLE | ||
|
||
#define STM32_NO_INIT FALSE | ||
#define STM32_HSI_ENABLED TRUE | ||
#define STM32_LSI_ENABLED TRUE | ||
#define STM32_HSE_ENABLED TRUE | ||
#define STM32_LSE_ENABLED FALSE | ||
#define STM32_CLOCK48_REQUIRED TRUE | ||
#define STM32_SW STM32_SW_PLL | ||
#define STM32_PLLSRC STM32_PLLSRC_HSE | ||
#define STM32_PLLM_VALUE 8 | ||
#define STM32_PLLN_VALUE 192 | ||
#define STM32_PLLP_VALUE 4 | ||
#define STM32_PLLQ_VALUE 4 | ||
#define STM32_HPRE STM32_HPRE_DIV1 | ||
#define STM32_PPRE1 STM32_PPRE1_DIV4 | ||
#define STM32_PPRE2 STM32_PPRE2_DIV2 | ||
#define STM32_RTCSEL STM32_RTCSEL_LSI | ||
#define STM32_RTCPRE_VALUE 8 | ||
#define STM32_MCO1SEL STM32_MCO1SEL_HSI | ||
#define STM32_MCO1PRE STM32_MCO1PRE_DIV1 | ||
#define STM32_MCO2SEL STM32_MCO2SEL_SYSCLK | ||
#define STM32_MCO2PRE STM32_MCO2PRE_DIV5 | ||
#define STM32_I2SSRC STM32_I2SSRC_CKIN | ||
#define STM32_PLLI2SN_VALUE 192 | ||
#define STM32_PLLI2SR_VALUE 5 | ||
#define STM32_PVD_ENABLE FALSE | ||
#define STM32_PLS STM32_PLS_LEV0 | ||
#define STM32_BKPRAM_ENABLE FALSE | ||
|
||
|
||
|
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,9 @@ | ||
# MCU name | ||
MCU = STM32F401 | ||
|
||
# Address of the bootloader in system memory | ||
STM32_BOOTLOADER_ADDRESS = 0x1FFF0000 | ||
|
||
# Disable unsupported hardware | ||
# AUDIO_SUPPORTED = no | ||
# BACKLIGHT_SUPPORTED = no |
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,57 @@ | ||
{ | ||
"name": "BS28", | ||
"vendorId": "0xAA96", | ||
"productId": "0xAA05", | ||
"lighting": { | ||
"extends": "none", | ||
"keycodes": "qmk" | ||
}, | ||
"matrix": { "rows": 4, "cols": 7 }, | ||
"layouts": { | ||
"keymap": | ||
[ | ||
[ | ||
"0,0", | ||
"0,1", | ||
"0,2", | ||
"0,3", | ||
"0,4", | ||
"0,5", | ||
"0,6" | ||
], | ||
[ | ||
{ | ||
"f": 1 | ||
}, | ||
"1,0", | ||
{ | ||
"f": 3 | ||
}, | ||
"1,1", | ||
"1,2", | ||
"1,3", | ||
"1,4", | ||
"1,5", | ||
"1,6" | ||
], | ||
[ | ||
"2,0", | ||
"2,1", | ||
"2,2", | ||
"2,3", | ||
"2,4", | ||
"2,5", | ||
"2,6" | ||
], | ||
[ | ||
"3,0", | ||
"3,1", | ||
"3,2", | ||
"3,3", | ||
"3,4", | ||
"3,5", | ||
"3,6" | ||
] | ||
] | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
keyboards/yandrstudio/whiteMouse28T/keymaps/default/keymap.c
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,26 @@ | ||
/* Copyright 2021 JasonRen(biu) | ||
* | ||
* 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 | ||
|
||
|
||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
LAYOUT( | ||
KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, | ||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, | ||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, | ||
KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RALT, KC_TRNS, KC_RCTL) | ||
|
||
}; |
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,26 @@ | ||
/* Copyright 2021 JasonRen(biu) | ||
* | ||
* 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 | ||
|
||
|
||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
LAYOUT( | ||
KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, | ||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, | ||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, | ||
KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RALT, KC_TRNS, KC_RCTL) | ||
|
||
}; |
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 @@ | ||
VIA_ENABLE = yes |
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,15 @@ | ||
whiteMouse28T | ||
=== | ||
|
||
A 68 keys keyboard with rgb (keys and underground). | ||
This keyboard use 8mhz HSE and STM32F401 as MCU. | ||
|
||
Keyboard Maintainer: https://github.com/jiaxin96 | ||
Hardware Supported: whiteMouse28T | ||
Hardware Availability: https://github.com/Oh-My-Mechanical-Keyboard | ||
|
||
Make example for this keyboard (after setting up your build environment): | ||
|
||
make yandrstudio/whiteMouse28T/f401:default | ||
|
||
See [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) then the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. |
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,17 @@ | ||
# Build Options | ||
# change yes to no to disable | ||
# | ||
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
# KEYBOARD_SHARED_EP = yes # Free up some extra endpoints - needed if console+mouse+extra | ||
MOUSEKEY_ENABLE = no # Mouse keys | ||
EXTRAKEY_ENABLE = yes # Audio control and System control | ||
CONSOLE_ENABLE = no # Console for debug | ||
COMMAND_ENABLE = yes # Commands for debug and configuration | ||
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
NKRO_ENABLE = yes # USB Nkey Rollover | ||
RGB_MATRIX_ENABLE = yes | ||
RGB_MATRIX_DRIVER = WS2812 | ||
WS2812_DRIVER = spi | ||
|
Oops, something went wrong.