c0baf2a964
Some values that can never, ever, change were held in local variables, rather than in PROGMEM. Fixed. Change "pressed" to a signed int so the test for < 0 makes sense, and to avoid possible weird failure modes in the case where a key release comes in when pressed is already zero. (Shouldn't happen, sure, but computers are weird.) A lot of things in process_steno had external linkage for no particular reason. They've been marked static. Stuff still builds. Distinguish between currently-held keys and keys that have been held, and expose these values through a nicely-named API so other code could, say, check on the current set of steno chording in order to make displays. Also in passing fix up the "state" value having external linkage so it could clash with other people's variable declarations. The API also provides hooks for key processing and steno chord events, so you can monitor those events without having to run in matrix_scan_user and recheck the values directly. Also document these. There is no path through processing a key that doesn't end with a return false, so the nested return foo() are gone and we just return false. |
7 years ago | |
---|---|---|
.. | ||
gitbook/images | 7 years ago | |
README.md | 7 years ago | |
_summary.md | 7 years ago | |
becoming_a_qmk_collaborator.md | 7 years ago | |
compatible_microcontrollers.md | 7 years ago | |
config_options.md | 7 years ago | |
contributing.md | 7 years ago | |
custom_quantum_functions.md | 7 years ago | |
documentation_best_practices.md | 7 years ago | |
documentation_templates.md | 7 years ago | |
eclipse.md | 7 years ago | |
faq.md | 7 years ago | |
faq_build.md | 7 years ago | |
faq_debug.md | 7 years ago | |
faq_general.md | 7 years ago | |
faq_keymap.md | 7 years ago | |
feature_advanced_keycodes.md | 7 years ago | |
feature_audio.md | 7 years ago | |
feature_auto_shift.md | 7 years ago | |
feature_backlight.md | 7 years ago | |
feature_bluetooth.md | 7 years ago | |
feature_bootmagic.md | 7 years ago | |
feature_command.md | 7 years ago | |
feature_dynamic_macros.md | 7 years ago | |
feature_grave_esc.md | 7 years ago | |
feature_key_lock.md | 7 years ago | |
feature_layouts.md | 7 years ago | |
feature_leader_key.md | 7 years ago | |
feature_macros.md | 7 years ago | |
feature_mouse_keys.md | 7 years ago | |
feature_pointing_device.md | 7 years ago | |
feature_ps2_mouse.md | 7 years ago | |
feature_rgblight.md | 7 years ago | |
feature_space_cadet.md | 7 years ago | |
feature_space_shift_cadet.md | 7 years ago | |
feature_stenography.md | 7 years ago | |
feature_swap_hands.md | 7 years ago | |
feature_tap_dance.md | 7 years ago | |
feature_terminal.md | 7 years ago | |
feature_thermal_printer.md | 7 years ago | |
feature_unicode.md | 7 years ago | |
feature_userspace.md | 7 years ago | |
features.md | 7 years ago | |
flashing.md | 7 years ago | |
fuse.txt | 8 years ago | |
getting_started_build_tools.md | 7 years ago | |
getting_started_getting_help.md | 7 years ago | |
getting_started_github.md | 7 years ago | |
getting_started_introduction.md | 7 years ago | |
getting_started_make_guide.md | 7 years ago | |
getting_started_vagrant.md | 7 years ago | |
hand_wire.md | 7 years ago | |
hardware.md | 7 years ago | |
hardware_avr.md | 7 years ago | |
hardware_drivers.md | 7 years ago | |
hardware_keyboard_guidelines.md | 7 years ago | |
how_keyboards_work.md | 7 years ago | |
internals_defines.md | 7 years ago | |
internals_input_callback_reg.md | 7 years ago | |
internals_midi_device.md | 7 years ago | |
internals_midi_device_setup_process.md | 7 years ago | |
internals_midi_util.md | 7 years ago | |
internals_send_functions.md | 7 years ago | |
internals_sysex_tools.md | 7 years ago | |
isp_flashing_guide.md | 7 years ago | |
keycode.txt | 7 years ago | |
keycodes.md | 7 years ago | |
keycodes_basic.md | 7 years ago | |
keycodes_us_ansi_shifted.md | 7 years ago | |
keymap.md | 7 years ago | |
newbs.md | 7 years ago | |
newbs_building_firmware.md | 7 years ago | |
newbs_flashing.md | 7 years ago | |
newbs_getting_started.md | 7 years ago | |
newbs_testing_debugging.md | 7 years ago | |
porting_your_keyboard_to_qmk_(arm_and_other_chibios_cpus).md | 7 years ago | |
power.txt | 7 years ago | |
quantum_keycodes.md | 7 years ago | |
redirects.json | 7 years ago | |
reference_glossary.md | 7 years ago | |
understanding_qmk.md | 7 years ago | |
unit_testing.md | 7 years ago | |
usb_nkro.txt | 8 years ago |
README.md
Quantum Mechanical Keyboard Firmware
What is QMK Firmware?
QMK (Quantum Mechanical Keyboard) is an open source community that maintains QMK Firmware, QMK Flasher, 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 either download it directly (zip, tar), or clone it via git (git@github.com:qmk/qmk_firmware.git
), or https (https://github.com/qmk/qmk_firmware.git
).
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.