From 2bd4b54da520ba1df74d8c2599e2815c971013c1 Mon Sep 17 00:00:00 2001 From: zvasoup Date: Sat, 10 Aug 2024 18:54:58 +0800 Subject: [PATCH] Initial User Config. --- .github/workflows/build.yml | 5 +++++ boards/shields/.gitkeep | 0 build.yaml | 22 ++++++++++++++++++++++ config/two_percent_milk.conf | 9 +++++++++ config/two_percent_milk.keymap | 22 ++++++++++++++++++++++ config/west.yml | 13 +++++++++++++ zephyr/module.yml | 3 +++ 7 files changed, 74 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 boards/shields/.gitkeep create mode 100644 build.yaml create mode 100644 config/two_percent_milk.conf create mode 100644 config/two_percent_milk.keymap create mode 100644 config/west.yml create mode 100644 zephyr/module.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..d74fb89 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,5 @@ +on: [push, pull_request, workflow_dispatch] + +jobs: + build: + uses: zmkfirmware/zmk/.github/workflows/build-user-config.yml@main diff --git a/boards/shields/.gitkeep b/boards/shields/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/build.yaml b/build.yaml new file mode 100644 index 0000000..62fce41 --- /dev/null +++ b/build.yaml @@ -0,0 +1,22 @@ +# This file generates the GitHub Actions matrix. +# For simple board + shield combinations, add them to the top level board and +# shield arrays, for more control, add individual board + shield combinations +# to the `include` property. You can also use the `cmake-args` property to +# pass flags to the build command and `artifact-name` to assign a name to +# distinguish build outputs from each other: +# +# board: [ "nice_nano_v2" ] +# shield: [ "corne_left", "corne_right" ] +# include: +# - board: bdn9_rev2 +# - board: nice_nano_v2 +# shield: reviung41 +# - board: nice_nano_v2 +# shield: corne_left +# cmake-args: -DCONFIG_ZMK_USB_LOGGING=y +# artifact-name: corne_left_with_logging +# +--- +include: + - board: nice_nano_v2 + shield: two_percent_milk diff --git a/config/two_percent_milk.conf b/config/two_percent_milk.conf new file mode 100644 index 0000000..4baccac --- /dev/null +++ b/config/two_percent_milk.conf @@ -0,0 +1,9 @@ +# Copyright (c) 2022 The ZMK Contributors +# SPDX-License-Identifier: MIT + +# Uncomment the following lines to enable RGB Underglow +# CONFIG_ZMK_RGB_UNDERGLOW=y +# CONFIG_WS2812_STRIP=y + +# Uncomment the following line to turn on logging, and set ZMK logging to debug output +# CONFIG_ZMK_USB_LOGGING=y \ No newline at end of file diff --git a/config/two_percent_milk.keymap b/config/two_percent_milk.keymap new file mode 100644 index 0000000..132793b --- /dev/null +++ b/config/two_percent_milk.keymap @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2022 The ZMK Contributors + * + * SPDX-License-Identifier: MIT + */ + +#include +#include +#include + +/ { + keymap { + compatible = "zmk,keymap"; + + default_layer { + bindings = < + &kp X + &kp Z + >; + }; + }; +}; \ No newline at end of file diff --git a/config/west.yml b/config/west.yml new file mode 100644 index 0000000..b886cbe --- /dev/null +++ b/config/west.yml @@ -0,0 +1,13 @@ +manifest: + remotes: + - name: zmkfirmware + url-base: https://github.com/zmkfirmware + # Additional modules containing boards/shields/custom code can be listed here as well + # See https://docs.zephyrproject.org/3.2.0/develop/west/manifest.html#projects + projects: + - name: zmk + remote: zmkfirmware + revision: main + import: app/west.yml + self: + path: config diff --git a/zephyr/module.yml b/zephyr/module.yml new file mode 100644 index 0000000..1cc2b35 --- /dev/null +++ b/zephyr/module.yml @@ -0,0 +1,3 @@ +build: + settings: + board_root: .