Skip to content
kd
19 Mar 2022
Back to blog

Compiling firmware for the Moonlander keyboard with QMK

1 min read (47 words)

First, clone the qmk_firmware GitHub repo, and make a fork to maintain your custom keyboard firmware. This is what my remotes look like:

Terminal window
cd qmk_firmware
git remote -v
origin git@github.com:kdheepak/qmk_firmware.git (fetch)
origin git@github.com:kdheepak/qmk_firmware.git (push)
qmk git@github.com:qmk/qmk_firmware.git (fetch)
qmk git@github.com:qmk/qmk_firmware.git (push)

Then, compile the firmware using the following from the root of the repository:

Terminal window
make moonlander:kdheepak:flash

The keymaps are located here:

Terminal window
ls keyboards/moonlander/keymaps/kdheepak
Permissions Size Date Modified Git Name
.rw-r--r-- 250 21 Mar 03:54 -- config.h
.rw-r--r-- 5.7k 21 Mar 03:54 -- keymap.c
.rw-r--r-- 292 21 Mar 03:54 -- rules.mk

Modify keymap.c based on your preferences.


Citation

@online{krishnamurthy2022compilingfirmwareforthemoonlanderkeyboardwithqmk,
  author = {Dheepak Krishnamurthy},
  title = {Compiling firmware for the Moonlander keyboard with QMK},
  year = {2022},
  date = {2022-03-19},
  url = {https://kdheepak.com/blog/compiling-firmware-for-the-moonlander-keyboard-with-qmk/},
  langid = {en},
}

For attribution, please cite this work as:

Dheepak Krishnamurthy, "Compiling firmware for the Moonlander keyboard with QMK", March 19, 2022 https://kdheepak.com/blog/compiling-firmware-for-the-moonlander-keyboard-with-qmk/


Pandoc lua filter for alerts
Sveltekit tailwind starter