summaryrefslogtreecommitdiffstats
path: root/keyboards/yandrstudio
diff options
context:
space:
mode:
authorlokher <lokher@gmail.com>2022-12-06 17:04:10 +0800
committerlokher <lokher@gmail.com>2022-12-06 17:04:10 +0800
commit27fc28fd2ff52e079a5bc58d6aaea4c752420615 (patch)
tree7ac943fb1ba4f430a7220efd18f66f6a77205c30 /keyboards/yandrstudio
parente736133392fe6427cfb995da0787337189828272 (diff)
parent2709b6ed616f8012ff4cfd3ee69a822a8d188351 (diff)
Merge upstream master
Diffstat (limited to 'keyboards/yandrstudio')
-rw-r--r--keyboards/yandrstudio/buff67v3/board.h21
-rw-r--r--keyboards/yandrstudio/buff67v3/buff67v3.c58
-rw-r--r--keyboards/yandrstudio/buff67v3/buff67v3.h42
-rw-r--r--keyboards/yandrstudio/buff67v3/config.h59
-rw-r--r--keyboards/yandrstudio/buff67v3/halconf.h24
-rw-r--r--keyboards/yandrstudio/buff67v3/info.json362
-rw-r--r--keyboards/yandrstudio/buff67v3/keymaps/default/keymap.c31
-rw-r--r--keyboards/yandrstudio/buff67v3/keymaps/via/keymap.c43
-rw-r--r--keyboards/yandrstudio/buff67v3/keymaps/via/rules.mk1
-rw-r--r--keyboards/yandrstudio/buff67v3/mcuconf.h25
-rw-r--r--keyboards/yandrstudio/buff67v3/readme.md23
-rw-r--r--keyboards/yandrstudio/buff67v3/rules.mk17
-rw-r--r--keyboards/yandrstudio/eau87/board.h21
-rw-r--r--keyboards/yandrstudio/eau87/config.h27
-rw-r--r--keyboards/yandrstudio/eau87/eau87.c16
-rw-r--r--keyboards/yandrstudio/eau87/eau87.h34
-rw-r--r--keyboards/yandrstudio/eau87/info.json464
-rw-r--r--keyboards/yandrstudio/eau87/keymaps/default/keymap.c27
-rw-r--r--keyboards/yandrstudio/eau87/keymaps/via/keymap.c48
-rw-r--r--keyboards/yandrstudio/eau87/keymaps/via/rules.mk1
-rw-r--r--keyboards/yandrstudio/eau87/mcuconf.h21
-rw-r--r--keyboards/yandrstudio/eau87/readme.md22
-rw-r--r--keyboards/yandrstudio/eau87/rules.mk15
-rw-r--r--keyboards/yandrstudio/eau_r2/board.h22
-rw-r--r--keyboards/yandrstudio/eau_r2/config.h57
-rw-r--r--keyboards/yandrstudio/eau_r2/eau_r2.c20
-rw-r--r--keyboards/yandrstudio/eau_r2/eau_r2.h35
-rw-r--r--keyboards/yandrstudio/eau_r2/halconf.h21
-rw-r--r--keyboards/yandrstudio/eau_r2/info.json443
-rw-r--r--keyboards/yandrstudio/eau_r2/keymaps/default/keymap.c34
-rw-r--r--keyboards/yandrstudio/eau_r2/keymaps/via/keymap.c48
-rw-r--r--keyboards/yandrstudio/eau_r2/keymaps/via/rules.mk1
-rw-r--r--keyboards/yandrstudio/eau_r2/mcuconf.h27
-rw-r--r--keyboards/yandrstudio/eau_r2/readme.md22
-rw-r--r--keyboards/yandrstudio/eau_r2/rules.mk15
-rw-r--r--keyboards/yandrstudio/nightstar75/board.h21
-rw-r--r--keyboards/yandrstudio/nightstar75/config.h57
-rw-r--r--keyboards/yandrstudio/nightstar75/halconf.h20
-rw-r--r--keyboards/yandrstudio/nightstar75/info.json423
-rw-r--r--keyboards/yandrstudio/nightstar75/keymaps/default/keymap.c36
-rw-r--r--keyboards/yandrstudio/nightstar75/keymaps/via/keymap.c54
-rw-r--r--keyboards/yandrstudio/nightstar75/keymaps/via/rules.mk1
-rw-r--r--keyboards/yandrstudio/nightstar75/mcuconf.h24
-rw-r--r--keyboards/yandrstudio/nightstar75/nightstar75.c39
-rw-r--r--keyboards/yandrstudio/nightstar75/nightstar75.h33
-rw-r--r--keyboards/yandrstudio/nightstar75/readme.md22
-rw-r--r--keyboards/yandrstudio/nightstar75/rules.mk16
-rw-r--r--keyboards/yandrstudio/nz64/config.h115
-rw-r--r--keyboards/yandrstudio/nz64/keymaps/default/keymap.c32
-rw-r--r--keyboards/yandrstudio/nz64/keymaps/via/keymap.c44
-rw-r--r--keyboards/yandrstudio/nz64/nz64.c113
-rw-r--r--keyboards/yandrstudio/nz67v2/config.h108
-rw-r--r--keyboards/yandrstudio/nz67v2/info.json242
-rw-r--r--keyboards/yandrstudio/nz67v2/keymaps/default/keymap.c33
-rw-r--r--keyboards/yandrstudio/nz67v2/keymaps/via/keymap.c76
-rw-r--r--keyboards/yandrstudio/nz67v2/nz67v2.c122
-rw-r--r--keyboards/yandrstudio/nz67v2/nz67v2.h89
-rw-r--r--keyboards/yandrstudio/tg67/config.h99
-rw-r--r--keyboards/yandrstudio/wave75/board.h21
-rw-r--r--keyboards/yandrstudio/wave75/info.json433
-rw-r--r--keyboards/yandrstudio/wave75/keymaps/default/keymap.c34
-rw-r--r--keyboards/yandrstudio/wave75/keymaps/via/keymap.c48
-rw-r--r--keyboards/yandrstudio/wave75/keymaps/via/rules.mk1
-rw-r--r--keyboards/yandrstudio/wave75/mcuconf.h24
-rw-r--r--keyboards/yandrstudio/wave75/readme.md22
-rw-r--r--keyboards/yandrstudio/wave75/rules.mk15
-rw-r--r--keyboards/yandrstudio/wave75/wave75.c49
-rw-r--r--keyboards/yandrstudio/wave75/wave75.h55
-rw-r--r--keyboards/yandrstudio/yr6095/board.h21
-rw-r--r--keyboards/yandrstudio/yr6095/config.h56
-rw-r--r--keyboards/yandrstudio/yr6095/halconf.h21
-rw-r--r--keyboards/yandrstudio/yr6095/info.json693
-rw-r--r--keyboards/yandrstudio/yr6095/keymaps/default/keymap.c31
-rw-r--r--keyboards/yandrstudio/yr6095/keymaps/via/keymap.c43
-rw-r--r--keyboards/yandrstudio/yr6095/keymaps/via/rules.mk1
-rw-r--r--keyboards/yandrstudio/yr6095/mcuconf.h25
-rw-r--r--keyboards/yandrstudio/yr6095/readme.md22
-rw-r--r--keyboards/yandrstudio/yr6095/rules.mk16
-rw-r--r--keyboards/yandrstudio/yr6095/yr6095.c78
-rw-r--r--keyboards/yandrstudio/yr6095/yr6095.h80
-rw-r--r--keyboards/yandrstudio/yr80/board.h28
-rw-r--r--keyboards/yandrstudio/yr80/config.h48
-rw-r--r--keyboards/yandrstudio/yr80/halconf.h21
-rw-r--r--keyboards/yandrstudio/yr80/info.json19
-rw-r--r--keyboards/yandrstudio/yr80/keymaps/default/keymap.c34
-rw-r--r--keyboards/yandrstudio/yr80/keymaps/via/keymap.c48
-rw-r--r--keyboards/yandrstudio/yr80/keymaps/via/rules.mk1
-rw-r--r--keyboards/yandrstudio/yr80/mcuconf.h25
-rw-r--r--keyboards/yandrstudio/yr80/readme.md22
-rw-r--r--keyboards/yandrstudio/yr80/rules.mk16
-rw-r--r--keyboards/yandrstudio/yr80/yr80.c73
-rw-r--r--keyboards/yandrstudio/yr80/yr80.h56
92 files changed, 6146 insertions, 0 deletions
diff --git a/keyboards/yandrstudio/buff67v3/board.h b/keyboards/yandrstudio/buff67v3/board.h
new file mode 100644
index 0000000000..d83804babd
--- /dev/null
+++ b/keyboards/yandrstudio/buff67v3/board.h
@@ -0,0 +1,21 @@
+/* Copyright 2022 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_next "board.h"
+
+#undef STM32_HSECLK
+#define STM32_HSECLK 16000000
diff --git a/keyboards/yandrstudio/buff67v3/buff67v3.c b/keyboards/yandrstudio/buff67v3/buff67v3.c
new file mode 100644
index 0000000000..62a74c82bb
--- /dev/null
+++ b/keyboards/yandrstudio/buff67v3/buff67v3.c
@@ -0,0 +1,58 @@
+/* Copyright 2022 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 "buff67v3.h"
+
+
+#ifdef RGBLIGHT_ENABLE
+
+const rgblight_segment_t PROGMEM my_capslock_layer[] = RGBLIGHT_LAYER_SEGMENTS(
+ {0, 1, HSV_RED}
+);
+
+const rgblight_segment_t* const PROGMEM my_rgb_layers[] = RGBLIGHT_LAYERS_LIST(
+ my_capslock_layer
+);
+
+bool led_update_kb(led_t led_state) {
+ if (led_update_user(led_state)) {
+ rgblight_set_layer_state(0, led_state.caps_lock);
+ }
+ return true;
+}
+
+void keyboard_post_init_kb(void) {
+ rgblight_reload_from_eeprom();
+ rgblight_layers = my_rgb_layers;
+ keyboard_post_init_user();
+}
+
+#endif
+
+bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
+ if (!process_record_user(keycode, record)) { return false; }
+ switch(keycode) {
+ case LOCK_GUI:
+ process_magic(GUI_TOG, record);
+ return false;
+ default:
+ break;
+ }
+ return true;
+}
+
+void board_init(void) {
+ AFIO->MAPR |= AFIO_MAPR_TIM3_REMAP_PARTIALREMAP;
+}
diff --git a/keyboards/yandrstudio/buff67v3/buff67v3.h b/keyboards/yandrstudio/buff67v3/buff67v3.h
new file mode 100644
index 0000000000..dc6f334a58
--- /dev/null
+++ b/keyboards/yandrstudio/buff67v3/buff67v3.h
@@ -0,0 +1,42 @@
+/* Copyright 2022 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 "quantum.h"
+
+#define LAYOUT( \
+ K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, \
+ K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, \
+ K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K213, K214, \
+ K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K312, K313, K314, \
+ K400, K401, K402, K405, K409, K410, K412, K413, K414 \
+) { \
+ { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014 }, \
+ { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114 }, \
+ { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, KC_NO, K213, K214 }, \
+ { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, KC_NO, K312, K313, K314 }, \
+ { K400, K401, K402, KC_NO, KC_NO, K405, KC_NO, KC_NO, KC_NO, K409, K410, KC_NO, K412, K413, K414 } \
+}
+
+enum keyboard_keycodes {
+#ifdef VIA_ENABLE
+ LOCK_GUI = USER00,
+ NEW_SAFE_RANGE = SAFE_RANGE // Important!
+#else
+ LOCK_GUI = SAFE_RANGE,
+ NEW_SAFE_RANGE // Important!
+#endif
+};
diff --git a/keyboards/yandrstudio/buff67v3/config.h b/keyboards/yandrstudio/buff67v3/config.h
new file mode 100644
index 0000000000..0e7392f0e6
--- /dev/null
+++ b/keyboards/yandrstudio/buff67v3/config.h
@@ -0,0 +1,59 @@
+/* Copyright 2022 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"
+
+/* key matrix size */
+#define MATRIX_ROWS 5
+#define MATRIX_COLS 15
+
+/* key matrix pins */
+#define MATRIX_COL_PINS { B5, B6, B7, B8, B9, C13, C14, B0, B1, B2, B10, B11, B12, A15, B3 }
+#define MATRIX_ROW_PINS { A3, A4, A5, A7, C15 }
+
+/* COL2ROW or ROW2COL */
+#define DIODE_DIRECTION COL2ROW
+
+/* Set 0 if debouncing isn't needed */
+#define DEBOUNCE 5
+
+#ifdef RGBLIGHT_ENABLE
+
+# define RGB_DI_PIN B4
+# define RGBLED_NUM 1
+# define RGBLIGHT_EFFECT_BREATHING
+# define RGBLIGHT_EFFECT_RAINBOW_MOOD
+# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
+# define RGBLIGHT_EFFECT_SNAKE
+# define RGBLIGHT_EFFECT_KNIGHT
+# define RGBLIGHT_EFFECT_CHRISTMAS
+# define RGBLIGHT_EFFECT_STATIC_GRADIENT
+# define RGBLIGHT_EFFECT_RGB_TEST
+# define RGBLIGHT_EFFECT_ALTERNATING
+# define RGBLIGHT_EFFECT_TWINKLE
+# define RGBLIGHT_LAYERS
+# define RGBLIGHT_LAYERS_RETAIN_VAL
+# define RGBLIGHT_LAYERS_OVERRIDE_RGB_OFF
+
+# define WS2812_PWM_DRIVER PWMD3 // default: PWMD2
+# define WS2812_PWM_CHANNEL 1 // default: 2
+# define WS2812_DMA_STREAM STM32_DMA1_STREAM3 // DMA Stream for TIMx_UP, see the respective reference manual for the appropriate values for your MCU.
+# define WS2812_DMA_CHANNEL 3 // DMA Channel for TIMx_UP, see the respective reference manual for the appropriate values for your MCU.
+
+#endif
+
+
diff --git a/keyboards/yandrstudio/buff67v3/halconf.h b/keyboards/yandrstudio/buff67v3/halconf.h
new file mode 100644
index 0000000000..fca9a1f5f2
--- /dev/null
+++ b/keyboards/yandrstudio/buff67v3/halconf.h
@@ -0,0 +1,24 @@
+/* Copyright 2022 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_next <halconf.h>
+
+#undef HAL_USE_PWM
+#define HAL_USE_PWM TRUE
+
diff --git a/keyboards/yandrstudio/buff67v3/info.json b/keyboards/yandrstudio/buff67v3/info.json
new file mode 100644
index 0000000000..07f7dbbe30
--- /dev/null
+++ b/keyboards/yandrstudio/buff67v3/info.json
@@ -0,0 +1,362 @@
+{
+ "keyboard_name": "buff67v3",
+ "processor": "STM32F103",
+ "bootloader": "stm32duino",
+ "usb": {
+ "pid": "0xAA88",
+ "device_version": "1.0.0"
+ },
+ "layouts": {
+ "LAYOUT": {
+ "layout": [
+ {
+ "label": "~",
+ "x": 0,
+ "y": 0
+ },
+ {
+ "label": "!",
+ "x": 1,
+ "y": 0
+ },
+ {
+ "label": "@",
+ "x": 2,
+ "y": 0
+ },
+ {
+ "label": "#",
+ "x": 3,
+ "y": 0
+ },
+ {
+ "label": "$",
+ "x": 4,
+ "y": 0
+ },
+ {
+ "label": "%",
+ "x": 5,
+ "y": 0
+ },
+ {
+ "label": "^",
+ "x": 6,
+ "y": 0
+ },
+ {
+ "label": "&",
+ "x": 7,
+ "y": 0