From 9b733f39d88a7714f6447ef2ba0ba6abece6abf0 Mon Sep 17 00:00:00 2001 From: jiaxin96 <572673807@qq.com> Date: Wed, 21 Apr 2021 14:03:10 +0800 Subject: [PATCH] revision of the config.h --- keyboards/yandrstudio/cool87/config.h | 21 +++++++++++++++++++-- keyboards/yandrstudio/cool87/cool87.h | 6 +----- keyboards/yandrstudio/cool87/info.json | 1 + keyboards/yandrstudio/nlhhkb/info.json | 1 + keyboards/yandrstudio/rainbow65/config.h | 20 ++++++++++++++++++-- keyboards/yandrstudio/rainbow65/info.json | 1 + keyboards/yandrstudio/sb65p/config.h | 20 ++++++++++++++++++-- keyboards/yandrstudio/sb65p/info.json | 1 + keyboards/yandrstudio/sb65p/sb65p.h | 3 --- 9 files changed, 60 insertions(+), 14 deletions(-) diff --git a/keyboards/yandrstudio/cool87/config.h b/keyboards/yandrstudio/cool87/config.h index 1d5cd319cb19..53bfd27aff37 100755 --- a/keyboards/yandrstudio/cool87/config.h +++ b/keyboards/yandrstudio/cool87/config.h @@ -1,3 +1,20 @@ +/* +Copyright 2012 Jun Wako + +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 . +*/ + #ifndef CONFIG_H #define CONFIG_H @@ -9,7 +26,7 @@ #define DEVICE_VER 0x0001 #define MANUFACTURER YandR studio #define PRODUCT Y&R-Cool87 -#define DESCRIPTION YandR studio Cool87 + /* key matrix size */ #define MATRIX_ROWS 6 @@ -30,7 +47,7 @@ #endif /* Set 0 if debouncing isn't needed */ -#define DEBOUNCING_DELAY 5 +#define DEBOUNCE 5 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ #define LOCKING_SUPPORT_ENABLE diff --git a/keyboards/yandrstudio/cool87/cool87.h b/keyboards/yandrstudio/cool87/cool87.h index 7e62d0e8c23c..cdb855900f95 100755 --- a/keyboards/yandrstudio/cool87/cool87.h +++ b/keyboards/yandrstudio/cool87/cool87.h @@ -1,6 +1,4 @@ -#ifndef KB_H -#define KB_H - +#pragma once #include "quantum.h" #define LAYOUT( \ @@ -19,5 +17,3 @@ { K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, KC_NO, KC_NO, K413, KC_NO, K415, KC_NO }, \ { K500, K501, K502, KC_NO, KC_NO, KC_NO, K506, KC_NO, KC_NO, KC_NO, K510, K511, KC_NO, K513, K514, K515, K516 } \ } - -#endif diff --git a/keyboards/yandrstudio/cool87/info.json b/keyboards/yandrstudio/cool87/info.json index 978b30f5864a..4a9404ce56be 100644 --- a/keyboards/yandrstudio/cool87/info.json +++ b/keyboards/yandrstudio/cool87/info.json @@ -1,5 +1,6 @@ { "keyboard_name": "cool87", + "url": "https://github.com/Oh-My-Mechanical-Keyboard", "maintainer": "jiaxin96", "width": 18.25, "height": 6.5, diff --git a/keyboards/yandrstudio/nlhhkb/info.json b/keyboards/yandrstudio/nlhhkb/info.json index f9c12fac62f2..c4eb11f8c2b9 100644 --- a/keyboards/yandrstudio/nlhhkb/info.json +++ b/keyboards/yandrstudio/nlhhkb/info.json @@ -1,5 +1,6 @@ { "keyboard_name": "nlhhkb", + "url": "https://github.com/Oh-My-Mechanical-Keyboard", "maintainer": "jiaxin96", "width": 15, "height": 5, diff --git a/keyboards/yandrstudio/rainbow65/config.h b/keyboards/yandrstudio/rainbow65/config.h index c7219acf8591..414a7c4fe514 100755 --- a/keyboards/yandrstudio/rainbow65/config.h +++ b/keyboards/yandrstudio/rainbow65/config.h @@ -1,3 +1,20 @@ +/* +Copyright 2012 Jun Wako + +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 . +*/ + #ifndef CONFIG_H #define CONFIG_H @@ -9,8 +26,7 @@ #define DEVICE_VER 0x0001 #define RAW_USAGE_PAGE 0xFF60 #define MANUFACTURER yrstudio Jason Ren and magic mvp -#define PRODUCT rainbow65 -#define DESCRIPTION STM32 based 65 keyboard with full rgb, oled and encoder. +#define PRODUCT rainboM32 based 65 keyboard with full rgb, oled and encoder. /* key matrix set */ #define MATRIX_ROWS 5 diff --git a/keyboards/yandrstudio/rainbow65/info.json b/keyboards/yandrstudio/rainbow65/info.json index 47c0995417ba..5eaba1a3205b 100644 --- a/keyboards/yandrstudio/rainbow65/info.json +++ b/keyboards/yandrstudio/rainbow65/info.json @@ -1,5 +1,6 @@ { "keyboard_name": "rainbow65", + "url": "https://github.com/Oh-My-Mechanical-Keyboard", "maintainer": "jiaxin96", "width": 16.25, "height": 5.25, diff --git a/keyboards/yandrstudio/sb65p/config.h b/keyboards/yandrstudio/sb65p/config.h index cfd1fbffc2ea..586ea2e4fd0a 100644 --- a/keyboards/yandrstudio/sb65p/config.h +++ b/keyboards/yandrstudio/sb65p/config.h @@ -1,3 +1,20 @@ +/* +Copyright 2012 Jun Wako + +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 #include "config_common.h" @@ -7,7 +24,6 @@ #define DEVICE_VER 0x0001 #define MANUFACTURER Jason Ren and Student WTF #define PRODUCT SB-65P -#define DESCRIPTION Split Biu 65 Plus KB /* key matrix size */ #define MATRIX_ROWS 10 @@ -25,7 +41,7 @@ /* Set 0 if debouncing isn't needed */ -#define DEBOUNCING_DELAY 5 +#define DEBOUNCE 5 #define ONESHOT_TIMEOUT 500 diff --git a/keyboards/yandrstudio/sb65p/info.json b/keyboards/yandrstudio/sb65p/info.json index 5c76a64a65a2..9e3a1415d07a 100644 --- a/keyboards/yandrstudio/sb65p/info.json +++ b/keyboards/yandrstudio/sb65p/info.json @@ -1,5 +1,6 @@ { "keyboard_name": "sb65p", + "url": "https://github.com/Oh-My-Mechanical-Keyboard", "maintainer": "jiaxin96", "width": 19, "height": 5.25, diff --git a/keyboards/yandrstudio/sb65p/sb65p.h b/keyboards/yandrstudio/sb65p/sb65p.h index e9f548bc0c28..03913aa24e7e 100644 --- a/keyboards/yandrstudio/sb65p/sb65p.h +++ b/keyboards/yandrstudio/sb65p/sb65p.h @@ -1,5 +1,3 @@ -#ifndef SB65P_H -#define SB65P_H #pragma once #include "quantum.h" @@ -27,4 +25,3 @@ { KC_NO, K091, KC_NO, K093, K094, K095, K096, K097, K098 }\ } -#endif