mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-04-29 10:31:31 +00:00
submit ds17
This commit is contained in:
parent
87e8fcdb18
commit
e339335a0e
3
keyboards/czmao/ds17/config.h
Normal file
3
keyboards/czmao/ds17/config.h
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#define DYNAMIC_KEYMAP_LAYER_COUNT 8 //定义VIA层数
|
||||||
|
|
||||||
|
|
24
keyboards/czmao/ds17/halconf.h
Normal file
24
keyboards/czmao/ds17/halconf.h
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
/* 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/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
// #define HAL_USE_PWM TRUE
|
||||||
|
// #define HAL_USE_PAL TRUE
|
||||||
|
// #define HAL_USE_I2C TRUE
|
||||||
|
|
||||||
|
#include_next <halconf.h>
|
||||||
|
|
89
keyboards/czmao/ds17/info.json
Normal file
89
keyboards/czmao/ds17/info.json
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "mao_10_DS17_ST",
|
||||||
|
"manufacturer": "CZMAO",
|
||||||
|
"url": "NONE",
|
||||||
|
"maintainer": "MAOKB",
|
||||||
|
"diode_direction": "COL2ROW",
|
||||||
|
"processor": "STM32F103",
|
||||||
|
"bootloader": "stm32duino",
|
||||||
|
"usb": {
|
||||||
|
"vid": "0x4E17",
|
||||||
|
"pid": "0x4E17",
|
||||||
|
"device_version": "1.0.0"
|
||||||
|
},
|
||||||
|
"features": {
|
||||||
|
"bootmagic": true,
|
||||||
|
"command": true,
|
||||||
|
"console": true,
|
||||||
|
"extrakey": true,
|
||||||
|
"mousekey": true,
|
||||||
|
"nkro": true,
|
||||||
|
"rgb_matrix": false,
|
||||||
|
"rgblight": true,
|
||||||
|
"encoder": false
|
||||||
|
},
|
||||||
|
|
||||||
|
"bootmagic": {
|
||||||
|
"matrix" : [0,0]
|
||||||
|
},
|
||||||
|
|
||||||
|
"matrix_pins": {
|
||||||
|
"cols": ["B12", "B14", "B15", "A8"],
|
||||||
|
"rows": ["A9", "A10", "A15", "B3", "B4"]
|
||||||
|
},
|
||||||
|
|
||||||
|
"ws2812": {
|
||||||
|
"pin": "B13"
|
||||||
|
},
|
||||||
|
"rgblight": {
|
||||||
|
"saturation_steps": 8,
|
||||||
|
"brightness_steps": 8,
|
||||||
|
"hue_steps": 10,
|
||||||
|
"led_count": 25,
|
||||||
|
"sleep": true,
|
||||||
|
"animations": {
|
||||||
|
"breathing": true,
|
||||||
|
"rainbow_mood": true,
|
||||||
|
"rainbow_swirl": true,
|
||||||
|
"snake": true,
|
||||||
|
"knight": true,
|
||||||
|
"christmas": true,
|
||||||
|
"static_gradient": true,
|
||||||
|
"rgb_test": true,
|
||||||
|
"alternating": true,
|
||||||
|
"twinkle": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT": {
|
||||||
|
"layout": [
|
||||||
|
{"label":"FN","matrix": [ 0,0],"x":0,"y":0},
|
||||||
|
{"label":"PSLS","matrix": [ 0,1],"x":1,"y":0},
|
||||||
|
{"label":"PAST","matrix": [ 0,2],"x":2,"y":0},
|
||||||
|
{"label":"PMNS","matrix": [ 0,3],"x":3,"y":0},
|
||||||
|
|
||||||
|
{"label":"P7","matrix": [ 1,0],"x":0,"y":1},
|
||||||
|
{"label":"P8","matrix": [ 1,1],"x":1,"y":1},
|
||||||
|
{"label":"P9","matrix": [ 1,2],"x":2,"y":1},
|
||||||
|
{"label":"PPLS","matrix": [ 1,3],"x":3,"y":1},
|
||||||
|
|
||||||
|
{"label":"P4","matrix": [ 2,0],"x":2,"y":1},
|
||||||
|
{"label":"P5","matrix": [ 2,1],"x":3,"y":1},
|
||||||
|
{"label":"P6","matrix": [ 2,2],"x":4,"y":1},
|
||||||
|
|
||||||
|
{"label":"P1","matrix": [ 3,0],"x":0,"y":2},
|
||||||
|
{"label":"P2","matrix": [ 3,1],"x":1,"y":2},
|
||||||
|
{"label":"P3","matrix": [ 3,2],"x":2,"y":2},
|
||||||
|
{"label":"PENT","matrix": [ 3,3],"x":3,"y":2},
|
||||||
|
|
||||||
|
{"label":"P0","matrix": [ 4,0],"x":0,"y":3},
|
||||||
|
{"label":"PDOT","matrix": [ 4,2],"x":1,"y":3}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
64
keyboards/czmao/ds17/keymaps/default/keymap.c
Normal file
64
keyboards/czmao/ds17/keymaps/default/keymap.c
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2012,2013 Jun Wako <wakojun@gmail.com>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
|
||||||
|
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
||||||
|
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||||
|
// Layer names don't all need to be of the same length, obviously, and you can also skip them
|
||||||
|
// entirely and just use numbers.
|
||||||
|
|
||||||
|
// enum custom_keycodes {
|
||||||
|
// QWERTY = SAFE_RANGE,
|
||||||
|
// LOWER,
|
||||||
|
// RAISE
|
||||||
|
// };
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[0] = LAYOUT(
|
||||||
|
//1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
||||||
|
MO(1), KC_PSLS, KC_PAST, KC_PMNS,
|
||||||
|
KC_P7, KC_P8, KC_P9, KC_PPLS,
|
||||||
|
KC_P4, KC_P5, KC_P6,
|
||||||
|
KC_P1, KC_P2, KC_P3, KC_PENT,
|
||||||
|
KC_P0, KC_PDOT
|
||||||
|
|
||||||
|
|
||||||
|
),
|
||||||
|
[1] = LAYOUT(
|
||||||
|
//1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
||||||
|
MO(1), KC_NUM, MO(2), KC_CALC,
|
||||||
|
KC_HOME, KC_UP, KC_PGUP, KC_TRNS,
|
||||||
|
KC_LEFT, KC_TRNS, KC_RGHT,
|
||||||
|
KC_END, KC_DOWN, KC_PGDN, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS
|
||||||
|
|
||||||
|
|
||||||
|
),
|
||||||
|
[2] = LAYOUT(
|
||||||
|
//1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, RGB_VAI,
|
||||||
|
RGB_TOG, RGB_SAI, KC_TRNS, RGB_VAD,
|
||||||
|
RGB_HUD, KC_TRNS, RGB_HUI,
|
||||||
|
KC_TRNS, RGB_SAD, KC_TRNS, KC_TRNS,
|
||||||
|
RGB_MOD, KC_TRNS
|
||||||
|
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
};
|
19
keyboards/czmao/ds17/mcuconf.h
Normal file
19
keyboards/czmao/ds17/mcuconf.h
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
/* 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/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
#include_next <mcuconf.h>
|
||||||
|
|
12
keyboards/czmao/ds17/readme.md
Normal file
12
keyboards/czmao/ds17/readme.md
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# mao ds 17
|
||||||
|
|
||||||
|
A Blue Pill STM32F103CBT6-based 9x9 nono 87 keyboard.
|
||||||
|
|
||||||
|
Keyboard Maintainer: [Tab](https://tabkb.com/nono/link65ec)
|
||||||
|
Hardware Supported: Blue Pill STM32F103CBT6
|
||||||
|
|
||||||
|
Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
|
make tab/mao/ds17:default
|
||||||
|
|
||||||
|
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).
|
17
keyboards/czmao/ds17/rules.mk
Normal file
17
keyboards/czmao/ds17/rules.mk
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# Build Options
|
||||||
|
# change yes to no to disable
|
||||||
|
|
||||||
|
# MCU_LDSCRIPT = STM32F103xB
|
||||||
|
|
||||||
|
# BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
|
||||||
|
# MOUSEKEY_ENABLE = yes # Mouse keys
|
||||||
|
# EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
|
# CONSOLE_ENABLE = yes # Console for debug
|
||||||
|
# COMMAND_ENABLE = yes # Commands for debug and configuration
|
||||||
|
# NKRO_ENABLE = yes # Enable N-Key Rollover
|
||||||
|
# BACKLIGHT_ENABLE = no
|
||||||
|
# RGBLIGHT_ENABLE = yes
|
||||||
|
# SLEEP_LED_ENABLE = no
|
||||||
|
|
||||||
|
# Enter lower-power sleep mode when on the ChibiOS idle thread
|
||||||
|
# OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
|
Loading…
Reference in New Issue
Block a user