Skip to content

Commit

Permalink
fix share ep bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaxin96 committed Aug 25, 2021
1 parent f58a2d6 commit 3b8a86c
Show file tree
Hide file tree
Showing 26 changed files with 1,215 additions and 8 deletions.
2 changes: 1 addition & 1 deletion keyboards/yandrstudio/Eureka75/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#define VENDOR_ID 0xAA96
#define PRODUCT_ID 0xAAAA
#define DEVICE_VER 0x0001
#define MANUFACTURER JasonRen biu
#define MANUFACTURER lkaill-Y&R
#define PRODUCT Eureka75

// enable the nkro when using the VIA.
Expand Down
2 changes: 1 addition & 1 deletion keyboards/yandrstudio/Eureka75/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# 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
KEYBOARD_SHARED_EP = no # Free up some extra endpoints - needed if console+mouse+extra
MOUSEKEY_ENABLE = yes # Mouse keys
EXTRAKEY_ENABLE = yes # Audio control and System control
CONSOLE_ENABLE = no # Console for debug
Expand Down
17 changes: 16 additions & 1 deletion keyboards/yandrstudio/WS69v2/WS69v2.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
/* 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
#define XX NO_LED

#ifdef RGB_MATRIX_ENABLE
led_config_t g_led_config = {
Expand Down
2 changes: 2 additions & 0 deletions keyboards/yandrstudio/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ A creative coder.
| Eureka75 | 0xAA96 | 0xAAAA | F401,ENCODER | &check; |
| boy40ble | 0xAA96 | 0xAAAB | BLE 5.0 Dual mode | &cross; |
| boyPad | 0xAA96 | 0xAAAC | F401 | &cross; |
| zhou65 | 0xAA96 | 0xAAAD | F401 | &cross; |


### Keyboard Tools Developed by Y&R Studio

Expand Down
4 changes: 2 additions & 2 deletions keyboards/yandrstudio/whiteMouse69/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# 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
KEYBOARD_SHARED_EP = no # Free up some extra endpoints - needed if console+mouse+extra
MOUSEKEY_ENABLE = yes # Mouse keys
EXTRAKEY_ENABLE = yes # Audio control and System control
CONSOLE_ENABLE = yes # Console for debug
# CONSOLE_ENABLE = yes # Console for debug
# COMMAND_ENABLE = yes # Commands for debug and configuration
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
NKRO_ENABLE = yes # USB Nkey Rollover
Expand Down
43 changes: 43 additions & 0 deletions keyboards/yandrstudio/zhou65/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/* 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 0xAAAD
#define DEVICE_VER 0x0001
#define MANUFACTURER lkaill-Y&R
#define PRODUCT zhou65
#define DESCRIPTION STM32 based 65%.

// 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 1

// #define DEBUG_MATRIX_SCAN_RATE

#define USB_POLLING_INTERVAL_MS 1
#define QMK_KEYS_PER_SCAN 4
25 changes: 25 additions & 0 deletions keyboards/yandrstudio/zhou65/f401/board.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/* 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_HSECLK
#define STM32_HSECLK 8000000


#define BOARD_UCHEN_F401
34 changes: 34 additions & 0 deletions keyboards/yandrstudio/zhou65/f401/chconf.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/* 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 CH_CFG_ST_FREQUENCY 10000

#define CH_CFG_FACTORY_OBJECTS_REGISTRY TRUE

#define CH_CFG_FACTORY_GENERIC_BUFFERS TRUE

#define CH_CFG_FACTORY_SEMAPHORES TRUE

#define CH_CFG_FACTORY_MAILBOXES TRUE

#define CH_CFG_FACTORY_OBJ_FIFOS TRUE

#define CH_CFG_FACTORY_PIPES TRUE

#include_next <chconf.h>

33 changes: 33 additions & 0 deletions keyboards/yandrstudio/zhou65/f401/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/* 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"

/* key matrix size */
#define MATRIX_ROWS 5
#define MATRIX_COLS 15

/* key matrix pins */
#define MATRIX_ROW_PINS { A2, A1, B8, B7, C15 }
#define MATRIX_COL_PINS { B9, B6, B5, B4, B3, B1, B0, A7, A6, A5, A4, A3, A8, B15, B14 }

/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION ROW2COL

#define LED_CAPS_LOCK_PIN A15
#define LED_PIN_ON_STATE 0

Loading

0 comments on commit 3b8a86c

Please sign in to comment.