This keyboard is not the same as foostan's Corne. It will not work with standard corne
firmware.
- Fork this repository
- Enable GitHub Actions in your forked repository
- Navigate to Actions tab and enable workflows
- Edit files manually and commit them or use keymap editor
- Create a new virtual environment:
python3 -m venv .venv
- Activate the virtual environment:
source .venv/bin/activate
- Install west:
pip install west
- Initialize the application and update to fetch modules, including Zephyr:
west init -l config
west update
- Export a Zephyr CMake package. This allows CMake to automatically load boilerplate code required for building Zephyr applications.
west zephyr-export
- Install the additional dependencies found in Zephyr's requirements-base.txt:
pip install -r zephyr/scripts/requirements-base.txt
west build -s zmk/app -d build/left -b "corne_left" -- -DSHIELD="nice_view" -DZMK_EXTRA_MODULES="<absolute-path>/zmk-wireless-corne/zephyr" -DZMK_CONFIG="<absolute-path>/zmk-wireless-corne/config"
west build -s zmk/app -d build/right -b "corne_right" -- -DSHIELD="nice_view" -DZMK_EXTRA_MODULES="<absolute-path>/zmk-wireless-corne/zephyr" -DZMK_CONFIG="<absolute-path>/zmk-wireless-corne/config"
mv build/left/zephyr/zmk.uf2 build/nice_left
mv build/right/zephyr/zmk.uf2 build/nice_right
If you encounter an error related to missing elftools
, follow these steps:
-
Install the required package (it might say it is already installed but proceed with next step):
pip install pyelftools
-
Activate your Python virtual environment again (for some reason this fixes it):
source .venv/bin/activate