qmk_firmware/docs
Cody Bender e77188458f
Add QMK Compile Context Sensitivity (#6884)
* Add context sensitive compile, without config check

* Initial full working state. Plan to refactor

* Refactor loop for simplicity, add comments

* Update docs/cli.md with qmk compile examples

* Simplify path for keyboard derivation

* Update path to use path.join instead of concat

* Refactor keyboard path, the skully way

* Add in keymap folder support

* Add /layouts compile support

* Update docs/cli.md with empty compile in layouts

* Add comments to compile.py

* Update docs for clarity, and fix compile error typo

* Fix config option compile

* Fix layout compile and failure mode

* Add rules.mk check

* Fix variable names for global config

* Add in_layout priority

* Remove default fallback in favor of throw, update docs

* Add keymap folder context

* Fix formatting

* Add os import

* Convert to create_make_command

* Fix Travis lint errors

* Remove blank line with whitespace

* Add blank lines for readability

* Remove unnecessary config logic

* Update Docs to add flash

Co-Authored-By: skullydazed <skullydazed@users.noreply.github.com>

* Shift config precedence to MILC

Co-authored-by: skullydazed <skullydazed@users.noreply.github.com>
2020-02-07 21:48:37 +01:00
..
ChangeLog consistency 2019-08-30 15:01:52 -07:00
de Add language prefixes to docs sidebar entries and readmes (#7406) 2019-11-26 18:22:13 +11:00
es Add language prefixes to docs sidebar entries and readmes (#7406) 2019-11-26 18:22:13 +11:00
fr-fr [Docs] fix docs (#7642) 2019-12-21 11:00:22 +00:00
gitbook/images
he-il Move Space Cadet keycodes to their own section in keycode reference (#7889) 2020-01-14 14:02:13 +00:00
ja [Docs] Update Japanese translation (#8015) 2020-01-27 17:18:12 -08:00
pt-br [Docs] add README translation in portuguese (#7016) 2019-12-10 10:19:12 -08:00
ru-ru [Docs] fix docs (#7642) 2019-12-21 11:00:22 +00:00
zh-cn Fix file encoding for zh-cn/custom_quantum_functions.md (#7665) 2019-12-27 03:31:48 +00:00
.nojekyll
CNAME
README.md [Docs] Encourage newbs to not download the repo as a zip (#7353) 2019-11-14 11:37:18 -08:00
_langs.md [Docs] add README translation in portuguese (#7016) 2019-12-10 10:19:12 -08:00
_summary.md change Instructions listing in Docs summary 2020-01-25 18:15:07 -08:00
adc_driver.md Improve support and docs for ADC driver (#7191) 2019-12-08 12:11:29 +11:00
arm_debugging.md [Docs] fix docs (#7642) 2019-12-21 11:00:22 +00:00
becoming_a_qmk_collaborator.md
breaking_changes.md [Docs] future branch housekeeping 2020-02-01 21:36:59 -08:00
breaking_changes_instructions.md suggestions by skullydazed 2020-01-25 18:15:07 -08:00
cli.md Add QMK Compile Context Sensitivity (#6884) 2020-02-07 21:48:37 +01:00
cli_configuration.md Configuration system for CLI (#6708) 2019-09-22 13:25:33 -07:00
cli_development.md Add flake8 to our test suite and fix all errors (#7379) 2019-11-20 14:54:18 -08:00
coding_conventions_c.md Minor grammar and filename fixes in docs (#7559) 2019-12-07 23:19:18 +11:00
coding_conventions_python.md Add a note explaining how to run tests 2020-01-14 07:52:14 -08:00
compatible_microcontrollers.md [Doc] Tidy up compatible MCUs docs (#7295) 2019-11-08 18:34:25 -08:00
config_options.md Reduce SPLIT_USB_TIMEOUT by 500ms (#7637) 2020-02-04 19:37:04 -08:00
contributing.md Improve docs "Edit Document" footer 2019-12-18 14:01:13 +11:00
custom_matrix.md Add docs for 'CUSTOM_MATRIX = lite' (#7906) 2020-01-18 12:56:33 +11:00
custom_quantum_functions.md Add per-key IGNORE_MOD_TAP_INTERRUPT feature (#7838) 2020-01-10 02:48:06 -05:00
documentation_best_practices.md
documentation_templates.md Doc fix to conform with #7221 (#7392) 2019-11-17 16:04:44 +00:00
driver_installation_zadig.md Add a short explanation to Zadig the troubleshooting section (#7110) 2019-10-22 14:05:33 +11:00
eeprom_driver.md Add customisable EEPROM driver selection (#7274) 2020-01-24 12:45:58 +11:00
faq.md
faq_build.md [Docs] Update macOS related issues in docs (#7744) 2019-12-31 14:33:54 +00:00
faq_debug.md [Docs] Remove some outdated FAQ items (#7607) 2019-12-11 11:33:09 -08:00
faq_general.md Remove unanswered/unnecessary FAQ item 2019-10-07 15:43:42 -07:00
faq_keymap.md [Docs] Remove some outdated FAQ items (#7607) 2019-12-11 11:33:09 -08:00
feature_advanced_keycodes.md Implement and document TAPPING_FORCE_HOLD_PER_KEY (#7859) 2020-01-17 15:49:23 -05:00
feature_audio.md Added keycodes for swapping and unswapping the Control and OS keys (#6110) 2019-08-21 17:07:08 -07:00
feature_auto_shift.md Smallish overhaul of Auto-Shift feature (#6067) 2019-11-03 09:52:01 -08:00
feature_backlight.md Convert backlight to follow driver rules pattern - update docs 2019-12-14 03:25:06 +00:00
feature_bluetooth.md Update feature_bluetooth.md (#7193) 2019-10-30 09:43:01 +11:00
feature_bootmagic.md Add short aliases for Magic keycodes (#7541) 2019-12-05 00:44:39 -08:00
feature_combo.md Change "yu" to "you" in combo docs (#6510) 2019-08-08 18:10:16 +01:00
feature_command.md
feature_debounce_type.md Update debounce docs (#7355) 2019-11-14 18:54:34 +00:00
feature_dip_switch.md Add Dip Switch as a core feature (#6140) 2019-09-03 08:34:31 -07:00
feature_dynamic_macros.md [Core] Convert Dynamic Macro to a Core Feature (#5948) 2019-11-04 22:59:13 -08:00
feature_encoders.md Add support for different encoder pinout for right half of split keyboard (#6521) 2019-08-16 16:46:41 -07:00
feature_grave_esc.md
feature_haptic_feedback.md Minor grammar and filename fixes in docs (#7559) 2019-12-07 23:19:18 +11:00
feature_hd44780.md Remove build option firmware size impacts (#6947) 2019-10-18 18:14:49 -07:00
feature_key_lock.md update one shot keys link (#7020) 2019-10-14 01:26:03 +01:00
feature_layouts.md
feature_leader_key.md Send string keycode tweaks (#7471) 2019-11-25 23:16:58 -08:00
feature_led_matrix.md
feature_macros.md Send string keycode tweaks (#7471) 2019-11-25 23:16:58 -08:00
feature_mouse_keys.md
feature_oled_driver.md [Docs] Misc cleanups for OLED documentation (#7864) 2020-01-19 14:05:54 -08:00
feature_pointing_device.md
feature_ps2_mouse.md [Docs] Removed dead link (#6922) 2019-10-06 07:56:35 -07:00
feature_rgb_matrix.md Configuration values for starting HSV and speed (#7740) 2020-01-18 20:11:33 +00:00
feature_rgblight.md Add shift-to-invert to remaining directional RGB_* keycode pairs (#7484) 2019-11-28 22:00:29 +00:00
feature_space_cadet.md
feature_split_keyboard.md Reduce SPLIT_USB_TIMEOUT by 500ms (#7637) 2020-02-04 19:37:04 -08:00
feature_stenography.md
feature_swap_hands.md
feature_tap_dance.md [Docs] Explain Tap Dance interruption (#5520) 2019-11-16 09:20:49 -08:00
feature_terminal.md Remove build option firmware size impacts (#6947) 2019-10-18 18:14:49 -07:00
feature_thermal_printer.md
feature_unicode.md
feature_userspace.md Send string keycode tweaks (#7471) 2019-11-25 23:16:58 -08:00
feature_velocikey.md
features.md Add Dip Switch as a core feature (#6140) 2019-09-03 08:34:31 -07:00
flashing.md [Docs] Update flashing information to include :flash target (#6999) 2019-10-29 13:15:03 -07:00
flashing_bootloadhid.md Install bootloadHid as part of qmk_install (#7463) 2019-11-28 15:29:11 +00:00
fuse.txt
getting_started_build_tools.md Fix docker script and document (#7786) 2020-01-10 00:44:16 +00:00
getting_started_getting_help.md
getting_started_github.md [Docs] fix docs (#7642) 2019-12-21 11:00:22 +00:00
getting_started_introduction.md [Docs] update git command and directory name of documents (#7619) 2019-12-12 20:59:00 -08:00
getting_started_make_guide.md Add docs for 'CUSTOM_MATRIX = lite' (#7906) 2020-01-18 12:56:33 +11:00
getting_started_vagrant.md [Docs] Update getting_started_vagrant.md (#7203) 2019-10-30 11:53:48 -07:00
hand_wire.md [Docs] Fixed internal links on Handwire page (#7154) 2019-10-25 18:16:17 -07:00
hardware.md
hardware_avr.md Remove apostrophe from various abbreviations' plural forms (#7050) 2019-10-22 13:47:43 +01:00
hardware_drivers.md Add customisable EEPROM driver selection (#7274) 2020-01-24 12:45:58 +11:00
hardware_keyboard_guidelines.md Fixed typos in documentation (#6871) 2019-10-02 16:41:32 -04:00
how_keyboards_work.md Update URL for `60-keyboard.hwdb` (#7185) 2019-10-28 02:41:22 +00:00
i2c_driver.md [Docs] Update i2c_driver.md (#6665) 2019-09-03 10:09:58 -07:00
index.html Improve docs "Edit Document" footer 2019-12-18 14:01:13 +11:00
internals_defines.md
internals_gpio_control.md [Docs] Add AVR and ARM examples to GPIO Commands (#6942) 2019-10-07 19:08:14 -07:00
internals_input_callback_reg.md
internals_midi_device.md
internals_midi_device_setup_process.md
internals_midi_util.md
internals_send_functions.md
internals_sysex_tools.md
isp_flashing_guide.md
keycodes.md Move Grave Escape, Lock and Leader keycodes into their own sect… (#8093) 2020-02-07 15:54:14 +11:00
keycodes_basic.md Remove obsolete note about media keys in MacOS (#6631) 2019-10-30 10:39:38 +11:00
keycodes_us_ansi_shifted.md Backslash-escape pipe character in keycode lists (#7157) 2019-10-26 06:10:03 +01:00
keymap.md
newbs.md Change newbs.md to link to the new newbs_git_best_practices.md instead of newbs_best_practices.md. (#7633) 2019-12-14 18:16:31 +00:00
newbs_building_firmware.md Fixed a small typo (#7743) 2020-01-03 08:06:46 +11:00
newbs_building_firmware_configurator.md Update YouTube URL 2019-07-29 10:12:22 -07:00
newbs_flashing.md [Docs] Update flashing information to include :flash target (#6999) 2019-10-29 13:15:03 -07:00
newbs_getting_started.md
newbs_git_best_practices.md [Docs] Restructure of Git Best Practices doc (#7231) 2019-12-02 18:47:02 -08:00
newbs_git_resolving_merge_conflicts.md [Docs] Restructure of Git Best Practices doc (#7231) 2019-12-02 18:47:02 -08:00
newbs_git_resynchronize_a_branch.md [Docs] Fix minor differences in docs/newbs_git_resynchronize_a_branch.md (#7728) 2019-12-27 14:31:23 -08:00
newbs_git_using_your_master_branch.md [Docs] Restructure of Git Best Practices doc (#7231) 2019-12-02 18:47:02 -08:00
newbs_learn_more_resources.md
newbs_testing_debugging.md [Docs] Replace Switch Hitter link with Wayback Machine link (#7009) 2019-10-15 23:21:05 +01:00
other_eclipse.md
other_vscode.md
porting_your_keyboard_to_qmk_(arm_and_other_chibios_cpus).md Improve backlight PWM pin support (#6202) 2019-08-08 13:12:12 -07:00
power.txt
proton_c_conversion.md Update feature support for Proton C (#7596) 2019-12-10 18:31:39 -05:00
qmk.css
quantum_keycodes.md Move Grave Escape, Lock and Leader keycodes into their own sect… (#8093) 2020-02-07 15:54:14 +11:00
redirects.json Configuration system for CLI (#6708) 2019-09-22 13:25:33 -07:00
ref_functions.md Additional changes for Layer State typedef compatibility (#5906) 2019-08-21 17:07:49 -07:00
reference_configurator_support.md
reference_glossary.md Remove apostrophe from various abbreviations' plural forms (#7050) 2019-10-22 13:47:43 +01:00
reference_info_json.md
sidebar.css
support.md
sw.js
translating.md Add yet another dictionary for the QMK Firmware docs sidebar heading (#7504) 2019-11-28 22:14:04 +00:00
understanding_qmk.md Remove apostrophe from various abbreviations' plural forms (#7050) 2019-10-22 13:47:43 +01:00
unit_testing.md
usb_nkro.txt
ws2812_driver.md SPI DMA based RGB Underglow for STM32 (#7674) 2019-12-31 17:26:40 +00:00

README.md

Quantum Mechanical Keyboard Firmware

Current Version Build Status Discord Docs Status GitHub contributors GitHub forks

What is QMK Firmware?

QMK (Quantum Mechanical Keyboard) is an open source community that maintains QMK Firmware, QMK Toolbox, qmk.fm, and these docs. QMK Firmware is a keyboard firmware based on the tmk_keyboard with some useful features for Atmel AVR controllers, and more specifically, the OLKB product line, the ErgoDox EZ keyboard, and the Clueboard product line. It has also been ported to ARM chips using ChibiOS. You can use it to power your own hand-wired or custom keyboard PCB.

How to Get It

If you plan on contributing a keymap, keyboard, or features to QMK, the easiest thing to do is fork the repo through Github, and clone your repo locally to make your changes, push them, then open a Pull Request from your fork.

Otherwise, you can clone it directly with git clone https://github.com/qmk/qmk_firmware. Do not download the zip or tar files; a git repository is required to download the submodules in order to compile.

How to Compile

Before you are able to compile, you'll need to install an environment for AVR or/and ARM development. Once that is complete, you'll use the make command to build a keyboard and keymap with the following notation:

make planck/rev4:default

This would build the rev4 revision of the planck with the default keymap. Not all keyboards have revisions (also called subprojects or folders), in which case, it can be omitted:

make preonic:default

How to Customize

QMK has lots of features to explore, and a good deal of reference documentation to dig through. Most features are taken advantage of by modifying your keymap, and changing the keycodes.