refactor: rename and modularize

This commit is contained in:
honorless 2024-11-12 23:34:29 -05:00
parent d6b2ce7e6a
commit 8565de6480
No known key found for this signature in database
GPG Key ID: 1B48A311ABE8DA4D
19 changed files with 50 additions and 46 deletions

1
.gitignore vendored
View File

@ -1,6 +1,5 @@
build/
zmk/
zephyr/
modules/
tools/
.west/

View File

@ -1,5 +1,5 @@
if you need the 3D modle of this keyboardyou can connect me by Email。380465425@qq.com
# zmk-config-corne
# 睫毛外设店 (Eyelash Peripherals) Corne
<img src="keymap-drawer/corne.svg" >

View File

@ -3,10 +3,10 @@
# SPDX-License-Identifier: MIT
#
config BOARD_CORNE_LEFT
bool "corne left"
config BOARD_EYELASH_CORNE_LEFT
bool "eyelash_corne left"
depends on SOC_NRF52840_QIAA
config BOARD_CORNE_RIGHT
bool "corne right"
config BOARD_EYELASH_CORNE_RIGHT
bool "eyelash_corne right"
depends on SOC_NRF52840_QIAA

View File

@ -3,20 +3,20 @@
# SPDX-License-Identifier: MIT
#
if BOARD_CORNE_LEFT
if BOARD_EYELASH_CORNE_LEFT
config ZMK_KEYBOARD_NAME
default "Corne"
default "Eyelash Corne"
config ZMK_SPLIT_ROLE_CENTRAL
default y
endif # BOARD_CORNE_LEFT
endif # BOARD_EYELASH_CORNE_LEFT
if BOARD_CORNE_LEFT || BOARD_CORNE_RIGHT
if BOARD_EYELASH_CORNE_LEFT || BOARD_EYELASH_CORNE_RIGHT
config BOARD
default "corne"
default "eyelash_corne"
config BOARD_ENABLE_DCDC
bool "Enable DCDC mode"
@ -27,7 +27,7 @@ config BOARD_ENABLE_DCDC_HV
bool "Enable High Voltage DCDC converter"
default y
select SOC_DCDC_NRF52X_HV
depends on (BOARD_CORNE_LEFT || BOARD_CORNE_RIGHT)
depends on (BOARD_EYELASH_CORNE_LEFT || BOARD_EYELASH_CORNE_RIGHT)
config ZMK_SLEEP
default y
@ -58,4 +58,4 @@ config LED_PWM
endif # ZMK_BACKLIGHT
endif # BOARD_CORNE_LEFT || BOARD_CORNE_RIGHT
endif # BOARD_EYELASH_CORNE_LEFT || BOARD_EYELASH_CORNE_RIGHT

View File

@ -11,8 +11,8 @@
#include <dt-bindings/zmk/matrix_transform.h>
/ {
model = "corne";
compatible = "corne";
model = "eyelash_corne";
compatible = "eyelashperipherals,eyelash_corne";
chosen {
zephyr,code-partition = &code_partition;

View File

@ -1,6 +1,6 @@
identifier: corne
name: Solfe
url: https://github.com/tokyo2006/zmk-config-corne
identifier: eyelash_corne
name: Eyelash Corne
url: https://github.com/a741725193/zmk-new_corne
type: mcu
arch: arm
toolchain:

View File

@ -0,0 +1,17 @@
file_format: "1"
id: eyelash_corne
name: Eyelash Corne
url: https://github.com/a741725193/zmk-new_corne
type: board
arch: arm
features:
- keys
- display
- underglow
- encoder
outputs:
- usb
- ble
siblings:
- eyelash_corne_left
- eyelash_corne_right

View File

@ -5,7 +5,7 @@
*
*/
#include "corne.dtsi"
#include "eyelash_corne.dtsi"
&left_encoder {
status = "okay";

View File

@ -5,8 +5,7 @@
CONFIG_SOC_SERIES_NRF52X=y
CONFIG_SOC_NRF52840_QIAA=y
CONFIG_BOARD_CORNE_LEFT=y
CONFIG_ZMK_SLEEP=y
CONFIG_BOARD_EYELASH_CORNE_LEFT=y
# Enable 32kHz crystal
CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL=y

View File

@ -5,7 +5,7 @@
*
*/
#include "corne.dtsi"
#include "eyelash_corne.dtsi"
&default_transform {
col-offset = <7>;

View File

@ -5,7 +5,7 @@
CONFIG_SOC_SERIES_NRF52X=y
CONFIG_SOC_NRF52840_QIAA=y
CONFIG_BOARD_CORNE_RIGHT=y
CONFIG_BOARD_EYELASH_CORNE_RIGHT=y
# Enable 32kHz crystal
CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL=y

View File

@ -1,11 +1,11 @@
---
include:
- board: corne_left
- board: eyelash_corne_left
shield: nice_view
#snippet: zmk-usb-logging # Uncomment to log over USB.
- board: corne_right
- board: eyelash_corne_right
shield: nice_view
#snippet: zmk-usb-logging
- board: corne_left
- board: eyelash_corne_left
shield: settings_reset
#snippet: zmk-usb-logging

View File

@ -1,17 +0,0 @@
file_format: "1"
id: corne
name: Sofle
url: https://github.com/tokyo2006/zmk-config-corne
type: board
arch: arm
features:
- keys
- display
- underglow
- encoder
outputs:
- usb
- ble
siblings:
- corne_left
- corne_right

View File

@ -1,6 +1,6 @@
{
"id": "corne",
"name": "Corne",
"id": "eyelash_corne",
"name": "Eyelash Corne",
"layouts": {
"default_layout": {
"name": "default_layout",

View File

@ -7,6 +7,9 @@ manifest:
# - https://zmk.dev/docs/features/modules
# - https://docs.zephyrproject.org/3.5.0/develop/west/manifest.html#projects
projects:
- name: eyelash_corne
url: https://github.com/a741725193/zmk-new_corne
revision: main
- name: zmk
remote: zmkfirmware
revision: main

3
zephyr/module.yml Normal file
View File

@ -0,0 +1,3 @@
build:
settings:
board_root: .