Skip to content

Commit

Permalink
Rename hw75 to hw75_keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
xingrz committed Jan 13, 2023
1 parent b8e38ec commit 69b27b3
Show file tree
Hide file tree
Showing 26 changed files with 50 additions and 50 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
strategy:
matrix:
include:
- { board: hw75@1.1, keymap: hw75.keymap }
- { board: hw75@1.2, keymap: hw75.keymap }
- { board: hw75_dynamic, keymap: hw75_dynamic.keymap }
- { board: hw75_keyboard@1.1, keymap: hw75_keyboard.keymap }
- { board: hw75_keyboard@1.2, keymap: hw75_keyboard.keymap }
- { board: hw75_dynamic, keymap: hw75_dynamic.keymap }

steps:
- name: Prepare variables
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ zmk-config for HelloWord HW-75 (瀚文 75)

HW-75 由键盘主体 (Keyboard) 与扩展模块 (Dynamic) 组成。详细说明请见:

* [Keyboard](config/boards/arm/hw75/)
* [Dynamic](config/boards/arm/hw75_dynamic/)
* [HW-75 Keyboard](config/boards/arm/hw75_keyboard/)
* [HW-75 Dynamic](config/boards/arm/hw75_dynamic/)

## 相关链接

Expand Down
4 changes: 0 additions & 4 deletions config/boards/arm/hw75/CMakeLists.txt

This file was deleted.

8 changes: 0 additions & 8 deletions config/boards/arm/hw75/Kconfig.board

This file was deleted.

7 changes: 0 additions & 7 deletions config/boards/arm/hw75/hw75.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions config/boards/arm/hw75/hw75_1_1_0.conf

This file was deleted.

4 changes: 0 additions & 4 deletions config/boards/arm/hw75/hw75_1_1_0.overlay

This file was deleted.

2 changes: 0 additions & 2 deletions config/boards/arm/hw75/hw75_1_2_0.conf

This file was deleted.

4 changes: 4 additions & 0 deletions config/boards/arm/hw75_keyboard/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright (c) 2022-2023 XiNGRZ
# SPDX-License-Identifier: MIT

add_subdirectory_ifdef(CONFIG_BOARD_HW75_KEYBOARD app)
8 changes: 8 additions & 0 deletions config/boards/arm/hw75_keyboard/Kconfig.board
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# HW-75 board configuration

# Copyright (c) 2022-2023 XiNGRZ
# SPDX-License-Identifier: MIT

config BOARD_HW75_KEYBOARD
bool "HelloWord HW-75 Keyboard"
depends on SOC_STM32F103XB
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# HW-75 board configuration

# Copyright (c) 2022 The ZMK Contributors
# Copyright (c) 2022-2023 XiNGRZ
# SPDX-License-Identifier: MIT

if BOARD_HW75
if BOARD_HW75_KEYBOARD

config BOARD
default "hw75"
default "hw75_keyboard"

config ZMK_KEYBOARD_NAME
default "HelloWord HW-75"
default "HelloWord HW-75 Keyboard"

config ZMK_USB
default y
Expand Down Expand Up @@ -43,4 +43,4 @@ config BUILD_OUTPUT_UF2_USE_FLASH_OFFSET

endif # BUILD_OUTPUT_UF2

endif # BOARD_HW75
endif # BOARD_HW75_KEYBOARD
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ HW-75 Keyboard

| PCB 版本 | 文件前缀 | 备注 |
|--------|--------------------|------|
| Ver1.1 | `hw75@1.1-zmk` | [立创开源](https://oshwhub.com/pengzhihui/b11afae464c54a3e8d0f77e1f92dc7b7)版,大部分开源团使用的版本 |
| Ver1.2 | `hw75@1.2-zmk` | Xikii 500 人试做团、哔哩哔哩会员购版 |
| Ver1.1 | `hw75_keyboard@1.1-zmk` | [立创开源](https://oshwhub.com/pengzhihui/b11afae464c54a3e8d0f77e1f92dc7b7)版,大部分开源团使用的版本 |
| Ver1.2 | `hw75_keyboard@1.2-zmk` | Xikii 500 人试做团、哔哩哔哩会员购版 |

## 烧录

Expand All @@ -25,7 +25,7 @@ HW-75 Keyboard

![keymap](keymap.png)

本固件默认布局屏蔽了触摸条。如需更改布局,你可以将本仓库 Fork 到自己账号下之后使用 [ZMK Keymap Editor](https://nickcoutsos.github.io/keymap-editor/) 修改,或手动编辑 [`hw75.keymap`](/config/hw75.keymap) 文件。然后等待云端编译出新的固件。
本固件默认布局屏蔽了触摸条。如需更改布局,你可以将本仓库 Fork 到自己账号下之后使用 [ZMK Keymap Editor](https://nickcoutsos.github.io/keymap-editor/) 修改,或手动编辑 [`hw75_keyboard.keymap`](/config/hw75_keyboard.keymap) 文件。然后等待云端编译出新的固件。

### 灯效

Expand All @@ -49,14 +49,14 @@ export GNUARMEMB_TOOLCHAIN_PATH=/path/to/gcc-arm-none-eabi-10.3-2021.10
west init -l config
west update
west zephyr-export
west build -s zmk/app -b hw75 -- -DZMK_CONFIG=$PWD/config
west build -s zmk/app -b hw75_keyboard -- -DZMK_CONFIG=$PWD/config
west flash
```

默认会构建最新 PCB 版本的配置。如果你需要构建不同版本,可以使用下面的命令:

```sh
west build -p -s zmk/app -b hw75@1.1 -- -DZMK_CONFIG=$PWD/config -DKEYMAP_FILE=$PWD/config/hw75.keymap
west build -p -s zmk/app -b hw75_keyboard@1.1 -- -DZMK_CONFIG=$PWD/config -DKEYMAP_FILE=$PWD/config/hw75_keyboard.keymap
```

## 相关链接
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2022 The ZMK Contributors
# Copyright (c) 2022-2023 XiNGRZ
# SPDX-License-Identifier: MIT

board_runner_args(pyocd "--target=stm32f103c8")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022 The ZMK Contributors
* Copyright (c) 2022-2023 XiNGRZ
* SPDX-License-Identifier: MIT
*/

Expand All @@ -10,7 +10,7 @@
#include <dt-bindings/zmk/matrix_transform.h>

/ {
model = "HelloWord HW-75";
model = "HelloWord HW-75 Keyboard";
compatible = "st,stm32f103";

chosen {
Expand Down
7 changes: 7 additions & 0 deletions config/boards/arm/hw75_keyboard/hw75_keyboard.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
identifier: hw75_keyboard
name: HelloWord HW-75 Keyboard
type: mcu
arch: arm
toolchain:
- zephyr
- gnuarmemb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
file_format: "1"
id: hw75
name: HelloWord HW-75
id: hw75_keyboard
name: HelloWord HW-75 Keyboard
type: board
arch: arm
features:
Expand Down
2 changes: 2 additions & 0 deletions config/boards/arm/hw75_keyboard/hw75_keyboard_1_1_0.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright (c) 2022-2023 XiNGRZ
# SPDX-License-Identifier: MIT
4 changes: 4 additions & 0 deletions config/boards/arm/hw75_keyboard/hw75_keyboard_1_1_0.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/*
* Copyright (c) 2022-2023 XiNGRZ
* SPDX-License-Identifier: MIT
*/
2 changes: 2 additions & 0 deletions config/boards/arm/hw75_keyboard/hw75_keyboard_1_2_0.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright (c) 2022-2023 XiNGRZ
# SPDX-License-Identifier: MIT
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022 The ZMK Contributors
* Copyright (c) 2022-2023 XiNGRZ
* SPDX-License-Identifier: MIT
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2022 The ZMK Contributors
# Copyright (c) 2022-2023 XiNGRZ
# SPDX-License-Identifier: MIT

# SoC
Expand Down
File renamed without changes
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2022 The ZMK Contributors
# Copyright (c) 2022-2023 XiNGRZ
# SPDX-License-Identifier: MIT

board_check_revision(
Expand Down
File renamed without changes.

0 comments on commit 69b27b3

Please sign in to comment.