aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2017-05-27 18:09:52 -0400
committerJack Humbert <jack.humb@gmail.com>2017-05-27 18:09:52 -0400
commit704794bae3bf96541b0362ea38b84706d5ee6958 (patch)
tree866be7a6a63cb8e5f6f7c236303a796239ed9eae
parentd24da945d1dbfbe81177dd6611b0d5a27ab8344f (diff)
parente229dcadb5c9f8c09f14a439fe5a4c7c48ba2249 (diff)
downloadqmk_firmware-704794bae3bf96541b0362ea38b84706d5ee6958.tar.gz
qmk_firmware-704794bae3bf96541b0362ea38b84706d5ee6958.zip
subtree docs
-rw-r--r--docs/Adding-features-to-QMK.md7
-rw-r--r--docs/Becoming-a-QMK-Collaborator.md7
-rw-r--r--docs/Build-Environment-Setup.md112
-rw-r--r--docs/Compatible-Microcontrollers.md25
-rw-r--r--docs/Custom-Quantum-Functions.md123
-rw-r--r--docs/Differences-from-TMK.md8
-rw-r--r--docs/Eclipse.md84
-rw-r--r--docs/Embedding.md64
-rw-r--r--docs/FAQ-Build.md151
-rw-r--r--docs/FAQ-Keymap.md248
-rw-r--r--docs/FAQ.md238
-rw-r--r--docs/Git-subtree.md7
-rw-r--r--docs/HHKB-Alt-controller.md5
-rw-r--r--docs/Home.md183
-rw-r--r--docs/Key-Functions.md94
-rw-r--r--docs/Keycodes.md228
-rw-r--r--docs/Keymap-examples.md37
-rw-r--r--docs/Keymap.md222
-rw-r--r--docs/Kiibohd.asciidoc29
-rw-r--r--docs/Leader-Key.md37
-rw-r--r--docs/License-Clarification-Details.md1272
-rw-r--r--docs/License-Clarification.md38
-rw-r--r--docs/Macros.md197
-rw-r--r--docs/Make-Instructions.md167
-rw-r--r--docs/Memory-write-error,-use-debug-for-more-info.md21
-rw-r--r--docs/Modding-your-keyboard.md379
-rw-r--r--docs/Mouse-keys.md17
-rw-r--r--docs/Other-Projects.md62
-rw-r--r--docs/Porting-Your-Keyboard-to-QMK-(ARM-and-other-ChibiOS-CPUs).md70
-rw-r--r--docs/Porting-your-keyboard-to-QMK.md59
-rw-r--r--docs/Previously-Asked-Questions.asciidoc14
-rw-r--r--docs/QMK-Overview.md75
-rw-r--r--docs/Report-Descriptor.md1
-rw-r--r--docs/SUMMARY.md26
-rw-r--r--docs/Space-Cadet-Shift.md24
-rw-r--r--docs/TMK-Based-Projects.md34
-rw-r--r--docs/TMK-Own-Projects.md69
-rw-r--r--docs/Tap-Dance.md144
-rw-r--r--docs/Test-for-ASCIIDOC.asciidoc17
-rw-r--r--docs/USB-HID.md11
-rw-r--r--docs/Unicode-and-additional-language-support.md54
-rw-r--r--docs/Unit-testing.md68
-rw-r--r--docs/_Sidebar.md21
-rw-r--r--docs/book.json22
-rw-r--r--docs/gitbook/images/favicon.icobin0 -> 117248 bytes
-rw-r--r--docs/gitbook/images/favicon.pngbin0 -> 242 bytes
-rw-r--r--docs/mbed-cortex-porting.md36
47 files changed, 4807 insertions, 0 deletions
diff --git a/docs/Adding-features-to-QMK.md b/docs/Adding-features-to-QMK.md
new file mode 100644
index 000000000..f6f7cba20
--- /dev/null
+++ b/docs/Adding-features-to-QMK.md
@@ -0,0 +1,7 @@
1If you have an idea for a custom feature or extra hardware connection, we'd love to accept it into QMK! These are generally done via [pull request](https://github.com/qmk/qmk_firmware/pulls) after forking, and here are some things to keep in mind when creating one:
2
3* **Disable by default** - memory is a pretty limited on most chips QMK supports, and it's important that current keymaps aren't broken, so please allow your feature to be turned **on**, rather than being turned off. If you think it should be on by default, or reduces the size of the code, [open an issue](https://github.com/qmk/qmk_firmware/issues) for everyone to discuss it!
4* **Compile locally before submitting** - hopefully this one is obvious, but things need to compile! Our Travis system will catch any issues, but it's generally faster for you to compile a few keyboards locally instead of waiting for the results to come back.
5* **Consider subprojects and different chip-bases** - there are several keyboards that have subprojects that have allow for slightly different configurations, and even different chip-bases. Try to make a feature supported in ARM and AVR, or automatically disabled in one that doesn't work.
6* **Explain your feature** - submitting a markdown write-up of what your feature does with your PR may be needed, and it will allow a collaborator to easily copy it into the wiki for documentation (after proofing and editing).
7* **Don't refactor code** - to maintain a clear vision of how things are laid out in QMK, we try to plan out refactors in-depth, and have a collaborator make the changes. If you have an idea for refactoring, or suggestions, [open an issue](https://github.com/qmk/qmk_firmware/issues). \ No newline at end of file
diff --git a/docs/Becoming-a-QMK-Collaborator.md b/docs/Becoming-a-QMK-Collaborator.md
new file mode 100644
index 000000000..1427675fd
--- /dev/null
+++ b/docs/Becoming-a-QMK-Collaborator.md
@@ -0,0 +1,7 @@
1A QMK collaborator is a keyboard maker/designer that is interested in helping QMK grow and fully support their keyboard(s), and encouraging their users/customers to submit features, ideas, and keymaps. We're always looking to add more keyboards and collaborators, but we ask that they fulfill these requirements:
2
3* **Have a PCB available for sale** - unfortunately there's just too much variation and complications with handwired keyboards.
4* **Maintain the your keyboard's directory** - this may just require an initial setup to get your keyboard working, but it could also include accommodating changes made to QMK's core.
5* **Approve and merge your keyboard's keymap pull requests** - we like to encourage users to contribute their keymaps for others to see and work from when creating their own.
6
7If you feel you meet these requirements, shoot us an email at hello@qmk.fm with an introduction and some links to your keyboard! \ No newline at end of file
diff --git a/docs/Build-Environment-Setup.md b/docs/Build-Environment-Setup.md
new file mode 100644
index 000000000..35e02924b
--- /dev/null
+++ b/docs/Build-Environment-Setup.md
@@ -0,0 +1,112 @@
1### Windows 10
2
3Due to some issues with the "Windows (Vista and later)" instructions below, we now recommend following these instructions if you use Windows, which will allow you to use the Windows Subsystem for Linux to compile the firmware. If you are not using Windows 10 with the Anniversary Update installed (which came out in July 2016), you will need to use one of the other methods, such as Docker, Vagrant, or the instructions for Vista and later.
4
5If you use this method, you will need to use a standalone tool to flash the firmware to the keyboard after you compile it. We recommend the official [QMK Firmware Flasher](https://github.com/qmk/qmk_firmware_flasher/releases). This is because the Windows 10 Subsystem for Linux lacks [libUSB support](https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/suggestions/13355724-unable-to-access-usb-devices-from-bash), so it can't access the keyboard's microcontroller. Please add your vote for Microsoft to fix this issue using the link!
6
7Here are the steps
8
91. Install the Windows 10 subsystem for Linux, following [these instructions](http://www.howtogeek.com/249966/how-to-install-and-use-the-linux-bash-shell-on-windows-10/).
102. If you have cloned the repository using git before August 20, 2016, clean up the line endings from wherever you currently access git:
11 1. Make sure that you have no changes you haven't committed by running `git status`. ANY UNCOMMITTED CHANGES WILL BE PERMANENTLY LOST.
12 2. Run `git rm --cached -r .`
13 3. Run `git reset --hard`
143. Open "Bash On Ubuntu On Windows" from the start menu
154. With the bash window open, navigate to your copy of the [qmk_firmware repository](https://github.com/qmk/qmk_firmware) using the `cd` command. The harddisks can be accessed from `/mnt/<driveletter>`. For example, your main hard drive (C:) can be accessed by executing the command `cd /mnt/c`. If your username is John and the qmk_firmware folder is in your Downloads folder, you can move to it with the command `cd /mnt/c/Users/John/Downloads/qmk_firmware`. You can use the Tab key as you go to help you autocomplete the folder names.
165. Run `sudo util/install_dependencies.sh`. **This will run `apt-get upgrade`.**
176. After a while the installation will finish, and you are good to go
18
19**Note** From time to time, the dependencies might change, so just run `install_dependencies.sh` again if things are not working.
20
21**Warning:** If you edit Makefiles or shell scripts, make sure you are using an editor that saves the files with Unix line endings. Otherwise the compilation might not work.
22
23
24### Windows (Vista and later)
251. If you have ever installed WinAVR, uninstall it.
262. Install [MHV AVR Tools](https://infernoembedded.com/sites/default/files/project/MHV_AVR_Tools_20131101.exe). Disable smatch, but **be sure to leave the option to add the tools to the PATH checked**.
273. If you are going to flash Infinity based keyboards you will need to install dfu-util, refer to the instructions by [Input Club](https://github.com/kiibohd/controller/wiki/Loading-DFU-Firmware).
284. Install [MinGW](https://sourceforge.net/projects/mingw/files/Installer/mingw-get-setup.exe/download). During installation, uncheck the option to install a graphical user interface. **DO NOT change the default installation folder.** The scripts depend on the default location.
295. Clone this repository. [This link will download it as a zip file, which you'll need to extract.](https://github.com/qmk/qmk_firmware/archive/master.zip) Open the extracted folder in Windows Explorer.
306. Open the `\util` folder.
317. Double-click on the `1-setup-path-win` batch script to run it. You'll need to accept a User Account Control prompt. Press the spacebar to dismiss the success message in the command prompt that pops up.
328. Right-click on the `2-setup-environment-win` batch script, select "Run as administrator", and accept the User Account Control prompt. This part may take a couple of minutes, and you'll need to approve a driver installation, but once it finishes, your environment is complete!
33
34If you have trouble and want to ask for help, it is useful to generate a *Win_Check_Output.txt* file by running `Win_Check.bat` in the `\util` folder.
35
36### Mac
37If you're using [homebrew,](http://brew.sh/) you can use the following commands:
38
39 brew tap osx-cross/avr
40 brew install avr-libc
41 brew install dfu-programmer
42
43This is the recommended method. If you don't have homebrew, [install it!](http://brew.sh/) It's very much worth it for anyone who works in the command line. Note that the `make` and `make install` portion during the homebrew installation of avr-libc can take over 20 minutes and exhibit high CPU usage.
44
45You can also try these instructions:
46
471. Install Xcode from the App Store.
482. Install the Command Line Tools from `Xcode->Preferences->Downloads`.
493. Install [DFU-Programmer](https://dfu-programmer.github.io/).
50
51If you are going to flash Infinity based keyboards you will also need dfu-util
52
53 brew install dfu-util
54
55### Linux
56
57To ensure you are always up to date, you can just run `sudo util/install_dependencies.sh`. That should always install all the dependencies needed. **This will run `apt-get upgrade`.**
58
59You can also install things manually, but this documentation might not be always up to date with all requirements.
60
61The current requirements are the following, but not all might be needed depending on what you do. Also note that some systems might not have all the dependencies available as packages, or they might be named differently.
62
63```
64build-essential
65gcc
66unzip
67wget
68zip
69gcc-avr
70binutils-avr
71avr-libc
72dfu-programmer
73dfu-util
74gcc-arm-none-eabi
75binutils-arm-none-eabi
76libnewlib-arm-none-eabi
77git
78```
79
80Install the dependencies with your favorite package manager.
81
82Debian/Ubuntu example:
83
84 sudo apt-get update
85 sudo apt-get install gcc unzip wget zip gcc-avr binutils-avr avr-libc dfu-programmer dfu-util gcc-arm-none-eabi binutils-arm-none-eabi libnewlib-arm-none-eabi
86
87### Docker
88
89If this is a bit complex for you, Docker might be the turn-key solution you need. After installing [Docker](https://www.docker.com/products/docker), run the following command at the root of the QMK folder to build a keyboard/keymap:
90
91```bash
92# You'll run this every time you want to build a keymap
93# modify the keymap and keyboard assigment to compile what you want
94# defaults are ergodox/default
95
96docker run -e keymap=gwen -e subproject=ez -e keyboard=ergodox --rm -v $('pwd'):/qmk:rw edasque/qmk_firmware
97
98# On windows docker seems to have issue with VOLUME tag in Dockerfile, and $('pwd') won't print a windows compliant path, use full path instead like this
99docker run -e keymap=default -e subproject=ez -e keyboard=ergobox --rm -v D:/Users/Sacapuces/Documents/Repositories/qmk:/qmk:rw edasque/qmk_firmware
100
101```
102
103This will compile the targeted keyboard/keymap and leave it in your QMK directory for you to flash.
104
105### Vagrant
106If you have any problems building the firmware, you can try using a tool called Vagrant. It will set up a virtual computer with a known configuration that's ready-to-go for firmware building. OLKB does NOT host the files for this virtual computer. Details on how to set up Vagrant are in the [VAGRANT_GUIDE file](https://github.com/qmk/qmk_firmware/blob/master/doc/VAGRANT_GUIDE.md).
107
108## Verify Your Installation
1091. If you haven't already, obtain this repository ([https://github.com/qmk/qmk_firmware](https://github.com/qmk/qmk_firmware)). You can either download it as a zip file and extract it, or clone it using the command line tool git or the Github Desktop application.
1102. Open up a terminal or command prompt and navigate to the `qmk_firmware` folder using the `cd` command. The command prompt will typically open to your home directory. If, for example, you cloned the repository to your Documents folder, then you would type `cd Documents/qmk_firmware`. If you extracted the file from a zip, then it may be named `qmk_firmware-master` instead.
1113. To confirm that you're in the correct location, you can display the contents of your current folder using the `dir` command on Windows, or the `ls` command on Linux or Mac. You should see several files, including `readme.md` and a `quantum` folder. From here, you need to navigate to the appropriate folder under `keyboards/`. For example, if you're building for a Planck, run `cd keyboards/planck`.
1124. Once you're in the correct keyboard-specific folder, run the `make` command. This should output a lot of information about the build process. More information about the `make` command can be found below. \ No newline at end of file
diff --git a/docs/Compatible-Microcontrollers.md b/docs/Compatible-Microcontrollers.md
new file mode 100644
index 000000000..20ba620f6
--- /dev/null
+++ b/docs/Compatible-Microcontrollers.md
@@ -0,0 +1,25 @@
1# Atmel AVR
2
3QMK should run on any Atmel AVR processor with enough Flash. It has been tested on the following:
4
5* ATmega32U4 ([PJRC Teensy 2.0](http://www.pjrc.com/teensy/))
6* AT90USB1286 ([PJRC Teensy++ 2.0](http://www.pjrc.com/teensy/))
7* AT90USB1287 ([Atmel USBKEY](http://www.atmel.com/tools/AT90USBKEY.aspx))
8* ATmega168P with using [V-USB](http://www.obdev.at/products/vusb/index.html)
9* ATmega328P with using [V-USB](http://www.obdev.at/products/vusb/index.html)
10* ATmega32U2
11* AT90USB1286, 646, 647 should work
12* AT90USB162 testing...
13
14NOTE: To enable full features of firmware you'll need 32KB flash size.
15
16Please add any tested microcontrollers to this list.
17
18# ARM
19
20You can also use any ARM processor that [ChibiOS](http://www.chibios.org) supports. The following processors have been tested:
21
22* [Kinetis MKL26Z64](http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/kinetis-cortex-m-mcus/l-series-ultra-low-power-m0-plus/kinetis-kl2x-48-mhz-usb-ultra-low-power-microcontrollers-mcus-based-on-arm-cortex-m0-plus-core:KL2x)
23* [Kinetis MK20DX128](http://www.nxp.com/assets/documents/data/en/data-sheets/K20P64M50SF0.pdf)
24* [Kinetis MK20DX128](http://www.nxp.com/assets/documents/data/en/data-sheets/K20P64M50SF0.pdf)
25* [Kinetis MK20DX256](http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/kinetis-cortex-m-mcus/k-series-performance-m4/k2x-usb/kinetis-k20-72-mhz-full-speed-usb-mixed-signal-integration-microcontrollers-mcus-based-on-arm-cortex-m4-core:K20_72) \ No newline at end of file
diff --git a/docs/Custom-Quantum-Functions.md b/docs/Custom-Quantum-Functions.md
new file mode 100644
index 000000000..1c4929e5a
--- /dev/null
+++ b/docs/Custom-Quantum-Functions.md
@@ -0,0 +1,123 @@
1A custom keyboard is about more than sending button presses to your computer. QMK has designed hooks to allow you to inject code, override functionality, and otherwise customize how your keyboard responds in different situations.
2
3## A Word on Keyboards vs Keymap
4
5We have structured QMK as a hierarchy:
6
7* Core
8 * Keyboard/Revision (`_kb`)
9 * Keymap (`_user`)
10
11Each of the functions described below can be defined with a `_kb()` suffix or an `_user()` suffix. We intend for you to use the `_kb()` suffix at the Keyboard/Revision level, while the `_user()` suffix should be used at the Keymap level.
12
13When defining functions at the Keyboard/Revision level it is important that your `_kb()` implementation call `_user()` before executing anything else- otherwise the keymap level function will never be called.
14
15## Matrix Initialization Code
16
17* Keyboard/Revision: `void matrix_init_kb(void)`
18* Keymap: `void matrix_init_user(void)`
19
20This function gets called when the matrix is initiated. You should use this function to initialize any custom hardware you may have, such as speakers, LED drivers, or other features which need to be setup after the keyboard powers on.
21
22### Example
23
24```
25void matrix_init_kb(void) {
26 // put your keyboard start-up code here
27 // runs once when the firmware starts up
28 matrix_init_user();
29
30 // JTAG disable for PORT F. write JTD bit twice within four cycles.
31 MCUCR |= (1<<JTD);
32 MCUCR |= (1<<JTD);
33
34 // * Set our LED pins as output
35 DDRB |= (1<<0);
36 DDRB |= (1<<1);
37 DDRB |= (1<<2);
38 DDRB |= (1<<3);
39 DDRB |= (1<<4);
40}
41```
42
43## Matrix Scanning Code
44
45* Keyboard/Revision: `void matrix_scan_kb(void)`
46* Keymap: `void matrix_scan_user(void)`
47
48This function gets called at every matrix scan, which is basically as often as the MCU can handle. Be careful what you put here, as it will get run a lot.
49
50You should use this function if you need custom matrix scanning code. It can also be used for custom status output (such as LED's or a display) or other functionality that you want to trigger regularly even when the user isn't typing.
51
52## Hook Into Key Presses
53
54* Keyboard/Revision: `bool process_record_kb(uint16_t keycode, keyrecord_t *record)`
55* Keymap: `bool process_record_user(uint16_t keycode, keyrecord_t *record)`
56
57This function gets called every time a key is pressed or released. This is particularly useful when defining custom keys or overriding the behavior of existing keys.
58
59The return value is whether or not QMK should continue processing the keycode - returning `false` stops the execution.
60
61The `keycode` variable is whatever is defined in your keymap, eg `MO(1)`, `KC_L`, etc. and can be switch-cased to execute code whenever a particular code is pressed.
62
63The `record` variable contains infomation about the actual press:
64
65```
66keyrecord_t record {
67 keyevent_t event {
68 keypos_t key {
69 uint8_t col
70 uint8_t row
71 }
72 bool pressed
73 uint16_t time
74 }
75}
76```
77
78The conditional `if (record->event.pressed)` can tell if the key is being pressed or released, and you can execute code based on that.
79
80## LED Control
81
82* Keyboard/Revision: `void led_set_kb(uint8_t usb_led)`
83* Keymap: `void led_set_user(uint8_t usb_led)`
84
85This allows you to control the 5 LED's defined as part of the USB Keyboard spec. It will be called when the state of one of those 5 LEDs changes.
86
87* `USB_LED_NUM_LOCK`
88* `USB_LED_CAPS_LOCK`
89* `USB_LED_SCROLL_LOCK`
90* `USB_LED_COMPOSE`
91* `USB_LED_KANA`
92
93### Example:
94
95```
96void led_set_kb(uint8_t usb_led) {
97 if (usb_led & (1<<USB_LED_NUM_LOCK)) {
98 PORTB |= (1<<0);
99 } else {
100 PORTB &= ~(1<<0);
101 }
102 if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
103 PORTB |= (1<<1);
104 } else {
105 PORTB &= ~(1<<1);
106 }
107 if (usb_led & (1<<USB_LED_SCROLL_LOCK)) {
108 PORTB |= (1<<2);
109 } else {
110 PORTB &= ~(1<<2);
111 }
112 if (usb_led & (1<<USB_LED_COMPOSE_LOCK)) {
113 PORTB |= (1<<3);
114 } else {
115 PORTB &= ~(1<<3);
116 }
117 if (usb_led & (1<<USB_LED_KANA_LOCK)) {
118 PORTB |= (1<<4);
119 } else {
120 PORTB &= ~(1<<4);
121 }
122}
123``` \ No newline at end of file
diff --git a/docs/Differences-from-TMK.md b/docs/Differences-from-TMK.md
new file mode 100644
index 000000000..8b4357095
--- /dev/null
+++ b/docs/Differences-from-TMK.md
@@ -0,0 +1,8 @@
1Understanding the essential changes made on the [tmk_keyboard firmware](http://github.com/tmk/tmk_keyboard) should help you understand the QMK Firmware.
2
3| Firmware |TMK |QMK |
4|------------------------------|-----------------------|-------------------------|
5| Maintainer |hasu (@tmk) |Jack Humbert et al. |
6| Build path customization | `TMK_DIR = ...` | `include .../Makefile` |
7| `keymaps` array data | 3D array of `uint8_t` holding **keycode** | 3D array of `uint16_t` holding **keycode** |
8| `fn_actions` array data | 1D array of `uint16_t` holding **action code** | 1D array of `uint16_t` holding **action code** | \ No newline at end of file
diff --git a/docs/Eclipse.md b/docs/Eclipse.md
new file mode 100644
index 000000000..b9aa67637
--- /dev/null
+++ b/docs/Eclipse.md
@@ -0,0 +1,84 @@
1[Eclipse](https://en.wikipedia.org/wiki/Eclipse_(software)) is an open-source [Integrated Development Environment](https://en.wikipedia.org/wiki/Integrated_development_environment) (IDE) widely used for Java development, but with an extensible plugin system that allows to customize it for other languages and usages.
2
3Using an IDE such as Eclipse provides many advantages over a plain text editor, such as:
4* intelligent code completion
5* convenient navigation in the code
6* refactoring tools
7* build automation (no need for the command-line)
8* a GUI for GIT
9* static code analysis
10* many other tools such as debugging, code formatting, showing call hierarchies etc.
11
12The purpose of the is page is to document how to set-up Eclipse for developing AVR software, and working on the QMK code base.
13
14Note that this set-up has been tested on Ubuntu 16.04 only for the moment.
15
16# Prerequisites
17## Build environment
18Before starting, you must have followed the [Getting Started](/Home.md#getting-started) section corresponding to your system. In particular, you must have been able to build the firmware with [the `make` command](../#the-make-command).
19
20## Java
21Eclipse is a Java application, so you will need to install Java 8 or more recent to be able to run it. You may choose between the JRE or the JDK, the latter being useful if you intend to do Java development.
22
23# Install Eclipse and its plugins
24Eclipse comes in [several flavours](http://www.eclipse.org/downloads/eclipse-packages/) depending on the target usage that you will have. There is no package comprising the AVR stack, so we will need to start from Eclipse CDT (C/C++ Development Tooling) and install the necessary plugins.
25
26## Download and install Eclipse CDT
27If you already have Eclipse CDT on your system, you can skip this step. However it is advised to keep it up-to-date for better support.
28
29If you have another Eclipse package installed, it is normally possible to [install the CDT plugin over it](https://eclipse.org/cdt/downloads.php). However it is probably better to reinstall it from scratch to keep it light and avoid the clutter of tools that you don't need for the projects you will be working on.
30
31Installation is very simple: follow the [5 Steps to Install Eclipse](https://eclipse.org/downloads/eclipse-packages/?show_instructions=TRUE), and choose **Eclipse IDE for C/C++ Developers** at Step 3.
32
33Alternatively, you can also directly [download Eclipse IDE for C/C++ Developers](http://www.eclipse.org/downloads/eclipse-packages/) ([direct link to current version](http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers/neonr)) and extract the package to the location of your choice (this creates an `eclipse` folder).
34
35## First Launch
36When installation is complete, click the <kbd>Launch</kbd> button. (If you extracted the package manually, open the Eclipse installation folder and double-click the `eclipse` executable)
37
38When you are prompted with the Workspace Selector, select a directory that will hold Eclipse metadata and usually your projects. **Do not select the `qmk_firmware` directory**, this will be the project directory. Select the parent folder instead, or another (preferably empty) folder of your choice (the default is fine if you do not use it yet).
39
40Once started, click the <kbd>Workbench</kbd> button at the top right to switch to the workbench view (there is a also checkbox at the bottom to skip the welcome screen at startup).
41
42## Install the necessary plugins
43Note: you do not need to restart Eclipse after installing each plugin. Simply restart once all plugins are installed.
44
45### [The AVR plugin](http://avr-eclipse.sourceforge.net/)
46This is the most important plugin as it will allow Eclipse to _understand_ AVR C code. Follow [the instructions for using the update site](http://avr-eclipse.sourceforge.net/wiki/index.php/Plugin_Download#Update_Site), and agree with the security warning for unsigned content.
47
48### [ANSI Escape in Console](https://marketplace.eclipse.org/content/ansi-escape-console)
49This plugin is necessary to properly display the colored build output generated by the QMK makefile.
50
511. Open <kbd><kbd>Help</kbd> > <kbd>Eclipse Marketplace…</kbd></kbd>
522. Search for _ANSI Escape in Console_
533. Click the <samp>Install</samp> button of the plugin
544. Follow the instructions and agree again with the security warning for unsigned content.
55
56Once both plugins are installed, restart Eclipse as prompted.
57
58# Configure Eclipse for QMK
59## Importing the project
601. Click <kbd><kbd>File</kbd> > <kbd>New</kbd> > <kbd>Makefile Project with Existing Code</kbd></kbd>
612. On the next screen:
62 * Select the directory where you cloned the repository as _Existing Code Location_;
63 * (Optional) Give a different name to the project¹, e.g. _QMK_ or _Quantum_;
64 * Select the _AVR-GCC Toolchain_;
65 * Keep the rest as-is and click <kbd>Finish</kbd>
66
67 ![Importing QMK in Eclipse](http://i.imgur.com/oHYR1yW.png)
68
693. The project will now be loaded and indexed. Its files can be browsed easily through the _Project Explorer_ on the left.
70
71¹ There might be issues for importing the project with a custom name. If it does not work properly, try leaving the default project name (i.e. the name of the directory, probably `qmk_firmware`).
72
73## Build your keyboard
74We will now configure a make target that cleans the project and builds the keymap of your choice.
75
761. On the right side of the screen, select the <kbd>Make Target</kbd> tab
772. Expand the folder structure to the keyboard of your choice, e.g. `qmk_firmware/keyboards/ergodox`
783. Right-click on the keyboard folder and select <kbd>New…</kbd> (or select the folder and click the <kbd>New Make Target</kbd> icon above the tree)
794. Choose a name for your build target, e.g. _clean \<your keymap\>_
805. Make Target: this is the arguments that you give to `make` when building from the command line. If your target name does not match these arguments, uncheck <kbd>Same as target name</kbd> and input the correct arguments, e.g. `clean <your keymap>`
816. Leave the other options checked and click <kbd>OK</kbd>. Your make target will now appear under the selected keyboard.
827. (Optional) Toggle the <kbd>Hide Empty Folders</kbd> icon button above the targets tree to only show your build target.
838. Double-click the build target you created to trigger a build.
849. Select the <kbd>Console</kbd> view at the bottom to view the running build. \ No newline at end of file
diff --git a/docs/Embedding.md b/docs/Embedding.md
new file mode 100644
index 000000000..5c2f3b31e
--- /dev/null
+++ b/docs/Embedding.md
@@ -0,0 +1,64 @@
1# WARNING: Until issue [#173](https://github.com/tmk/tmk_keyboard/issues/173) goes through, the [core][1] repository will not be up-to-date with the latest changes and fixes, but can still be used.
2
3If you want to use TMK for your own keyboard project, you've got three options for embedding the [core][1].
4The recommended option is [subtrees](#1-git-subtree).
5
6After adding the embed you'll need to [modify the Makefile](#modifications-to-the-makefile) of your project to point to the core correctly.
7
8## 1. git subtree
9
10In order to set up the subtree in your project, first add the core repository as a remote:
11```
12git remote add -f core https://github.com/tmk/tmk_core
13```
14
15Then add the core as a subtree (directory) in your local repository:
16```
17git subtree add -P tmk_core core master --squash
18```
19
20And that's it!
21
22When you want to update the subtree in your repository to match the master on [tmk_core][1], do this:
23```
24git subtree pull -P tmk_core core master --squash
25```
26
27## 2. git submodule
28
29In order to set up the submodule in your project, first add a new submodule:
30```
31git submodule add https://github.com/tmk/tmk_core tmk_core
32```
33
34Then pull, sync and update the submodule:
35```
36git pull
37git submodule sync --recursive
38git submodule update --init --recursive
39```
40
41And that's it!
42
43When you want to update the subtree in your repository to match the master on [tmk_core][1], follow the same steps as above.
44
45If you want to clone a repository from GitHub that has submodule(s) in it, pass <kbd>--recursive</kbd> when cloning, like so:
46`git clone --recursive https://github.com/<username>/<repository>`
47
48## 3. Manually (without git)
49
50*Note: This is not recommended in any way, but it's still possible.*
51
52Download a zipped version of the [tmk_core][1] repository using this link:
53<https://github.com/tmk/tmk_core/archive/master.zip>
54
55Extract the zip in your project's directory, then rename the folder to <kbd>tmk_core</kbd>.
56
57## Modifications to the *Makefile*
58
59The one thing you have to make sure to change in the *Makefile* (compared to [tmk_keyboard](https://github.com/tmk/tmk_keyboard) drivers' *[Makefile](https://github.com/tmk/tmk_keyboard/blob/master/keyboard/gh60/Makefile#L45)*) is the "TMK_DIR" variable, which needs to point to the embed directory:
60```Makefile
61TMK_DIR = ./tmk_core
62```
63
64[1]: https://github.com/tmk/tmk_core \ No newline at end of file
diff --git a/docs/FAQ-Build.md b/docs/FAQ-Build.md
new file mode 100644
index 000000000..75babb6ba
--- /dev/null
+++ b/docs/FAQ-Build.md
@@ -0,0 +1,151 @@
1## READ FIRST
2- https://github.com/jackhumbert/qmk_firmware/blob/master/doc/BUILD_GUIDE.md
3
4In short,
5
6 $ make [-f Makefile.<variant>] [KEYMAP=...] clean
7 $ make [-f Makefile.<variant>] [KEYMAP=...]
8 $ make [-f Makefile.<variant>] [KEYMAP=...] dfu
9
10
11## Can't program on Linux and Mac
12You will need proper permission to operate a device. For Linux users see udev rules below.
13Easy way is to use `sudo` command, if you are not familiar with this command check its manual with `man sudo` or this page on line.
14
15https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man8/sudo.8.html
16
17In short when your controller is ATMega32u4,
18
19 $ sudo dfu-programmer atmega32u4 erase --force
20 $ sudo dfu-programmer atmega32u4 flash your.hex
21 $ sudo dfu-programmer atmega32u4 reset
22
23or just
24
25 $ sudo make dfu
26
27But to run `make` with root privilege is not good idea. Use former method as possible.
28
29## Do 'make clean' before 'make'
30You'll need `make clean` after you edit **config.h** or change options like `KEYMAP`.
31
32Frist remove all files made in previous build,
33
34 $ make clean
35
36then build new firmware.
37
38 $ make [KEYMAP=...]
39
40Also you can always try `make clean` when you get other strange result during build.
41
42
43## WINAVR is obsolete
44It is no longer recommended and may cause some problem.
45See [Issue #99](https://github.com/tmk/tmk_keyboard/issues/99).
46
47## USB stack: LUFA or PJRC?
48Use **LUFA**.
49
50**PJRC** stack won't be supported actively anymore. There is no reason to hesitate to use LUFA except for binary size(about 1KB lager?). But **PJRC** is still very useful for debug and development purpose.
51See also [Issue #50](https://github.com/tmk/tmk_keyboard/issues/50) and [Issue #58](https://github.com/tmk/tmk_keyboard/issues/58).
52
53## Edit configuration but not change
54You will need followings after editing `CONSOLE_ENABLE`, `NKRO_ENABLE`, `EXTRAKEY_ENABLE` or `MOUSEKEY_ENABLE` option in **Makefile**.
55
56### 1. make clean
57This will be needed when you edit **config.h**.
58
59### 2. Remove Drivers from Device Manager(Windows)
60**Windows only.** Linux, OSX and other OS's doesn't require this. It looks like Windows keeps using driver installed when device was connected first time even after the device changes its configuration. To load proper drivers for new configuration you need to remove existent drivers from **Drvice Manager**.
61
62### 3. Build with different VID:PID
63**Windows only.** If method 2. does't work fou you try this. Change Vendor ID or Product ID in **config.h** and build firmware. Windows should recognize it as whole new device and start drivers install process.
64
65### 4. Just try other ports
66This will be useful and the easiest workaround for **Windows**.
67
68
69
70## USB VID and PID
71You can use any ID you want with editing `config.h`. Using any presumably unused ID will be no problem in fact except for very least chance of collision with other product.
72
73For example TMK uses following numbers by default.
74```
75keyboard:
76hhkb: FEED:CAFE
77gh60: FEED:6060
78
79converter:
80x68k: FEED:6800
81ps2: FEED:6512
82adb: FEED:0ADB
83ibm4704: FEED:4704
84pc98: FEED:9898
85```
86
87Also see this.
88https://github.com/tmk/tmk_keyboard/issues/150
89
90You can buy a really unique VID:PID here. I don't think you need this for personal use.
91- http://www.obdev.at/products/vusb/license.html
92- http://www.mcselec.com/index.php?page=shop.product_details&flypage=shop.flypage&product_id=92&option=com_phpshop&Itemid=1
93
94
95## Linux udev rules
96On Linux you need proper privilege to access device file of MCU, you'll have to use `sudo` when flashing firmware. You can circumvent this with placing these files in `/etc/udev/rules.d/`.
97
98**/etc/udev/rules.d/50-atmel-dfu.rules:**
99```
100# Atmel ATMega32U4
101SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ff4", MODE:="0666"
102# Atmel USBKEY AT90USB1287
103SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ffb", MODE:="0666"
104# Atmel ATMega32U2
105SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ff0", MODE:="0666"
106```
107
108**/etc/udev/rules.d/52-tmk-keyboard.rules:**
109```
110# tmk keyboard products https://github.com/tmk/tmk_keyboard
111SUBSYSTEMS=="usb", ATTRS{idVendor}=="feed", MODE:="0666"
112```
113
114
115
116## Cortex: cstddef: No such file or directory
117GCC 4.8 of Ubuntu 14.04 had this problem and had to update to 4.9 with this PPA.
118https://launchpad.net/~terry.guo/+archive/ubuntu/gcc-arm-embedded
119
120https://github.com/tmk/tmk_keyboard/issues/212
121https://github.com/tmk/tmk_keyboard/wiki/mbed-cortex-porting#compile-error-cstddef
122https://developer.mbed.org/forum/mbed/topic/5205/
123
124
125## 'clock_prescale_set' and 'clock_div_1' not available
126Your toolchain is too old to support the MCU. For example WinAVR 20100110 doesn't support ATMega32u2.
127
128```
129Compiling C: ../../tmk_core/protocol/lufa/lufa.c
130avr-gcc -c -mmcu=atmega32u2 -gdwarf-2 -DF_CPU=16000000UL -DINTERRUPT_CONTROL_ENDPOINT -DBOOTLOADER_SIZE=4096 -DF_USB=16000000UL -DARCH=ARCH_AVR8 -DUSB_DEVICE_ONLY -DUSE_FLASH_DESCRIPTORS -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" -DFIXED_CONTROL_ENDPOINT_SIZE=8 -DFIXED_NUM_CONFIGURATIONS=1 -DPROTOCOL_LUFA -DEXTRAKEY_ENABLE -DCONSOLE_ENABLE -DCOMMAND_ENABLE -DVERSION=unknown -Os -funsigned-char -funsigned-bitfields -ffunction-sections -fdata-sections -fno-inline-small-functions -fpack-struct -fshort-enums -fno-strict-aliasing -Wall -Wstrict-prototypes -Wa,-adhlns=obj_alps64/protocol/lufa/lufa.lst -I. -I../../tmk_core -I../../tmk_core/protocol/lufa -I../../tmk_core/protocol/lufa/LUFA-git -I../../tmk_core/common -std=gnu99 -include config.h -MMD -MP -MF .dep/obj_alps64_protocol_lufa_lufa.o.d ../../tmk_core/protocol/lufa/lufa.c -o obj_alps64/protocol/lufa/lufa.o
131../../tmk_core/protocol/lufa/lufa.c: In function 'setup_mcu':
132../../tmk_core/protocol/lufa/lufa.c:575: warning: implicit declaration of function 'clock_prescale_set'
133../../tmk_core/protocol/lufa/lufa.c:575: error: 'clock_div_1' undeclared (first use in this function)
134../../tmk_core/protocol/lufa/lufa.c:575: error: (Each undeclared identifier is reported only once
135../../tmk_core/protocol/lufa/lufa.c:575: error: for each function it appears in.)
136make: *** [obj_alps64/protocol/lufa/lufa.o] Error 1
137```
138
139
140## BOOTLOADER_SIZE for AVR
141Note that Teensy2.0++ bootloader size is 2048byte. Some Makefiles may have wrong comment.
142
143```
144# Boot Section Size in *bytes*
145# Teensy halfKay 512
146# Teensy++ halfKay 2048
147# Atmel DFU loader 4096 (TMK Alt Controller)
148# LUFA bootloader 4096
149# USBaspLoader 2048
150OPT_DEFS += -DBOOTLOADER_SIZE=2048
151``` \ No newline at end of file
diff --git a/docs/FAQ-Keymap.md b/docs/FAQ-Keymap.md
new file mode 100644
index 000000000..7c73f571f
--- /dev/null
+++ b/docs/FAQ-Keymap.md
@@ -0,0 +1,248 @@
1## READ FIRST
2https://github.com/tmk/tmk_core/blob/master/doc/keymap.md
3
4## How to get keycode
5See [Keycodes](Keycodes). Keycodes are actually defined in [common/keycode.h](https://github.com/qmk/qmk_firmware/blob/master/tmk_core/common/keycode.h).
6
7## Sysrq key
8Use keycode for Print Screen(`KC_PSCREEN` or `KC_PSCR`) instead of `KC_SYSREQ`. Key combination of 'Alt + Print Screen' is recognized as 'System request'.
9
10See [issue #168](https://github.com/tmk/tmk_keyboard/issues/168) and
11- http://en.wikipedia.org/wiki/Magic_SysRq_key
12- http://en.wikipedia.org/wiki/System_request
13
14## Power key doesn't work
15Use `KC_PWR` instead of `KC_POWER` or vice versa.
16- `KC_PWR` works with Windows and Linux, not with OSX.
17- `KC_POWER` works with OSX and Linux, not with Windows.
18
19http://geekhack.org/index.php?topic=14290.msg1327264#msg1327264
20
21## Oneshot modifier
22Solves my personal 'the' problem. I often got 'the' or 'THe' wrongly instead of 'The'. Oneshot Shift mitgates this for me.
23https://github.com/tmk/tmk_keyboard/issues/67
24
25## Modifier/Layer stuck
26Modifier keys or layers can be stuck unless layer switching is configured properly.
27For Modifier keys and layer actions you have to place `KC_TRANS` on same position of destination layer to unregister the modifier key or return to previous layer on release event.
28
29- https://github.com/tmk/tmk_core/blob/master/doc/keymap.md#31-momentary-switching
30- http://geekhack.org/index.php?topic=57008.msg1492604#msg1492604
31- https://github.com/tmk/tmk_keyboard/issues/248
32
33
34## Mechanical Lock Switch Support
35https://github.com/tmk/tmk_keyboard#mechanical-locking-support
36
37This feature is for *mechanical lock switch* like this Alps one.
38http://deskthority.net/wiki/Alps_SKCL_Lock
39
40Using enabling this feature and using keycodes `LCAP`, `LNUM` or `LSCR` in keymap you can use physical locking CapsLock, NumLock or ScrollLock keys as you expected.
41
42Old vintage mechanical keyboards occasionally have lock switches but modern ones don't have. ***You don't need this feature in most case and just use keycodes `CAPS`, `NLCK` and `SLCK`.***
43
44
45## Input special charactors other than ASCII like Cédille 'Ç'
46NO UNIVERSAL METHOD TO INPUT THOSE WORKS OVER ALL SYSTEMS. You have to define **MACRO** in way specific to your OS or layout.
47
48See this post for example **MACRO** code.
49
50http://deskthority.net/workshop-f7/tmk-keyboard-firmware-collection-t4478-120.html#p195620
51
52On **Windows** you can use `AltGr` key or **Alt code**.
53- http://en.wikipedia.org/wiki/AltGr_key
54- http://en.wikipedia.org/wiki/Alt_code
55
56On **Mac** OS defines `Option` key combinations.
57- http://en.wikipedia.org/wiki/Option_key#Alternative_keyboard_input
58
59On **Xorg** you can use `compose` key, instead.
60- http://en.wikipedia.org/wiki/Compose_key
61
62And see this for **Unicode** input.
63- http://en.wikipedia.org/wiki/Unicode_input
64
65
66## Apple/Mac keyboard Fn
67Not supported.
68
69Apple/Mac keyboard sends keycode for Fn unlike most of other keyboards.
70I think you can send Apple Fn key using Apple venter specific Page 0xff01 and usage 0x0003. But you have to change HID Report Descriptor for this, of course.
71
72https://opensource.apple.com/source/IOHIDFamily/IOHIDFamily-606.1.7/IOHIDFamily/AppleHIDUsageTables.h
73
74
75## Media control keys in Mac OSX
76#### KC_MNXT and KC_MPRV does not work on Mac
77Use `KC_MFFD`(`KC_MEDIA_FAST_FORWARD`) and `KC_MRWD`(`KC_MEDIA_REWIND`) instead of `KC_MNXT` and `KC_MPRV`.
78See https://github.com/tmk/tmk_keyboard/issues/195
79
80
81## Keys supported in Mac OSX?
82You can know which keycodes are supported in OSX from this source code.
83
84`usb_2_adb_keymap` array maps Keyboard/Keypad Page usages to ADB scancodes(OSX internal keycodes).
85
86https://opensource.apple.com/source/IOHIDFamily/IOHIDFamily-606.1.7/IOHIDFamily/Cosmo_USB2ADB.c
87
88And `IOHIDConsumer::dispatchConsumerEvent` handles Consumer page usages.
89
90https://opensource.apple.com/source/IOHIDFamily/IOHIDFamily-606.1.7/IOHIDFamily/IOHIDConsumer.cpp
91
92
93## JIS keys in Mac OSX
94Japanese JIS keyboard specific keys like `無変換(Muhenkan)`, `変換(Henkan)`, `ひらがな(hiragana)` are not recognized on OSX. You can use **Seil** to enable those keys, try following options.
95
96* Enable NFER Key on PC keyboard
97* Enable XFER Key on PC keyboard
98* Enable KATAKANA Key on PC keyboard
99
100https://pqrs.org/osx/karabiner/seil.html
101
102
103## RN-42 Bluetooth doesn't work with Karabiner
104Karabiner - Keymapping tool on Mac OSX - ignores inputs from RN-42 module by default. You have to enable this option to make Karabiner working with your keyboard.
105https://github.com/tekezo/Karabiner/issues/403#issuecomment-102559237
106
107See these for the deail of this problem.
108https://github.com/tmk/tmk_keyboard/issues/213
109https://github.com/tekezo/Karabiner/issues/403
110
111
112## Esc and `~ on a key
113
114
115You can define FC660 and Poker style ESC with `ACTION_LAYER_MODS`.
116https://github.com/tmk/tmk_core/blob/master/doc/keymap.md#35-momentary-switching-with-modifiers
117
118```
119#include "keymap_common.h"
120
121
122/* Leopold FC660
123 * https://elitekeyboards.com/products.php?sub=leopold,compact&pid=fc660c
124 * Shift + Esc = ~
125 * Fn + Esc = `
126 *
127 * Votex Poker II
128 * https://adprice.fedorapeople.org/poker2_manual.pdf
129 * Fn + Esc = `
130 * Fn + Shift + Esc = ~
131 */
132const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
133 /* 0: qwerty */
134 [0] = KEYMAP( \
135 ESC, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, NUHS,BSPC, \
136 TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC,BSLS, \
137 LCTL,A, S, D, F, G, H, J, K, L, SCLN,QUOT,ENT, \
138 FN0, NUBS,Z, X, C, V, B, N, M, COMM,DOT, SLSH,RSFT,ESC, \
139 LCTL,LGUI,LALT, SPC, RALT,FN1, RGUI,RCTL),
140 [1] = KEYMAP( \
141 GRV, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
142 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,\
143 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
144 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
145 TRNS,TRNS,TRNS, TRNS, TRNS,TRNS,TRNS,TRNS),
146 [2] = KEYMAP( \
147 GRV, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, TRNS,TRNS, \
148 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,\
149 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
150 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
151 TRNS,TRNS,TRNS, TRNS, TRNS,TRNS,TRNS,TRNS),
152};
153
154const uint16_t PROGMEM fn_actions[] = {
155 // https://github.com/tmk/tmk_core/blob/master/doc/keymap.md#35-momentary-switching-with-modifiers
156 [0] = ACTION_LAYER_MODS(1, MOD_LSFT),
157 [1] = ACTION_LAYER_MOMENTARY(2),
158};
159```
160
161Otherwise, you can write code, see this.
162https://github.com/p3lim/keyboard_firmware/commit/fd799c12b69a5ab5addd1d4c03380a1b8ef8e9dc
163
164
165## 32 Fn keys are not enough?
166### actionmap
167It uses 16 bit codes and has no limitation of 32 Fn at the expense of memory space. TMK keymap is actually is 8 bit codes as subset of the actionmap.
168https://github.com/tmk/tmk_keyboard/issues?utf8=%E2%9C%93&q=is%3Aissue+actionmap
169
170### extension for modified keys
171https://geekhack.org/index.php?topic=41989.msg1885526#msg1885526
172
173
174## Arrow on Right Modifier keys with Dual-Role
175This turns right modifer keys into arrow keys when the keys are tapped while still modifiers when the keys are hold. In TMK the dual-role function is dubbed **TAP**.
176```
177#include "keymap_common.h"
178
179
180/* Arrow keys on right modifier keys with TMK dual role feature
181 *
182 * https://github.com/tmk/tmk_core/blob/master/doc/keymap.md#213-modifier-with-tap-keydual-role
183 * https://en.wikipedia.org/wiki/Modifier_key#Dual-role_keys
184 */
185const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
186 /* 0: qwerty */
187 [0] = KEYMAP( \
188 ESC, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, NUHS,BSPC, \
189 TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC,BSLS, \
190 LCTL,A, S, D, F, G, H, J, K, L, SCLN,QUOT,ENT, \
191 LSFT,NUBS,Z, X, C, V, B, N, M, COMM,DOT, SLSH,FN0, ESC, \
192 FN4, LGUI,LALT, SPC, APP, FN2, FN1, FN3),
193 [1] = KEYMAP( \
194 GRV, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, TRNS,TRNS, \
195 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,\
196 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
197 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,FN5, TRNS, \
198 TRNS,TRNS,TRNS, TRNS, TRNS,FN7, FN6, FN8),
199};
200
201const uint16_t PROGMEM fn_actions[] = {
202 [0] = ACTION_MODS_TAP_KEY(MOD_RSFT, KC_UP),
203 [1] = ACTION_MODS_TAP_KEY(MOD_RGUI, KC_DOWN),
204 [2] = ACTION_MODS_TAP_KEY(MOD_RALT, KC_LEFT),
205 [3] = ACTION_MODS_TAP_KEY(MOD_RCTL, KC_RIGHT),
206 [4] = ACTION_LAYER_MOMENTARY(1),
207 [5] = ACTION_MODS_TAP_KEY(MOD_RSFT, KC_PGUP),
208 [6] = ACTION_MODS_TAP_KEY(MOD_RGUI, KC_PGDN),
209 [7] = ACTION_MODS_TAP_KEY(MOD_RALT, KC_HOME),
210 [8] = ACTION_MODS_TAP_KEY(MOD_RCTL, KC_END),
211};
212
213```
214
215
216Dual-role key: https://en.wikipedia.org/wiki/Modifier_key#Dual-role_keys
217
218
219## Eject on Mac OSX
220`EJCT` keycode works on OSX. https://github.com/tmk/tmk_keyboard/issues/250
221It seems Windows 10 ignores the code and Linux/Xorg recognizes but has no mapping by default.
222
223Not sure what keycode Eject is on genuine Apple keyboard actually. HHKB uses `F20` for Eject key(`Fn+f`) on Mac mode but this is not same as Apple Eject keycode probably.
224
225
226
227## What's weak_mods and real_mods in action_util.c
228___TO BE IMPROVED___
229
230real_mods is intended to retains state of real/physical modifier key state, while
231weak_mods retains state of virtual or temprary modifiers which should not affect state real modifier key.
232
233Let's say you hold down physical left shift key and type ACTION_MODS_KEY(LSHIFT, KC_A),
234
235with weak_mods,
236* (1) hold down left shift: real_mods |= MOD_BIT(LSHIFT)
237* (2) press ACTION_MODS_KEY(LSHIFT, KC_A): weak_mods |= MOD_BIT(LSHIFT)
238* (3) release ACTION_MODS_KEY(LSHIFT, KC_A): waek_mods &= ~MOD_BIT(LSHIFT)
239real_mods still keeps modifier state.
240
241without weak mods,
242* (1) hold down left shift: real_mods |= MOD_BIT(LSHIFT)
243* (2) press ACTION_MODS_KEY(LSHIFT, KC_A): real_mods |= MOD_BIT(LSHIFT)
244* (3) release ACTION_MODS_KEY(LSHIFT, KC_A): real_mods &= ~MOD_BIT(LSHIFT)
245here real_mods lost state for 'physical left shift'.
246
247weak_mods is ORed with real_mods when keyboard report is sent.
248https://github.com/tmk/tmk_core/blob/master/common/action_util.c#L57 \ No newline at end of file
diff --git a/docs/FAQ.md b/docs/FAQ.md
new file mode 100644
index 000000000..417efad48
--- /dev/null
+++ b/docs/FAQ.md
@@ -0,0 +1,238 @@
1## READ FIRST
2- **README** of top directory : https://github.com/tmk/tmk_keyboard/blob/master/README.md
3- **README** of target project(keyboard/converter) directory.
4
5Note that you'll need to read **both**.
6
7
8# Build
9- [[FAQ/Build]]
10
11
12# Keymap
13- [[FAQ/Keymap]]
14
15
16# Debug Console
17## hid_listen can't recognize device
18When debug console of your device is not ready you will see like this:
19
20 Waiting for device:.........
21
22once the device is pluged in then *hid_listen* finds it you will get this message:
23
24 Waiting for new device:.........................
25 Listening:
26
27Check if you can't get this 'Listening:' message:
28- build with `CONSOLE_ENABLE=yes` in **Makefile**.
29
30You may need privilege to access the device on OS like Linux.
31- try `sudo hid_listen`
32
33## Can't get message on console
34Check:
35- *hid_listen* finds your device. See above.
36- Enable debug with pressing **Magic**+d. See [Magic Commands](https://github.com/tmk/tmk_keyboard#magic-commands).
37- set `debug_enable=true` usually in `matrix_init()` in **matrix.c**.
38- try using 'print' function instead of debug print. See **common/print.h**.
39- disconnect other devices with console function. See [Issue #97](https://github.com/tmk/tmk_keyboard/issues/97).
40
41## Linux or UNIX like system requires Super User privilege
42Just use 'sudo' to execute *hid_listen* with privilege.
43```
44$ sudo hid_listen
45```
46
47Or add an *udev rule* for TMK devices with placing a file in rules directory. The directory may vary on each system.
48
49File: /etc/udev/rules.d/52-tmk-keyboard.rules(in case of Ubuntu)
50```
51# tmk keyboard products https://github.com/tmk/tmk_keyboard
52SUBSYSTEMS=="usb", ATTRS{idVendor}=="feed", MODE:="0666"
53```
54
55***
56
57# Miscellaneous
58## NKRO Doesn't work
59First you have to compile frimware with this build option `NKRO_ENABLE` in **Makefile**.
60
61Try `Magic` **N** command(`LShift+RShift+N` by default) when **NKRO** still doesn't work. You can use this command to toggle between **NKRO** and **6KRO** mode temporarily. In some situations **NKRO** doesn't work you need to switch to **6KRO** mode, in particular when you are in BIOS.
62
63If your firmeare built with `BOOTMAGIC_ENABLE` you need to turn its switch on by `BootMagic` **N** command(`Space+N` by default). This setting is stored in EEPROM and keeped over power cycles.
64
65https://github.com/tmk/tmk_keyboard#boot-magic-configuration---virtual-dip-switch
66
67
68## TrackPoint needs reset circuit(PS/2 mouse support)
69Without reset circuit you will have inconsistent reuslt due to improper initialize of the hardware. See circuit schematic of TPM754.
70
71- http://geekhack.org/index.php?topic=50176.msg1127447#msg1127447
72- http://www.mikrocontroller.net/attachment/52583/tpm754.pdf
73
74
75## Can't read column of matrix beyond 16
76Use `1UL<<16` instead of `1<<16` in `read_cols()` in **matrix.h** when your columns goes beyond 16.
77
78In C `1` means one of **int** type which is **16bit** in case of AVR so you can't shift left more than 15. You will get unexpected zero when you say `1<<16`. You have to use **unsigned long** type with `1UL`.
79
80http://deskthority.net/workshop-f7/rebuilding-and-redesigning-a-classic-thinkpad-keyboard-t6181-60.html#p146279
81
82
83
84## Pull-up Resistor
85In some case converters needed to have pull-up resistors to work correctly. Place the resistor between VCC and signal line in parallel.
86
87For example:
88```
89Keyboard Conveter
90 ,------.
915V------+------|VCC |
92 | | |
93 R | |
94 | | |
95Signal--+------|PD0 |
96 | |
97GND------------|GND |
98 `------'
99R: 1K Ohm resistor
100```
101
102https://github.com/tmk/tmk_keyboard/issues/71
103
104
105## Arduino Micro's pin naming is confusing
106Note that Arduino Micro PCB marking is different from real AVR port name. D0 of Arduino Micro is not PD0, PD0 is D3. Check schematic yourself.
107http://arduino.cc/en/uploads/Main/arduino-micro-schematic.pdf
108
109
110
111## Bootloader jump doesn't work
112Properly configure bootloader size in **Makefile**. With wrong section size bootloader won't probably start with **Magic command** and **Boot Magic**.
113```
114# Size of Bootloaders in bytes:
115# Atmel DFU loader(ATmega32U4) 4096
116# Atmel DFU loader(AT90USB128) 8192
117# LUFA bootloader(ATmega32U4) 4096
118# Arduino Caterina(ATmega32U4) 4096
119# USBaspLoader(ATmega***) 2048
120# Teensy halfKay(ATmega32U4) 512
121# Teensy++ halfKay(AT90USB128) 2048
122OPT_DEFS += -DBOOTLOADER_SIZE=4096
123```
124AVR Boot section size are defined by setting **BOOTSZ** fuse in fact. Consult with your MCU datasheet.
125Note that **Word**(2 bytes) size and address are used in datasheet while TMK uses **Byte**.
126
127AVR Boot section is located at end of Flash memory like the followings.
128```
129byte Atmel/LUFA(ATMega32u4) byte Atmel(AT90SUB1286)
1300x0000 +---------------+ 0x00000 +---------------+
131 | | | |
132 | | | |
133 | Application | | Application |
134 | | | |
135 = = = =
136 | | 32KB-4KB | | 128KB-8KB
1370x6000 +---------------+ 0x1E000 +---------------+
138 | Bootloader | 4KB | Bootloader | 8KB
1390x7FFF +---------------+ 0x1FFFF +---------------+
140
141
142byte Teensy(ATMega32u4) byte Teensy++(AT90SUB1286)
1430x0000 +---------------+ 0x00000 +---------------+
144 | | | |
145 | | | |
146 | Application | | Application |
147 | | | |
148 = = = =
149 | | 32KB-512B | | 128KB-2KB
1500x7E00 +---------------+ 0x1FC00 +---------------+
151 | Bootloader | 512B | Bootloader | 2KB
1520x7FFF +---------------+ 0x1FFFF +---------------+
153```
154
155And see this discussion for further reference.
156https://github.com/tmk/tmk_keyboard/issues/179
157
158
159## Special Extra key doesn't work(System, Audio control keys)
160You need to define `EXTRAKEY_ENABLE` in **makefile** to use them in TMK.
161```
162EXTRAKEY_ENABLE = yes # Audio control and System control
163```
164http://deskthority.net/workshop-f7/tmk-keyboard-firmware-collection-t4478-60.html#p157919
165
166
167## Wakeup from sleep doesn't work
168In Windows check `Allow this device to wake the computer` setting in Power **Management property** tab of **Device Manager**. Also check BIOS setting.
169
170Pressing any key during sleep should wake host.
171
172
173## Using Arduino?
174**Note that Arduino pin naming is different from actual chip.** For example, Arduino pin `D0` is not `PD0`. Check circuit with its schematics yourself.
175
176- http://arduino.cc/en/uploads/Main/arduino-leonardo-schematic_3b.pdf
177- http://arduino.cc/en/uploads/Main/arduino-micro-schematic.pdf
178
179Arduino leonardo and micro have **ATMega32U4** and can be used for TMK, though Arduino bootloader may be a problem.
180
181
182## Using PF4-7 pins of USB AVR?
183You need to set JTD bit of MCUCR yourself to use PF4-7 as GPIO. Those pins are configured to serve JTAG function by default. MCUs like ATMega*U* or AT90USB* are affeteced with this.
184
185If you are using Teensy this isn't needed. Teensy is shipped with JTAGEN fuse bit unprogrammed to disable the function.
186
187See this code.
188```
189 // JTAG disable for PORT F. write JTD bit twice within four cycles.
190 MCUCR |= (1<<JTD);
191 MCUCR |= (1<<JTD);
192```
193https://github.com/tmk/tmk_keyboard/blob/master/keyboard/hbkb/matrix.c#L67
194
195And read **26.5.1 MCU Control Register – MCUCR** of ATMega32U4 datasheet.
196
197
198## Adding LED indicators of Lock keys
199You need your own LED indicators for CapsLock, ScrollLock and NumLock? See this post.
200
201http://deskthority.net/workshop-f7/tmk-keyboard-firmware-collection-t4478-120.html#p191560
202
203## Program Arduino Micro/Leonardo
204Push reset button and then run command like this within 8 seconds.
205
206```
207avrdude -patmega32u4 -cavr109 -b57600 -Uflash:w:adb_usb.hex -P/dev/ttyACM0
208```
209
210Device name will vary depending on your system.
211
212http://arduino.cc/en/Main/ArduinoBoardMicro
213https://geekhack.org/index.php?topic=14290.msg1563867#msg1563867
214
215
216## USB 3 compatibility
217I heard some people have a problem with USB 3 port, try USB 2 port.
218
219
220## Mac compatibility
221### OS X 10.11 and Hub
222https://geekhack.org/index.php?topic=14290.msg1884034#msg1884034
223
224
225## Problem on BIOS(UEFI)/Resume(Sleep&Wake)/Power cycles
226Some people reported their keyboard stops working on BIOS and/or after resume(power cycles).
227
228As of now root of its cause is not clear but some build options seem to be related. In Makefile try to disable those options like `CONSOLE_ENABLE`, `NKRO_ENABLE`, `SLEEP_LED_ENABLE` and/or others.
229
230https://github.com/tmk/tmk_keyboard/issues/266
231https://geekhack.org/index.php?topic=41989.msg1967778#msg1967778
232
233
234
235## FLIP doesn't work
236### AtLibUsbDfu.dll not found
237Remove current driver and reinstall one FLIP provides from DeviceManager.
238http://imgur.com/a/bnwzy \ No newline at end of file
diff --git a/docs/Git-subtree.md b/docs/Git-subtree.md
new file mode 100644
index 000000000..4fd7f8bea
--- /dev/null
+++ b/docs/Git-subtree.md
@@ -0,0 +1,7 @@
1## Update core branch procedure
2 git co master
3 git subtree split -P tmk_core -b <tmp_branch>
4 git co core
5 git merge <tmp_branch>
6 git co master
7 git subtree merge -P tmk_core --squash
diff --git a/docs/HHKB-Alt-controller.md b/docs/HHKB-Alt-controller.md
new file mode 100644
index 000000000..c12d8d7ff
--- /dev/null
+++ b/docs/HHKB-Alt-controller.md
@@ -0,0 +1,5 @@
1# Alternative Controller for HHKB
2
3* [Geekhack.org thread](https://geekhack.org/index.php?topic=12047.0)
4
5* [Connector unmate](https://geekhack.org/index.php?topic=12047.msg1543860#msg1543860) \ No newline at end of file
diff --git a/docs/Home.md b/docs/Home.md
new file mode 100644
index 000000000..bc1d25bf2
--- /dev/null
+++ b/docs/Home.md
@@ -0,0 +1,183 @@
1# Quantum Mechanical Keyboard Firmware
2
3You have found the QMK Firmware documentation site. This is a keyboard firmware based on the [tmk\_keyboard firmware](http://github.com/tmk/tmk_keyboard) \([view differences](/Differences-from-TMK.md)\) with some useful features for Atmel AVR controllers, and more specifically, the [OLKB product line](http://olkb.com), the [ErgoDox EZ](http://www.ergodox-ez.com) keyboard, and the [Clueboard product line](http://clueboard.co/). It has also been ported to ARM chips using ChibiOS. You can use it to power your own hand-wired or custom keyboard PCB.
4
5# Getting started
6
7Before you are able to compile, you'll need to install an environment for AVR or ARM development. You'll find the instructions for any OS below. If you find another/better way to set things up from scratch, please consider [making a pull request](https://github.com/qmk/qmk_firmware/pulls) with your changes!
8
9* [Build Environment Setup](/Build-Environment-Setup.md)
10* [QMK Overview](/QMK-Overview.md)
11
12# Configuring QMK Firmware
13
14The QMK Firmware can be configured via the `keymaps` array data. For simply generating a [basic keycode](/Keycodes.md), you add it as an element of your `keymaps` array data. For more complicated actions, there are more advanced keycodes that are organized carefully to represent common operations, some of which can be found on the [Key Functions](/Key-Functions.md) page.
15
16For more details of the `keymaps` array, see [Keymap Overview](/Keymap.md) page.
17
18## Space Cadet Shift: The future, built in
19
20Steve Losh [described](http://stevelosh.com/blog/2012/10/a-modern-space-cadet/) the Space Cadet Shift quite well. Essentially, you hit the left Shift on its own, and you get an opening parenthesis; hit the right Shift on its own, and you get the closing one. When hit with other keys, the Shift key keeps working as it always does. Yes, it's as cool as it sounds. Head on over to the [Space Cadet Shift](/Space-Cadet-Shift.md) page to read about it.
21
22## The Leader key: A new kind of modifier
23
24Most modifiers have to be held or toggled. But what if you had a key that indicated the start of a sequence? You could press that key and then rapidly press 1-3 more keys to trigger a macro, or enter a special layer, or anything else you might want to do. To learn more about it check out the [Leader Key](/Leader-Key.md) page.
25
26## Tap Dance: A single key can do 3, 5, or 100 different things
27
28Hit the semicolon key once, send a semicolon. Hit it twice, rapidly -- send a colon. Hit it three times, and your keyboard's LEDs do a wild dance. That's just one example of what Tap Dance can do. Read more about it on the [Tap Dance](/Tap-Dance.md) page.
29
30## Temporarily setting the default layer
31
32`DF(layer)` - sets default layer to _layer_. The default layer is the one at the "bottom" of the layer stack - the ultimate fallback layer. This currently does not persist over power loss. When you plug the keyboard back in, layer 0 will always be the default. It is theoretically possible to work around that, but that's not what `DF` does.
33
34## Macro shortcuts: Send a whole string when pressing just one key
35
36How would you like a single keypress to send a whole word, sentence, paragraph, or even document? Head on over to the [Macros](/Macros.md) page to read up on all aspects of Simple and Dynamic Macros.
37
38## Additional keycode aliases for software-implemented layouts \(Colemak, Dvorak, etc\)
39
40Everything is assuming you're in Qwerty \(in software\) by default, but there is built-in support for using a Colemak or Dvorak layout by including this at the top of your keymap:
41
42```
43#include <keymap_colemak.h>
44```
45
46If you use Dvorak, use `keymap_dvorak.h` instead of `keymap_colemak.h` for this line. After including this line, you will get access to:
47
48* `CM_*` for all of the Colemak-equivalent characters
49* `DV_*` for all of the Dvorak-equivalent characters
50
51These implementations assume you're using Colemak or Dvorak on your OS, not on your keyboard - this is referred to as a software-implemented layout. If your computer is in Qwerty and your keymap is in Colemak or Dvorak, this is referred to as a firmware-implemented layout, and you won't need these features.
52
53To give an example, if you're using software-implemented Colemak, and want to get an `F`, you would use `CM_F`. Using `KC_F` under these same circumstances would result in `T`.
54
55## Backlight Breathing
56
57In order to enable backlight breathing, the following line must be added to your config.h file.
58
59```
60#define BACKLIGHT_BREATHING
61```
62
63The following function calls are used to control the breathing effect.
64
65* `breathing_enable()` - Enable the free-running breathing effect.
66* `breathing_disable()` - Disable the free-running breathing effect immediately.
67* `breathing_self_disable()` - Disable the free-running breathing effect after the current effect ends.
68* `breathing_toggle()` - Toggle the free-running breathing effect.
69* `breathing_defaults()` - Reset the speed and brightness settings of the breathing effect.
70
71The following function calls are used to control the maximum brightness of the breathing effect.
72
73* `breathing_intensity_set(value)` - Set the brightness of the breathing effect when it is at its max value.
74* `breathing_intensity_default()` - Reset the brightness of the breathing effect to the default value based on the current backlight intensity.
75
76The following function calls are used to control the cycling speed of the breathing effect.
77
78* `breathing_speed_set(value)` - Set the speed of the breathing effect - how fast it cycles.
79* `breathing_speed_inc(value)` - Increase the speed of the breathing effect by a fixed value.
80* `breathing_speed_dec(value)` - Decrease the speed of the breathing effect by a fixed value.
81* `breathing_speed_default()` - Reset the speed of the breathing effect to the default value.
82
83The following example shows how to enable the backlight breathing effect when the FUNCTION layer macro button is pressed:
84
85```
86case MACRO_FUNCTION:
87 if (record->event.pressed)
88 {
89 breathing_speed_set(3);
90 breathing_enable();
91 layer_on(LAYER_FUNCTION);
92 }
93 else
94 {
95 breathing_speed_set(1);
96 breathing_self_disable();
97 layer_off(LAYER_FUNCTION);
98 }
99 break;
100```
101
102The following example shows how to pulse the backlight on-off-on when the RAISED layer macro button is pressed:
103
104```
105case MACRO_RAISED:
106 if (record->event.pressed)
107 {
108 layer_on(LAYER_RAISED);
109 breathing_speed_set(2);
110 breathing_pulse();
111 update_tri_layer(LAYER_LOWER, LAYER_RAISED, LAYER_ADJUST);
112 }
113 else
114 {
115 layer_off(LAYER_RAISED);
116 update_tri_layer(LAYER_LOWER, LAYER_RAISED, LAYER_ADJUST);
117 }
118 break;
119```
120
121## Other firmware shortcut keycodes
122
123* `RESET` - puts the MCU in DFU mode for flashing new firmware \(with `make dfu`\)
124* `DEBUG` - the firmware into debug mode - you'll need hid\_listen to see things
125* `BL_ON` - turns the backlight on
126* `BL_OFF` - turns the backlight off
127* `BL_<n>` - sets the backlight to level _n_
128* `BL_INC` - increments the backlight level by one
129* `BL_DEC` - decrements the backlight level by one
130* `BL_TOGG` - toggles the backlight
131* `BL_STEP` - steps through the backlight levels
132
133Enable the backlight from the Makefile.
134
135# Custom Quantum functions
136
137All of these functions are available in the `*_kb()` or `*_user()` variety. `kb` ones should only be used in the `<keyboard>/<keyboard>.c` file, and `user` ones should only be used in the `keymap.c`. The keyboard ones call the user ones - it's necessary to keep these calls to allow the keymap functions to work correctly.
138
139## `void matrix_init_*(void)`
140
141This function gets called when the matrix is initiated, and can contain start-up code for your keyboard/keymap.
142
143## `void matrix_scan_*(void)`
144
145This function gets called at every matrix scan, which is basically as often as the MCU can handle. Be careful what you put here, as it will get run a lot.
146
147## `bool process_record_*(uint16_t keycode, keyrecord_t *record)`
148
149This function gets called on every keypress/release, and is where you can define custom functionality. The return value is whether or not QMK should continue processing the keycode - returning `false` stops the execution.
150
151The `keycode` variable is whatever is defined in your keymap, eg `MO(1)`, `KC_L`, etc. and can be switch-cased to execute code whenever a particular code is pressed.
152
153The `record` variable contains infomation about the actual press:
154
155```
156keyrecord_t record {
157 keyevent_t event {
158 keypos_t key {
159 uint8_t col
160 uint8_t row
161 }
162 bool pressed
163 uint16_t time
164 }
165}
166```
167
168The conditional `if (record->event.pressed)` can tell if the key is being pressed or released, and you can execute code based on that.
169
170## `void led_set_*(uint8_t usb_led)`
171
172This gets called whenever there is a state change on your host LEDs \(eg caps lock, scroll lock, etc\). The LEDs are defined as:
173
174```
175#define USB_LED_NUM_LOCK 0
176#define USB_LED_CAPS_LOCK 1
177#define USB_LED_SCROLL_LOCK 2
178#define USB_LED_COMPOSE 3
179#define USB_LED_KANA 4
180```
181
182and can be tested against the `usb_led` with a conditional like `if (usb_led & (1<<USB_LED_CAPS_LOCK))` - if this is true, you can turn your LED on, otherwise turn it off.
183
diff --git a/docs/Key-Functions.md b/docs/Key-Functions.md
new file mode 100644
index 000000000..955a28061
--- /dev/null
+++ b/docs/Key-Functions.md
@@ -0,0 +1,94 @@
1# Quick Aliases To Common Actions
2
3Your keymap can include shortcuts to common operations (called "function actions" in tmk).
4
5These functions work the same way that their `ACTION_*` functions do - they're just quick aliases. To dig into all of the tmk `ACTION_*` functions, please see the [TMK documentation](https://github.com/qmk/qmk_firmware/blob/master/doc/keymap.md#2-action).
6
7Instead of using `FNx` when defining `ACTION_*` functions, you can use `F(x)` - the benefit here is being able to use more than 32 function actions (up to 4096), if you happen to need them.
8
9### Switching and toggling layers
10
11`MO(layer)` - momentary switch to *layer*. As soon as you let go of the key, the layer is deactivated and you pop back out to the previous layer. When you apply this to a key, that same key must be set as `KC_TRNS` on the destination layer. Otherwise, you won't make it back to the original layer when you release the key (and you'll get a keycode sent). You can only switch to layers *above* your current layer. If you're on layer 0 and you use `MO(1)`, that will switch to layer 1 just fine. But if you include `MO(3)` on layer 5, that won't do anything for you -- because layer 3 is lower than layer 5 on the stack.
12
13`OSL(layer)` - momentary switch to *layer*, as a one-shot operation. So if you have a key that's defined as `OSL(1)`, and you tap that key, then only the very next keystroke would come from layer 1. You would drop back to layer zero immediately after that one keystroke. That's handy if you have a layer full of custom shortcuts -- for example, a dedicated key for closing a window. So you tap your one-shot layer mod, then tap that magic 'close window' key, and keep typing like a boss. Layer 1 would remain active as long as you hold that key down, too (so you can use it like a momentary toggle-layer key with extra powers).
14
15`LT(layer, kc)` - momentary switch to *layer* when held, and *kc* when tapped. Like `MO()`, this only works upwards in the layer stack (`layer` must be higher than the current layer).
16
17`TG(layer)` - toggles a layer on or off. As with `MO()`, you should set this key as `KC_TRNS` in the destination layer so that tapping it again actually toggles back to the original layer. Only works upwards in the layer stack.
18
19`TO(layer)` - Goes to a layer. This code is special, because it lets you go either up or down the stack -- just goes directly to the layer you want. So while other codes only let you go _up_ the stack (from layer 0 to layer 3, for example), `TO(2)` is going to get you to layer 2, no matter where you activate it from -- even if you're currently on layer 5. This gets activated on keydown (as soon as the key is pressed).
20
21`TT(layer)` - Layer Tap-Toggle. If you hold the key down, the layer becomes active, and then deactivates when you let go. And if you tap it, the layer simply becomes active (toggles on). It needs 5 taps by default, but you can set it by defining `TAPPING_TOGGLE`, for example, `#define TAPPING_TOGGLE 1` for just one tap.
22
23
24### Fun with modifier keys
25
26* `LSFT(kc)` - applies left Shift to *kc* (keycode) - `S(kc)` is an alias
27* `RSFT(kc)` - applies right Shift to *kc*
28* `LCTL(kc)` - applies left Control to *kc*
29* `RCTL(kc)` - applies right Control to *kc*
30* `LALT(kc)` - applies left Alt to *kc*
31* `RALT(kc)` - applies right Alt to *kc*
32* `LGUI(kc)` - applies left GUI (command/win) to *kc*
33* `RGUI(kc)` - applies right GUI (command/win) to *kc*
34* `HYPR(kc)` - applies Hyper (all modifiers) to *kc*
35* `MEH(kc)` - applies Meh (all modifiers except Win/Cmd) to *kc*
36* `LCAG(kc)` - applies CtrlAltGui to *kc*
37
38You can also chain these, like this:
39
40 LALT(LCTL(KC_DEL)) -- this makes a key that sends Alt, Control, and Delete in a single keypress.
41
42The following shortcuts automatically add `LSFT()` to keycodes to get commonly used symbols. Their long names are also available and documented in `quantum/quantum_keycodes.h`.
43
44 KC_TILD ~
45 KC_EXLM !
46 KC_QUES ?
47 KC_AT @
48 KC_HASH #
49 KC_DLR $
50 KC_PERC %
51 KC_CIRC ^
52 KC_AMPR &
53 KC_ASTR *
54 KC_LPRN (
55 KC_RPRN )
56 KC_UNDS _
57 KC_PLUS +
58 KC_DQUO "
59 KC_LCBR {
60 KC_RCBR }
61 KC_LABK <
62 KC_RABK >
63 KC_PIPE |
64 KC_COLN :
65
66`OSM(mod)` - this is a "one shot" modifier. So let's say you have your left Shift key defined as `OSM(MOD_LSFT)`. Tap it, let go, and Shift is "on" -- but only for the next character you'll type. So to write "The", you don't need to hold down Shift -- you tap it, tap t, and move on with life. And if you hold down the left Shift key, it just works as a left Shift key, as you would expect (so you could type THE). There's also a magical, secret way to "lock" a modifier by tapping it multiple times. If you want to learn more about that, open an issue. :)
67
68`MT(mod, kc)` - is *mod* (modifier key - MOD_LCTL, MOD_LSFT) when held, and *kc* when tapped. In other words, you can have a key that sends Esc (or the letter O or whatever) when you tap it, but works as a Control key or a Shift key when you hold it down.
69
70These are the values you can use for the `mod` in `MT()` and `OSM()`:
71
72 * MOD_LCTL
73 * MOD_LSFT
74 * MOD_LALT
75 * MOD_LGUI
76 * MOD_RCTL
77 * MOD_RSFT
78 * MOD_RALT
79 * MOD_RGUI
80 * MOD_HYPR
81 * MOD_MEH
82
83These can also be combined like `MOD_LCTL | MOD_LSFT` e.g. `MT(MOD_LCTL | MOD_LSFT, KC_ESC)` which would activate Control and Shift when held, and send Escape when tapped. Note however, that you cannot mix right and left side modifiers.
84
85We've added shortcuts to make common modifier/tap (mod-tap) mappings more compact:
86
87 * `CTL_T(kc)` - is LCTL when held and *kc* when tapped
88 * `SFT_T(kc)` - is LSFT when held and *kc* when tapped
89 * `ALT_T(kc)` - is LALT when held and *kc* when tapped
90 * `ALGR_T(kc)` - is AltGr when held and *kc* when tapped
91 * `GUI_T(kc)` - is LGUI when held and *kc* when tapped
92 * `ALL_T(kc)` - is Hyper (all mods) when held and *kc* when tapped. To read more about what you can do with a Hyper key, see [this blog post by Brett Terpstra](http://brettterpstra.com/2012/12/08/a-useful-caps-lock-key/)
93 * `LCAG_T(kc)` - is CtrlAltGui when held and *kc* when tapped
94 * `MEH_T(kc)` - is like Hyper, but not as cool -- does not include the Cmd/Win key, so just sends Alt+Ctrl+Shift.
diff --git a/docs/Keycodes.md b/docs/Keycodes.md
new file mode 100644
index 000000000..e83842cbb
--- /dev/null
+++ b/docs/Keycodes.md
@@ -0,0 +1,228 @@
1# Overview
2
3When defining a [keymap](https://github.com/qmk/qmk_firmware/blob/master/doc/keymap.md) each key needs a valid key definition.
4
5This page documents the symbols that correspond to keycodes that are available to you in QMK.
6
7To customize your board, they can be used by themselves or as **action codes** in combination with one of the [many C macros](https://github.com/qmk/qmk_firmware/wiki#c-macros-for-action-code).
8
9The source of truth for these codes is [tmk_core/common/keycode.h](https://github.com/qmk/qmk_firmware/blob/master/tmk_core/common/keycode.h) file in the qmk source code.
10
11# The Keycodes
12
13Keycodes in QMK are based on [HID Usage Keyboard/Keypad Page(0x07)](http://www.usb.org/developers/hidpage/Hut1_12v2.pdf) with following exceptions:
14
15* `KC_NO` = 0 for no action
16* `KC_TRNS` = 1 for layer transparency
17* internal special keycodes in the `0xA5-DF` range (tmk heritage).
18
19## Letters and Numbers
20
21|KC_1|KC_2|KC_3|KC_4|KC_5|KC_6|KC_7|KC_8|
22|----|----|----|----|----|----|----|----|
23|KC_9|KC_0|KC_F1|KC_F2|KC_F3|KC_F4|KC_F5|KC_F6|
24|KC_F7|KC_F8|KC_F9|KC_F10|KC_F11|KC_F12|KC_F13|KC_F14|
25|KC_F15|KC_F16|KC_F17|KC_F18|KC_F19|KC_F20|KC_F21|KC_F22|
26|KC_F23|KC_F24|KC_A|KC_B|KC_C|KC_D|KC_E|KC_F|
27|KC_G|KC_H|KC_I|KC_J|KC_K|KC_L|KC_M|KC_N|
28|KC_O|KC_P|KC_Q|KC_R|KC_S|KC_T|KC_U|KC_V|
29|KC_W|KC_X|KC_Y|KC_Z|||||
30
31## Punctuation
32
33|Long Name|Short Name|Description|
34|---------|----------|-----------|
35|KC_ENTER|KC_ENT|`Return (ENTER)`|
36|KC_ESCAPE|KC_ESC|`ESCAPE`|
37|KC_BSPACE|KC_BSPC|`DELETE (Backspace)`|
38|KC_TAB||`Tab`|
39|KC_SPACE|KC_SPC|Spacebar|
40|KC_MINUS|KC_MINS|`-` and `_`|
41|KC_EQUAL|KC_EQL|`=` and `+`|
42|KC_LBRACKET|KC_LBRC|`[` and `{`|
43|KC_RBRACKET|KC_RBRC|`]` and `}`|
44|KC_BSLASH|KC_BSLS|`\` and <code>&#124;</code> |
45|KC_NONUS_HASH|KC_NUHS|Non-US `#` and `~`|
46|KC_NONUS_BSLASH|KC_NUBS|Non-US `\` and <code>&#124;</code> |
47|KC_INT1|KC_RO|JIS `\` and <code>&#124;</code> |
48|KC_INT2|KC_KANA|International216|
49|KC_INT3|KC_JYEN|Yen Symbol (`¥`)|
50|KC_SCOLON|KC_SCLN|`;` and `:`|
51|KC_QUOTE|KC_QUOT|`‘` and `“`|
52|KC_GRAVE|KC_GRV|Grave Accent and Tilde|
53|KC_COMMA|KC_COMM|`,` and `<`|
54|KC_DOT||`.` and `>`|
55|KC_SLASH|KC_SLSH|`/` and `?`|
56|KC_CAPSLOCK|KC_CAPS|Caps Lock|
57
58## Modifiers
59
60|Long Name|Short Name|Description|
61|---------|----------|-----------|
62|KC_LCTRL|KC_LCTL|LeftControl|
63|KC_LSHIFT|KC_LSFT|LeftShift|
64|KC_LALT||LeftAlt|
65|KC_LGUI||Left GUI(Windows/Apple/Meta key)|
66|KC_RCTRL|KC_RCTL|RightControl|
67|KC_RSHIFT|KC_RSFT|RightShift|
68|KC_RALT||RightAlt|
69|KC_RGUI||Right GUI(Windows/Apple/Meta key)|
70|KC_LOCKING_CAPS||Locking Caps Lock12|
71|KC_LOCKING_NUM||Locking Num Lock12|
72|KC_LOCKING_SCROLL||Locking Scroll Lock12|
73|KC_INT4|KC_HENK|JIS Henken|
74|KC_INT5|KC_MHEN|JIS Muhenken|
75
76## Commands
77
78|Long Name|Short Name|Description|
79|---------|----------|-----------|
80|KC_PSCREEN|KC_PSCR|PrintScreen1|
81|KC_SCKLOCK|KC_SLCK|Scroll Lock11|
82|KC_PAUSE|KC_PAUS|Pause1|
83|KC_INSERT|KC_INS|Insert1|
84|KC_HOME||Home1|
85|KC_PGUP||PageUp1|
86|KC_DELETE|KC_DEL|Delete Forward|
87|KC_END||End1|
88|KC_PGDOWN|KC_PGDN|PageDown1|
89|KC_RIGHT|KC_RGHT|RightArrow1|
90|KC_LEFT||LeftArrow1|
91|KC_DOWN||DownArrow1|
92|KC_UP||UpArrow1|
93|KC_APPLICATION|KC_APP|Application10|
94|KC_POWER||Power9|
95|KC_EXECUTE||Execute|
96|KC_HELP||Help|
97|KC_MENU||Menu|
98|KC_SELECT||Select|
99|KC_AGAIN||Again|
100|KC_UNDO||Undo|
101|KC_CUT||Cut|
102|KC_COPY||Copy|
103|KC_PASTE||Paste|
104|KC_FIND||Find|
105|KC_ALT_ERASE||Alternate Erase7|
106|KC_SYSREQ||SysReq/Attention1|
107|KC_CANCEL||Cancel|
108|KC_CLEAR||Clear|
109|KC_PRIOR||Prior|
110|KC_RETURN||Return|
111|KC_SEPARATOR||Separator|
112|KC_OUT||Out|
113|KC_OPER||Oper|
114|KC_CLEAR_AGAIN||Clear/Again|
115|KC_CRSEL||CrSel/Props|
116|KC_EXSEL||ExSel|
117|KC_SYSTEM_POWER|KC_PWR|System Power Down|
118|KC_SYSTEM_SLEEP|KC_SLEP|System Sleep|
119|KC_SYSTEM_WAKE|KC_WAKE|System Wake|
120|KC_MAIL|KC_MAIL||
121|KC_CALCULATOR|KC_CALC||
122|KC_MY_COMPUTER|KC_MYCM||
123|KC_WWW_SEARCH|KC_WSCH||
124|KC_WWW_HOME|KC_WHOM||
125|KC_WWW_BACK|KC_WBAK||
126|KC_WWW_FORWARD|KC_WFWD||
127|KC_WWW_STOP|KC_WSTP||
128|KC_WWW_REFRESH|KC_WREF||
129|KC_WWW_FAVORITES|KC_WFAV||
130
131## Media Keys
132
133Windows and Mac use different key codes for next track and previous track. Make sure you choose the keycode that corresponds to your OS.
134
135|Long Name|Short Name|Description|
136|---------|----------|-----------|
137|KC_STOP||Stop|
138|KC__MUTE||Mute|
139|KC__VOLUP||Volume Up|
140|KC__VOLDOWN||Volume Down|
141|KC_AUDIO_MUTE|KC_MUTE||
142|KC_AUDIO_VOL_UP|KC_VOLU||
143|KC_AUDIO_VOL_DOWN|KC_VOLD||
144|KC_MEDIA_NEXT_TRACK|KC_MNXT|Next Track (Windows)|
145|KC_MEDIA_PREV_TRACK|KC_MPRV|Previous Track (Windows)|
146|KC_MEDIA_FAST_FORWARD|KC_MFFD|Next Track (macOS)|
147|KC_MEDIA_REWIND|KC_MRWD|Previous Track (macOS)|
148|KC_MEDIA_STOP|KC_MSTP||
149|KC_MEDIA_PLAY_PAUSE|KC_MPLY||
150|KC_MEDIA_SELECT|KC_MSEL||
151
152## Numpad
153
154|Long Name|Short Name|Description|
155|---------|----------|-----------|
156|KC_NUMLOCK|KC_NLCK|Keypad Num Lock and Clear11|
157|KC_KP_SLASH|KC_PSLS|Keypad /|
158|KC_KP_ASTERISK|KC_PAST|Keypad *|
159|KC_KP_MINUS|KC_PMNS|Keypad -|
160|KC_KP_PLUS|KC_PPLS|Keypad +|
161|KC_KP_ENTER|KC_PENT|Keypad ENTER5|
162|KC_KP_1|KC_P1|Keypad 1 and End|
163|KC_KP_2|KC_P2|Keypad 2 and Down Arrow|
164|KC_KP_3|KC_P3|Keypad 3 and PageDn|
165|KC_KP_4|KC_P4|Keypad 4 and Left Arrow|
166|KC_KP_5|KC_P5|Keypad 5|
167|KC_KP_6|KC_P6|Keypad 6 and Right Arrow|
168|KC_KP_7|KC_P7|Keypad 7 and Home|
169|KC_KP_8|KC_P8|Keypad 8 and Up Arrow|
170|KC_KP_9|KC_P9|Keypad 9 and PageUp|
171|KC_KP_0|KC_P0|Keypad 0 and Insert|
172|KC_KP_DOT|KC_PDOT|Keypad . and Delete|
173|KC_KP_EQUAL|KC_PEQL|Keypad =|
174|KC_KP_COMMA|KC_PCMM|Keypad Comma27|
175|KC_KP_EQUAL_AS400||Keypad Equal Sign29|
176
177## Special Keys
178
179|Long Name|Short Name|Description|
180|---------|----------|-----------|
181|KC_NO||Ignore this key. (NOOP) |
182
183## Mousekey
184
185|Long Name|Short Name|Description|
186|---------|----------|-----------|
187|KC_MS_UP|KC_MS_U|Mouse Cursor Up|
188|KC_MS_DOWN|KC_MS_D|Mouse Cursor Down|
189|KC_MS_LEFT|KC_MS_L|Mouse Cursor Left|
190|KC_MS_RIGHT|KC_MS_R|Mouse Cursor Right|
191|KC_MS_BTN1|KC_BTN1|Mouse Button 1|
192|KC_MS_BTN2|KC_BTN2|Mouse Button 2|
193|KC_MS_BTN3|KC_BTN3|Mouse Button 3|
194|KC_MS_BTN4|KC_BTN4|Mouse Button 4|
195|KC_MS_BTN5|KC_BTN5|Mouse Button 5|
196|KC_MS_WH_UP|KC_WH_U|Mouse Wheel Up|
197|KC_MS_WH_DOWN|KC_WH_D|Mouse Wheel Down|
198|KC_MS_WH_LEFT|KC_WH_L|Mouse Wheel Left|
199|KC_MS_WH_RIGHT|KC_WH_R|Mouse Wheel Right|
200|KC_MS_ACCEL0|KC_ACL0|Mouse Acceleration 0|
201|KC_MS_ACCEL1|KC_ACL1|Mouse Acceleration 1|
202|KC_MS_ACCEL2|KC_ACL2|Mouse Acceleration 2|
203
204## Magic Keys
205
206The following keys can be used to turn on and off various "Magic" features. These include Boot Magic (holding certain keys down while plugging the keyboard in) and the Magic Key.
207
208|Long Name|Short Name|Description|
209|---------|----------|-----------|
210|MAGIC_SWAP_CONTROL_CAPSLOCK||Swap Capslock and Control|
211|MAGIC_CAPSLOCK_TO_CONTROL||Change Capslock to Control|
212|MAGIC_SWAP_ALT_GUI||Swap ALT and GUI|
213|MAGIC_SWAP_LALT_LGUI||Swap LALT and LGUI|
214|MAGIC_SWAP_RALT_RGUI||Swap RALT and RGUI|
215|MAGIC_NO_GUI||Disable off the GUI key|
216|MAGIC_SWAP_GRAVE_ESC||Swap the GRAVE (~ `) and Esc keys|
217|MAGIC_SWAP_BACKSLASH_BACKSPACE||Swap Backslash and Backspace|
218|MAGIC_UNSWAP_CONTROL_CAPSLOCK||Disable the Control/Caps Swap|
219|MAGIC_UNCAPSLOCK_TO_CONTROL||Turn Capslock back into Capslock|
220|MAGIC_UNSWAP_ALT_GUI||Turn the ALT/GUI swap off|
221|MAGIC_UNSWAP_LALT_LGUI||Turn the LALT/LGUI swap off|
222|MAGIC_UNSWAP_RALT_RGUI||Turn the RALT/RGUI swap off|
223|MAGIC_UNNO_GUI||Enable the GUI key|
224|MAGIC_UNSWAP_GRAVE_ESC||Turn the GRAVE/ESC swap off|
225|MAGIC_UNSWAP_BACKSLASH_BACKSPACE||Turn the Backslash/Backspace swap off|
226|MAGIC_HOST_NKRO||Turn NKRO on|
227|MAGIC_UNHOST_NKRO||Turn NKRO off|
228|MAGIC_TOGGLE_NKRO||Toggle NKRO on or off|
diff --git a/docs/Keymap-examples.md b/docs/Keymap-examples.md
new file mode 100644
index 000000000..094011931
--- /dev/null
+++ b/docs/Keymap-examples.md
@@ -0,0 +1,37 @@
1# Share your keymap idea here!
2https://github.com/tmk/tmk_keyboard/issues/265
3
4---
5
6## Reverse-shifted for numbers
7With pressing Shift and '1' key you get **1** while with just '1' key you get **!**.
8- https://geekhack.org/index.php?topic=41989.msg1959718#msg1959718
9
10
11## KBT Pure layout
12Keymap code on Alps64
13https://github.com/thisisshi/tmk_keyboard/blob/15fe63e8d181a8a95988dcc71929f0024df55caa/keyboard/alps64/keymap_pure.c
14
15and guide.
16https://github.com/thisisshi/tmk_keyboard/blob/77ac0805ade565fb23657e3644c920ada71edccf/keyboard/alps64/Guide.md
17
18## Prevent stuck modifiers
19
20Consider the following scenario:
21
221. Layer 0 has a key defined as Shift.
232. The same key is defined on layer 1 as the letter A.
243. User presses Shift.
254. User switches to layer 1 for whatever reason.
265. User releases Shift, or rather the letter A.
276. User switches back to layer 0.
28
29Shift was actually never released and is still considered pressed.
30
31If such situation bothers you add this to your `config.h`:
32
33 #define PREVENT_STUCK_MODIFIERS
34
35This option uses 5 bytes of memory per every 8 keys on the keyboard
36rounded up (5 bits per key). For example on Planck (48 keys) it uses
37(48/8)\*5 = 30 bytes.
diff --git a/docs/Keymap.md b/docs/Keymap.md
new file mode 100644
index 000000000..53b17f401
--- /dev/null
+++ b/docs/Keymap.md
@@ -0,0 +1,222 @@
1# Keymap Overview
2
3QMK keymaps are defined inside a C source file. The data structure is an array of arrays. The outer array is a list of layer arrays while the inner layer array is a list of keys. Most keyboards define a `KEYMAP()` macro to help you create this array of arrays.
4
5
6## Keymap and layers
7In QMK, **`const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS]`** holds multiple **layers** of keymap information in **16 bit** data holding the **action code**. You can define **32 layers** at most.
8
9For trivial key definitions, the higher 8 bits of the **action code** are all 0 and the lower 8 bits holds the USB HID usage code generated by the key as **keycode**.
10
11Respective layers can be validated simultaneously. Layers are indexed with 0 to 31 and higher layer has precedence.
12
13 Keymap: 32 Layers Layer: action code matrix
14 ----------------- ---------------------
15 stack of layers array_of_action_code[row][column]
16 ____________ precedence _______________________
17 / / | high / ESC / F1 / F2 / F3 ....
18 31 /___________// | /-----/-----/-----/-----
19 30 /___________// | / TAB / Q / W / E ....
20 29 /___________/ | /-----/-----/-----/-----
21 : _:_:_:_:_:__ | : /LCtrl/ A / S / D ....
22 : / : : : : : / | : / : : : :
23 2 /___________// | 2 `--------------------------
24 1 /___________// | 1 `--------------------------
25 0 /___________/ V low 0 `--------------------------
26
27
28Sometimes, the action code stored in keymap may be referred as keycode in some documents due to the TMK history.
29
30### Keymap layer status
31Keymap layer has its state in two 32 bit parameters:
32
33* **`default_layer_state`** indicates a base keymap layer(0-31) which is always valid and to be referred.
34* **`layer_state`** () has current on/off status of the layer on its each bit.
35
36Keymap has its state in two parameter **`default_layer`** indicates a base keymap layer(0-31) which is always valid and to be referred, **`keymap_stat`** is 16bit variable which has current on/off status of layers on its each bit.
37Keymap layer '0' is usually `default_layer` and which is the only valid layer and other layers is initially off after boot up firmware, though, you can configured them in `config.h`.
38To change `default_layer` will be useful when you switch key layout completely, say you want Colmak instead of Qwerty.
39
40 Initial state of Keymap Change base layout
41 ----------------------- ------------------
42
43 31 31
44 30 30
45 29 29
46 : :
47 : : ____________
48 2 ____________ 2 / /
49 1 / / ,->1 /___________/
50 ,->0 /___________/ | 0
51 | |
52 `--- default_layer = 0 `--- default_layer = 1
53 layer_state = 0x00000001 layer_state = 0x00000002
54
55On the other hand, you shall change `layer_state` to overlay base layer with some layers for feature such as navigation keys, function key(F1-F12), media keys or special actions.
56
57 Overlay feature layer
58 --------------------- bit|status
59 ____________ ---+------
60 31 / / 31 | 0
61 30 /___________// -----> 30 | 1
62 29 /___________/ -----> 29 | 1
63 : : | :
64 : ____________ : | :
65 2 / / 2 | 0
66 ,->1 /___________/ -----> 1 | 1
67 | 0 0 | 0
68 | +
69 `--- default_layer = 1 |
70 layer_state = 0x60000002 <-'
71
72
73
74### Layer Precedence and Transparency
75Note that ***higher layer has higher priority on stack of layers***, namely firmware falls down from top layer to bottom to look up keycode. Once it spots keycode other than **`KC_TRNS`**(transparent) on a layer it stops searching and lower layers aren't referred.
76
77You can place `KC_TRANS` on overlay layer changes just part of layout to fall back on lower or base layer.
78Key with `KC_TRANS` (`KC_TRNS` and `_______` are the alias) doesn't has its own keycode and refers to lower valid layers for keycode, instead.
79
80## Anatomy Of A `keymap.c`
81
82For this example we will walk through the [default Clueboard keymap](https://github.com/qmk/qmk_firmware/blob/master/keyboards/clueboard/keymaps/default/keymap.c). You'll find it helpful to open that file in another browser window so you can look at everything in context.
83
84There are 3 main sections of a `keymap.c` file you'll want to concern yourself with:
85
86* [The Definitions](#definitions)
87* [The Layer/Keymap Datastructure](#layers-and-keymaps)
88* [Custom Functions](#custom-functions), if any
89
90### Definitions
91
92At the top of the file you'll find this:
93
94 #include "clueboard.h"
95
96 // Helpful defines
97 #define GRAVE_MODS (MOD_BIT(KC_LSHIFT)|MOD_BIT(KC_RSHIFT)|MOD_BIT(KC_LGUI)|MOD_BIT(KC_RGUI)|MOD_BIT(KC_LALT)|MOD_BIT(KC_RALT))
98 #define _______ KC_TRNS
99
100 // Each layer gets a name for readability.
101 // The underscores don't mean anything - you can
102 // have a layer called STUFF or any other name.
103 // Layer names don't all need to be of the same
104 // length, and you can also skip them entirely
105 // and just use numbers.
106 #define _BL 0
107 #define _FL 1
108 #define _CL 2
109
110These are some handy definitions we can use when building our keymap and our custom function. The `GRAVE_MODS` definition will be used later in our custom function. The `_______` define makes it easier to see what keys a layer is overriding, while the `_BL`, `_FL`, and `_CL` defines make it easier to refer to each of our layers.
111
112### Layers and Keymaps
113
114The main part of this file is the `keymaps[]` definition. This is where you list your layers and the contents of those layers. This part of the file begins with this definition:
115
116 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
117
118After this you'll find a list of KEYMAP() macros. A KEYMAP() is simply a list of keys to define a single layer. Typically you'll have one or more "base layers" (such as QWERTY, Dvorak, or Colemak) and then you'll layer on top of that one or more "function" layers. Due to the way layers are processed you can't overlay a "lower" layer on top of a "higher" layer.
119
120`keymaps[][MATRIX_ROWS][MATRIX_COLS]` in QMK holds the 16 bit action code (sometimes referred as the quantum keycode) in it. For the keycode representing typical keys, its high byte is 0 and its low byte is the USB HID usage ID for keyboard.
121
122> TMK from which QMK was forked uses `const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS]` instead and holds the 8 bit keycode. Some keycode values are reserved to induce execution of certain action codes via the `fn_actions[]` array.
123
124#### Base Layer
125
126Here is an example of the Clueboard's base layer:
127
128 /* Keymap _BL: Base Layer (Default Layer)
129 */
130 [_BL] = KEYMAP(
131 F(0), KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_GRV, KC_BSPC, KC_PGUP, \
132 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_PGDN, \
133 KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT, \
134 KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RO, KC_RSFT, KC_UP, \
135 KC_LCTL, KC_LGUI, KC_LALT, KC_MHEN, KC_SPC,KC_SPC, KC_HENK, KC_RALT, KC_RCTL, MO(_FL), KC_LEFT, KC_DOWN, KC_RGHT),
136
137Some interesting things to note about this:
138
139* From a C source point of view it's only a single array, but we have embedded whitespace to more easily visualize where each key is on the physical device.
140* Plain keyboard scancodes are prefixed with KC_, while "special" keys are not.
141* The upper left key activates custom function 0 (`F(0)`)
142* The "Fn" key is defined with `MO(_FL)`, which moves to the `_FL` layer while that key is being held down.
143
144#### Function Overlay Layer
145
146Our function layer is, from a code point of view, no different from the base layer. Conceptually, however, you will build that layer as an overlay, not a replacement. For many people this distinction does not matter, but as you build more complicated layering setups it matters more and more.
147
148 [_FL] = KEYMAP(
149 KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, KC_DEL, BL_STEP, \
150 _______, _______, _______,_______,_______,_______,_______,_______,KC_PSCR,KC_SLCK, KC_PAUS, _______, _______, _______, _______, \
151 _______, _______, MO(_CL),_______,_______,_______,_______,_______,_______,_______, _______, _______, _______, _______, \
152 _______, _______, _______,_______,_______,_______,_______,_______,_______,_______, _______, _______, _______, _______, KC_PGUP, \
153 _______, _______, _______, _______, _______,_______, _______, _______, _______, MO(_FL), KC_HOME, KC_PGDN, KC_END),
154
155Some interesting things to note:
156
157* We have used our `_______` definition to turn `KC_TRNS` into `_______`. This makes it easier to spot the keys that have changed on this layer.
158* While in this layer if you press one of the `_______` keys it will activate the key in the next lowest active layer.
159
160### Custom Functions
161
162At the bottom of the file we've defined a single custom function. This function defines a key that sends `KC_ESC` when pressed without modifiers and `KC_GRAVE` when modifiers are held. There are a couple pieces that need to be in place for this to work, and we will go over both of them.
163
164#### `fn_actions[]`
165
166We define the `fn_actions[]` array to point to custom functions. `F(N)` in a keymap will call element N of that array. For the Clueboard's that looks like this:
167
168 const uint16_t PROGMEM fn_actions[] = {
169 [0] = ACTION_FUNCTION(0), // Calls action_function()
170 };
171
172In this case we've instructed QMK to call the `ACTION_FUNCTION` callback, which we will define in the next section.
173
174> This `fn_actions[]` interface is mostly for backward compatibility. In QMK, you don't need to use `fn_actions[]`. You can directly use `ACTION_FUNCTION(N)` or any other action code value itself normally generated by the macro in `keymaps[][MATRIX_ROWS][MATRIX_COLS]`. N in `F(N)` can only be 0 to 31. Use of the action code directly in `keymaps` unlocks this limitation.
175
176#### `action_function()`
177
178To actually handle the keypress event we define an `action_function()`. This function will be called when the key is pressed, and then again when the key is released. We have to handle both situations within our code, as well as determining whether to send/release `KC_ESC` or `KC_GRAVE`.
179
180 void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) {
181 static uint8_t mods_pressed;
182
183 switch (id) {
184 case 0:
185 /* Handle the combined Grave/Esc key
186 */
187 mods_pressed = get_mods()&GRAVE_MODS; // Check to see what mods are pressed
188
189 if (record->event.pressed) {
190 /* The key is being pressed.
191 */
192 if (mods_pressed) {
193 add_key(KC_GRV);
194 send_keyboard_report();
195 } else {
196 add_key(KC_ESC);
197 send_keyboard_report();
198 }
199 } else {
200 /* The key is being released.
201 */
202 if (mods_pressed) {
203 del_key(KC_GRV);
204 send_keyboard_report();
205 } else {
206 del_key(KC_ESC);
207 send_keyboard_report();
208 }
209 }
210 break;
211 }
212 }
213
214# Nitty Gritty Details
215
216This should have given you a basic overview for creating your own keymap. For more details see the following resources:
217
218* https://github.com/qmk/qmk_firmware/wiki/Keycodes
219* https://github.com/qmk/qmk_firmware/wiki/FAQ-Keymap
220* https://github.com/qmk/qmk_firmware/wiki/Keymap-examples
221
222We are actively working to improve these docs. If you have suggestions for how they could be made better please [file an issue](https://github.com/qmk/qmk_firmware/issues/new)! \ No newline at end of file
diff --git a/docs/Kiibohd.asciidoc b/docs/Kiibohd.asciidoc
new file mode 100644
index 000000000..4a7ee64d8
--- /dev/null
+++ b/docs/Kiibohd.asciidoc
@@ -0,0 +1,29 @@
1== KLL vs TMK
21. **Shift** = Memontary
31. Latch = One shot
41. Lock = Toggle
5
6## KLL terminology
7### Fall-through
8When a key is undefined on a particular layer, the key
9definition on the previously stacked layer will be used. Eventually
10the key definition will be set to using the default layer. If the None
11keyword is used, then the fall-through will stop and no action will
12take place.
13###Latch
14When referring to keyboards, a key function that is only enabled
15until the release of the next keypress.
16###Lock
17When referring to keyboards, a key function that is enabled until
18that key is pressed again (e.g. Caps Lock).
19### NKRO
20N-Key Rollover is the capability to press N number of keys at the
21same time on a keyboard and have them all register on the OS simultaneously.
22### Scan Code
23Row x Column code or native protocol code used by the keyboard.
24### Shift
25When referring to keyboards, a key function that is enabled while
26that key is held.
27### USB Code
28Keyboard Press/Release codes as defined by the USB HID
29Spec. \ No newline at end of file
diff --git a/docs/Leader-Key.md b/docs/Leader-Key.md
new file mode 100644
index 000000000..bf4d5456d
--- /dev/null
+++ b/docs/Leader-Key.md
@@ -0,0 +1,37 @@
1# The Leader key: A new kind of modifier
2
3If you've ever used Vim, you know what a Leader key is. If not, you're about to discover a wonderful concept. :) Instead of hitting Alt+Shift+W for example (holding down three keys at the same time), what if you could hit a _sequence_ of keys instead? So you'd hit our special modifier (the Leader key), followed by W and then C (just a rapid succession of keys), and something would happen.
4
5That's what `KC_LEAD` does. Here's an example:
6
71. Pick a key on your keyboard you want to use as the Leader key. Assign it the keycode `KC_LEAD`. This key would be dedicated just for this -- it's a single action key, can't be used for anything else.
82. Include the line `#define LEADER_TIMEOUT 300` somewhere in your keymap.c file, probably near the top. The 300 there is 300ms -- that's how long you have for the sequence of keys following the leader. You can tweak this value for comfort, of course.
93. Within your `matrix_scan_user` function, do something like this:
10
11```
12LEADER_EXTERNS();
13
14void matrix_scan_user(void) {
15 LEADER_DICTIONARY() {
16 leading = false;
17 leader_end();
18
19 SEQ_ONE_KEY(KC_F) {
20 register_code(KC_S);
21 unregister_code(KC_S);
22 }
23 SEQ_TWO_KEYS(KC_A, KC_S) {
24 register_code(KC_H);
25 unregister_code(KC_H);
26 }
27 SEQ_THREE_KEYS(KC_A, KC_S, KC_D) {
28 register_code(KC_LGUI);
29 register_code(KC_S);
30 unregister_code(KC_S);
31 unregister_code(KC_LGUI);
32 }
33 }
34}
35```
36
37As you can see, you have three function. you can use - `SEQ_ONE_KEY` for single-key sequences (Leader followed by just one key), and `SEQ_TWO_KEYS` and `SEQ_THREE_KEYS` for longer sequences. Each of these accepts one or more keycodes as arguments. This is an important point: You can use keycodes from **any layer on your keyboard**. That layer would need to be active for the leader macro to fire, obviously. \ No newline at end of file
diff --git a/docs/License-Clarification-Details.md b/docs/License-Clarification-Details.md
new file mode 100644
index 000000000..77ee688bb
--- /dev/null
+++ b/docs/License-Clarification-Details.md
@@ -0,0 +1,1272 @@
1# Details
2
3This page contains details that are no longer relevant to the License Clarification effort.
4
5## Small Contributions
6
7Smaller contributions that don't need to sign off on the license change.
8
9Username | # Lines | Files |
10---------|---------|-------|
11@AGausmann | 3 | quantum/process_keycode/process_midi.c |
12@Chipairon | 2 | quantum/keymap_extras/keymap_spanish.h |
13@coderkun | 5 | quantum/process_keycode/process_unicode.c |
14@fernandodeperto | 3 | quantum/keymap_extras/keymap_nordic.h |
15@jeebak | 8 | quantum/audio/audio_pwm.c |
16@Keller-Laminar | 1 | quantum/keymap_extras/keymap_dvorak.h |
17kevin at letord.fr | 1 | quantum/keymap_extras/keymap_french.h |
18@ofpies | 3 | quantum/config_common.h<br>quantum/quantum.c |
19@MagicianVivi | 2 | quantum/keymap_extras/keymap_bepo.h |
20@NoahAndrews | 1 | quantum/template/template.h |
21@robertdale | 6 | quantum/process_keycode/process_music.c |
22@scott-t-wilson | 3 | quantum/rgblight.c<br>quantum/rgblight.h |
23@skullydazed | 2 | quantum/rgblight.c |
24@yoyoerx | 6 | quantum/matrix.c<br>quantum/template/template.c |
25
26# Single Author Files
27
28These are the single author files that still need to have their license clarified.
29
30* quantum/dynamic_macro.h: @Vifon
31* quantum/pincontrol.h: @wez
32* quantum/keymap_extras/keymap_canadian_multilingual.h: @DidierLoiseau
33* quantum/keymap_extras/keymap_jp.h: @h-youhei
34* quantum/keymap_extras/keymap_unicode_cyrillic.h: @kuel
35* quantum/keymap_extras/keymap_russian.h: @kuel
36
37# Multi Author Files
38
39Each file listed below has more than one author and needs to have copyright resolved. The number of lines contributed by each author is shown as determined by:
40
41```git blame <file> | cut -f 2 -d '(' | cut -f 1 -d '2' | sort | uniq -c | sed 's/^ */* /'```
42
43## quantum/config_common.h
44
45* 24 Eric Tang
46* 2 Fred Sundvik
47* 58 Jack Humbert
48* 1 ofples
49
50## quantum/keycode_config.h
51
52* 5 IBNobody
53* 20 Jack Humbert
54* 1 fredizzimo
55
56## quantum/keymap.h
57
58* 39 Jack Humbert
59* 6 Wilba6582
60* 8 fredizzimo
61
62## quantum/keymap_common.c
63
64* 1 Fred Sundvik
65* 162 Jack Humbert
66* 11 Wilba6582
67* 3 fredizzimo
68
69## quantum/light_ws2812.c
70
71* 163 Jack Humbert
72* 168 Yang Liu
73
74## quantum/light_ws2812.h
75
76* 11 Jack Humbert
77* 70 Yang Liu
78
79## quantum/matrix.c
80
81* 3 Erez Zukerman
82* 15 Eric Tang
83* 239 IBNobody
84* 152 Jack Humbert
85* 2 fredizzimo
86* 2 yoyoerx
87
88## quantum/quantum.c
89
90* 38 Erez Zukerman
91* 96 Eric Tang
92* 49 Gergely Nagy
93* 68 IBNobody
94* 4 Jack & Erez
95* 561 Jack Humbert
96* 2 Ofer Plesser
97* 14 Pavlos Vinieratos
98* 2 Priyadi Iman Nurcahyo
99* 12 Smilliam
100* 52 TerryMathews
101* 12 Wojciech Siewierski
102
103## quantum/quantum.h
104
105* 23 Erez Zukerman
106* 4 Eric Tang
107* 1 Fred Sundvik
108* 3 Gergely Nagy
109* 86 Jack Humbert
110* 2 Pavlos Vinieratos
111* 5 fredizzimo
112
113## quantum/quantum_keycodes.h
114
115* 2 Erez Zukerman
116* 2 Jack Humbert
117* 313 Wilba6582
118
119## quantum/rgblight.c
120
121* 13 Erez Zukerman
122* 5 Eric Tang
123* 39 Fred Sundvik
124* 101 Jack Humbert
125* 311 Jordi Orlando
126* 1 Scott Wilson
127* 147 Yang Liu
128* 2 skullY
129
130## quantum/rgblight.h
131
132* 3 Erez Zukerman
133* 2 Eric Tang
134* 6 Fred Sundvik
135* 12 Jack Humbert
136* 2 Scott Wilson
137* 80 Yang Liu
138
139## quantum/api/api_sysex.c
140
141* 44 Fred Sundvik
142* 13 Jack Humbert
143
144## quantum/audio/audio.c
145
146* 318 IBNobody
147* 164 Jack Humbert
148
149## quantum/audio/audio.h
150
151* 15 IBNobody
152* 76 Jack Humbert
153
154## quantum/audio/audio_pwm.c
155
156* 642 IBNobody
157* 1 Jack Humbert
158
159## quantum/audio/song_list.h
160
161* 101 IBNobody
162* 16 Jack Humbert
163* 8 JeeBak Kim
164
165## quantum/audio/voices.c
166
167* 24 IBNobody
168* 256 Jack Humbert
169
170## quantum/audio/voices.h
171
172* 3 IBNobody
173* 32 Jack Humbert
174
175## quantum/keymap_extras/keymap_bepo.h
176
177* 308 Didier Loiseau
178* 1 Jack Humbert
179* 2 Vivien Alger
180
181## quantum/keymap_extras/keymap_colemak.h
182
183* 31 Erez Zukerman
184* 44 Jack Humbert
185
186## quantum/keymap_extras/keymap_dvorak.h
187
188* 69 Jack Humbert
189* 15 Jonathan A. Kollasch
190* 1 Keller-Laminar
191
192## quantum/keymap_extras/keymap_fr_ch.h
193
194* 1 Jack Humbert
195* 1 Jonathan A. Kollasch
196* 96 Vincent Pochet
197
198## quantum/keymap_extras/keymap_french.h
199
200* 80 Jack Humbert
201* 2 Jonathan A. Kollasch
202* 1 Kévin Letord
203
204## quantum/keymap_extras/keymap_french_osx.h
205
206* 1 Jack Humbert
207* 76 Sébastien Pérochon
208
209## quantum/keymap_extras/keymap_german.h
210
211* 1 Jack Humbert
212* 1 Jonathan A. Kollasch
213* 58 Matthias Schmitt
214* 39 plgruener
215
216## quantum/keymap_extras/keymap_german_ch.h
217
218* 1 Jack Humbert
219* 1 Jonathan A. Kollasch
220* 100 heartsekai
221
222## quantum/keymap_extras/keymap_german_osx.h
223
224* 1 Jack Humbert
225* 96 Stephan Bösebeck
226
227## quantum/keymap_extras/keymap_neo2.h
228
229* 2 Jack Humbert
230* 42 Matthias Schmitt
231* 19 plgruener
232
233## quantum/keymap_extras/keymap_nordic.h
234
235* 1 Andreas Lindhé
236* 1 Erez Zukerman
237* 3 Fernando Mendonca
238* 53 Jack Humbert
239* 1 Jonathan A. Kollasch
240
241## quantum/keymap_extras/keymap_norwegian.h
242
243* 1 Andreas Lindhé
244* 40 joar
245
246## quantum/keymap_extras/keymap_plover.h
247
248* 1 Jack Humbert
249* 31 James ‘Twey’ Kay
250
251## quantum/keymap_extras/keymap_spanish.h
252
253* 59 Jack Humbert
254* 1 Jonathan A. Kollasch
255* 2 Rubén Díaz-Jorge
256
257## quantum/keymap_extras/keymap_uk.h
258
259* 34 Jack Humbert
260* 2 Jonathan A. Kollasch
261
262## quantum/process_keycode/process_midi.c
263
264* 3 Adam Gausmann
265* 65 Jack Humbert
266
267## quantum/process_keycode/process_music.c
268
269* 180 Jack Humbert
270* 6 Robert Dale
271
272## quantum/process_keycode/process_tap_dance.c
273
274* 90 Gergely Nagy
275* 38 Jack Humbert
276* 8 Pavlos Vinieratos
277
278## quantum/process_keycode/process_tap_dance.h
279
280* 22 Gergely Nagy
281* 41 Jack Humbert
282* 9 Pavlos Vinieratos
283
284## quantum/process_keycode/process_unicode.c
285
286* 176 Gergely Nagy
287* 24 Jack Humbert
288* 84 Priyadi Iman Nurcahyo
289* 5 coderkun
290
291## quantum/process_keycode/process_unicode.h
292
293* 40 Gergely Nagy
294* 117 Jack Humbert
295* 10 Priyadi Iman Nurcahyo
296
297## quantum/template/config.h
298
299* 9 Eric Tang
300* 78 IBNobody
301* 75 Jack Humbert
302
303## quantum/template/template.c
304
305* 9 Damien Pollet
306* 7 IBNobody
307* 8 Jack Humbert
308* 4 yoyoerx
309
310## quantum/template/template.h
311
312* 2 Damien Pollet
313* 16 Jack Humbert
314* 1 Noah Andrews
315
316# All Single Author Files
317
318These files have only a single author and so clarifying licensing should be pretty straightforward.
319
320* quantum/analog.c: Jack Humbert
321* quantum/analog.h: Jack Humbert
322* quantum/api.h: Jack Humbert
323* quantum/keycode_config.c: Jack Humbert
324* quantum/pincontrol.h: Wez Furlong
325* quantum/api/api_sysex.h: Jack Humbert
326* quantum/audio/luts.c: IBNobody
327* quantum/audio/luts.h: IBNobody
328* quantum/audio/musical_notes.h: Jack Humbert
329* quantum/audio/wave.h: Jack Humbert
330* quantum/keymap_extras/keymap_br_abnt2.h: Potiguar Faga
331* quantum/keymap_extras/keymap_dvp.h: Artyom Mironov
332* quantum/keymap_extras/keymap_jp.h: h-youhei
333* quantum/keymap_extras/keymap_unicode_cyrillic.h: kuel
334* quantum/process_keycode/process_chording.c: Jack Humbert
335* quantum/process_keycode/process_chording.h: Jack Humbert
336* quantum/process_keycode/process_leader.c: Jack Humbert
337* quantum/process_keycode/process_leader.h: Jack Humbert
338* quantum/process_keycode/process_midi.h: Jack Humbert
339* quantum/process_keycode/process_music.h: Jack Humbert
340* quantum/process_keycode/process_printer.c: Jack Humbert
341* quantum/process_keycode/process_printer.h: Jack Humbert
342* quantum/process_keycode/process_printer_bb.c: Jack Humbert
343* quantum/serial_link/LICENSE: Fred Sundvik
344* quantum/serial_link/protocol/frame_router.c: Fred Sundvik
345* quantum/serial_link/protocol/frame_router.h: Fred Sundvik
346* quantum/serial_link/protocol/frame_validator.c: Fred Sundvik
347* quantum/serial_link/protocol/frame_validator.h: Fred Sundvik
348* quantum/serial_link/protocol/physical.h: Fred Sundvik
349* quantum/serial_link/protocol/triple_buffered_object.c: Fred Sundvik
350* quantum/serial_link/protocol/triple_buffered_object.h: Fred Sundvik
351* quantum/serial_link/system/serial_link.c: Fred Sundvik
352* quantum/serial_link/system/serial_link.h: Fred Sundvik
353* quantum/serial_link/tests/byte_stuffer_tests.cpp: Fred Sundvik
354* quantum/serial_link/tests/frame_router_tests.cpp: Fred Sundvik
355* quantum/serial_link/tests/frame_validator_tests.cpp: Fred Sundvik
356* quantum/serial_link/tests/Makefile: Fred Sundvik
357* quantum/serial_link/tests/transport_tests.cpp: Fred Sundvik
358* quantum/serial_link/tests/triple_buffered_object_tests.cpp: Fred Sundvik
359* quantum/template/rules.mk: Fred Sundvik
360* quantum/template/keymaps/default/config.h: Jack Humbert
361* quantum/template/keymaps/default/Makefile: Jack Humbert
362* quantum/template/keymaps/default/readme.md: Jack Humbert
363* quantum/tools/eeprom_reset.hex: Jack Humbert
364* quantum/tools/readme.md: Jack Humbert
365* quantum/visualizer/lcd_backlight.c: Fred Sundvik
366* quantum/visualizer/lcd_backlight.h: Fred Sundvik
367* quantum/visualizer/led_test.h: Fred Sundvik
368* quantum/visualizer/LICENSE.md: Fred Sundvik
369* quantum/visualizer/readme.md: Fred Sundvik
370* quantum/visualizer/example_integration/callbacks.c: Fred Sundvik
371* quantum/visualizer/example_integration/gfxconf.h: Fred Sundvik
372* quantum/visualizer/example_integration/lcd_backlight_hal.c: Fred Sundvik
373* quantum/visualizer/example_integration/visualizer_user.c: Fred Sundvik
374
375# All Files
376
377## quantum/analog.c
378
379* 46e7fb2d3ccd699c0a1b1fd9d02860b1f2a44141 Mon Oct 26 14:49:46 2015 -0400 Jack Humbert
380
381## quantum/analog.h
382
383* 46e7fb2d3ccd699c0a1b1fd9d02860b1f2a44141 Mon Oct 26 14:49:46 2015 -0400 Jack Humbert
384
385## quantum/api.c
386
387* 7edac212c8ed8442bf4207e70dc8194631b2bf27 Sat Nov 26 15:37:46 2016 -0500 Jack Humbert
388* 06c64bbff3e228df542149acde64eadaf59b9b0f Mon Dec 19 11:18:18 2016 -0500 Jack Humbert
389
390## quantum/api.h
391
392* 7edac212c8ed8442bf4207e70dc8194631b2bf27 Sat Nov 26 15:37:46 2016 -0500 Jack Humbert
393
394## quantum/config_common.h
395
396* 35a81f5b8b081e1607a7c04489b01f551c3213cc Mon Oct 26 16:32:37 2015 -0400 Jack Humbert
397* aaa758f1d3f97dda39879f2b055ad2da9680adfe Mon May 23 20:42:21 2016 -0700 Eric Tang
398* 13bb6b4b7fdd2b3e419d0f89c93fb980b00eeb9b Thu Jun 23 22:18:20 2016 -0400 Jack Humbert
399* 705c775a4a433249081321cea0c2def2627817dc Sun Aug 21 22:05:55 2016 -0500 IBNobody
400* 936a26d04ffa12801031c058f27e221174e3fabd Thu Aug 25 00:15:41 2016 -0500 IBNobody
401* 6390033e8688550826a4bd3004a2e76568600657 Mon Nov 21 20:14:16 2016 -0500 Jack Humbert
402* 03d6e165bb0baf9d0093250d3c3c0771290df4d6 Fri Nov 25 09:17:40 2016 +0200 ofples
403* 0c9d66eb59add717397ba83d508577073412ce86 Fri Nov 25 09:20:41 2016 +0200 ofples
404* de1df639535817e17f1c01f07e7a629cec478526 Sat Nov 26 13:55:41 2016 +0700 Priyadi Iman Nurcahyo
405* 17acde94ee2695ab69ea336742c904d649dce17c Sat Nov 26 14:02:38 2016 +0700 Priyadi Iman Nurcahyo
406* d9d67e7b7686fdcbc7269a76d2a54c42325bdd03 Sat Nov 26 15:26:02 2016 +0700 Priyadi Iman Nurcahyo
407* f2214ce1cb6cfe7a0efabe870a2c00fb8451ee80 Sat Nov 26 15:57:48 2016 +0700 Priyadi Iman Nurcahyo
408* 6e0f994950435aa5867e7b7ce780186d881d74ac Mon Nov 28 23:51:07 2016 -0500 Jack Humbert
409* dd685eceb2045371d38f24d454f1ab08ca7416f4 Thu Dec 29 12:13:30 2016 +0200 Fred Sundvik
410
411## quantum/dynamic_macro.h
412
413* 39e8e61258b51a2c33a94dd877e983f0b1dae0c1 Thu Aug 18 01:37:13 2016 +0200 Wojciech Siewierski
414* 70f32842e5d94f14d05c1f9adcb1b1144a25a132 Sun Oct 9 12:52:39 2016 +0200 Wojciech Siewierski
415
416## quantum/keycode_config.c
417
418* db32864ce7029d758f57729cc2f75e051a28d0a2 Sat Jun 18 14:30:24 2016 -0400 Jack Humbert
419
420## quantum/keycode_config.h
421
422* db32864ce7029d758f57729cc2f75e051a28d0a2 Sat Jun 18 14:30:24 2016 -0400 Jack Humbert
423* 4d4f7684e684bec319f166121463a88cd4a62703 Fri Jul 1 17:04:53 2016 +0300 fredizzimo
424* 558f3ec1eb325caf706efc15e2fab26121aba442 Tue Sep 6 23:19:01 2016 -0500 IBNobody
425
426## quantum/keymap.h
427
428* db32864ce7029d758f57729cc2f75e051a28d0a2 Sat Jun 18 14:30:24 2016 -0400 Jack Humbert
429* 76076db72545bbb649f11394a12721f61579527f Mon Jun 20 22:36:36 2016 -0400 Jack & Erez
430* 1a0bac8bccf0e156d2f3c5f14a7214f9677b6370 Tue Jun 21 17:42:29 2016 -0400 Jack Humbert
431* 13bb6b4b7fdd2b3e419d0f89c93fb980b00eeb9b Thu Jun 23 22:18:20 2016 -0400 Jack Humbert
432* 65faab3b89245f81c50b029ca178aed175d5f330 Wed Jun 29 17:49:41 2016 -0400 Jack Humbert
433* 4d4f7684e684bec319f166121463a88cd4a62703 Fri Jul 1 17:04:53 2016 +0300 fredizzimo
434* 50c686587ed49d8079ba1b11d45ceb6a55d6cd4b Thu Jul 7 23:34:33 2016 -0400 TerryMathews
435* e692ebf86a962e90c51302e7b17a953ea2858f79 Fri Aug 12 20:38:26 2016 +0900 shela
436* 558f3ec1eb325caf706efc15e2fab26121aba442 Tue Sep 6 23:19:01 2016 -0500 IBNobody
437* 1048a588c750e27ff0f900cd6aaf670e034086d0 Fri Oct 7 17:15:11 2016 +0200 npoirey
438* 5b2e455d3b71bfb90754930d1f22d3e8ce98b927 Mon Oct 10 00:46:20 2016 +0700 Priyadi Iman Nurcahyo
439* e27a754b70434de88a37c4a572e4ca5f7730ff58 Wed Oct 12 22:18:27 2016 -0400 Jack & Erez
440* 52d7f7d2770a35adf0b0b0c803e05ae8719f539f Sun Oct 16 15:49:45 2016 -0400 Jack Humbert
441* 5f91fb413624781ac79db641549b9e08753c04b5 Sun Oct 16 16:03:33 2016 -0400 Jack Humbert
442* 33e62c080c9161a0fc921c90ed299a67fc2e1799 Sat Nov 12 20:54:37 2016 -0500 Jack Humbert
443* 01038ab54ca6c2858ea9e856c717a1129ffe4156 Fri Dec 23 21:51:11 2016 +0200 Ofer Plesser
444* d8a608f3ff4cb4d73cd57be500fd9881e230099d Thu Dec 29 18:28:48 2016 +1100 Wilba6582
445
446## quantum/keymap_common.c
447
448* 46e7fb2d3ccd699c0a1b1fd9d02860b1f2a44141 Mon Oct 26 14:49:46 2015 -0400 Jack Humbert
449* 35a81f5b8b081e1607a7c04489b01f551c3213cc Mon Oct 26 16:32:37 2015 -0400 Jack Humbert
450* cc1c32671eb1eb43a87e55ac4ffa60b15115e48d Mon Oct 26 20:02:25 2015 -0400 Jack Humbert
451* d9f08e6177271594fa573993d9f4dbc2d98c7416 Tue Oct 27 22:00:52 2015 -0400 Jack Humbert
452* 18da1e6801335b0d9515ab72e9236a01d629915f Tue Oct 27 23:06:18 2015 -0400 Jack Humbert
453* d3db8d62f6fc6a7dee43978ddc8356579b502b37 Wed Oct 28 04:07:15 2015 +0200 Erez Zukerman
454* 7d6716beded4a60cd9de24e95d8ec60694692b6f Fri Jan 29 23:27:36 2016 -0500 Jack Humbert
455* 65b41e2e59e274354e57ed36cad097823f111f1a Sun Feb 7 11:48:28 2016 +0100 Wojciech Siewierski
456* 47dcec29456106828b83fe5b85fa7a7427ddc710 Sun Jan 3 17:49:28 2016 -0500 Chris Gerber
457* 1d13aa933bbb57bf0c1fe0196981b81233c3df97 Mon Mar 28 19:45:20 2016 -0500 IBNobody
458* 3755ef5ddbdad9f25a53fee951c3eb78035b52c3 Wed Apr 13 20:57:51 2016 -0500 IBNobody
459* ee2ee7f4f049dda385a9db7dddd8e7e91681315b Fri Apr 15 13:44:07 2016 -0400 Jack Humbert
460* 9cfc74c35b940884618b0fe1e6fd25c570e1c974 Thu Apr 7 15:21:06 2016 +0300 Erez Zukerman
461* ab19ebd08a8b955775e6fa94cdf6b8d128d8b43c Sat Apr 16 18:51:58 2016 -0400 Jack Humbert
462* c83aa16f1d614c1c10f7597a67ffb9f2ae871951 Sat Apr 16 20:26:02 2016 -0400 Jack Humbert
463* 41cc35425ab32c9a9492006da8b667d01d32dfa6 Sat Apr 16 21:31:40 2016 -0400 Jack Humbert
464* 8bbd064cf52a76508589579f19595607a1f3af21 Sat Apr 16 23:07:50 2016 -0400 Jack Humbert
465* 45f10b4c4b308226fa1568277654a13853a03ab4 Sat Apr 16 22:10:18 2016 -0500 IBNobody
466* e7b9959819e709d7df2e96a94bdaf36e4e9e23e3 Sat Apr 16 23:15:40 2016 -0400 Jack Humbert
467* a67d425f4d5278595e7ab785a0f246b83fb1a09f Sun Apr 17 01:00:39 2016 -0400 Jack Humbert
468* d5b72e7bde5ede25f7d5699b50b7d9eb6f31ba92 Sun Apr 17 12:54:32 2016 -0500 IBNobody
469* 3103ea542f0039637a1a266df79a97a7a13fa6b4 Sun Apr 17 12:55:19 2016 -0500 IBNobody
470* 23231fa577f7c6c585124226a83f21a7668e62dd Sun Apr 17 14:16:03 2016 -0500 IBNobody
471* 5c98ad59606ee95b82c27bf2525383a9ec88542b Sun Apr 17 20:14:37 2016 -0500 IBNobody
472* e49712b5593b887c8af18aeb7196513f1c7b7bcf Mon Apr 18 21:01:48 2016 -0400 Jack Humbert
473* 620ac4b260fa663d12b11a0b15ac50379523c125 Thu Apr 21 19:35:18 2016 -0700 Eric Tang
474* 83e1cc241e3aabd69f6cdcd2581477d4b85bb8d3 Tue May 3 12:56:40 2016 -0500 IBNobody
475* 41b3e399b1d43db9574c6016951d92974b3d93e7 Thu May 5 21:50:51 2016 -0400 Jack Humbert
476* 1a8c0dd22d6a2255511d0db6a456315541b5815b Sun May 15 00:27:32 2016 -0400 Erez Zukerman
477* fde477a927edc6b4207a6968d44aeed021e8b300 Sun May 15 00:51:06 2016 -0400 Jack Humbert
478* b732b79b49b098dba8e14493c745075f336747d8 Wed May 18 23:47:16 2016 -0400 Jack Humbert
479* 287eb7ad148abc8fe3fb014218d71e205fd9131d Tue May 24 11:56:53 2016 -0400 Jack Humbert
480* db32864ce7029d758f57729cc2f75e051a28d0a2 Sat Jun 18 14:30:24 2016 -0400 Jack Humbert
481* 4d4f7684e684bec319f166121463a88cd4a62703 Fri Jul 1 17:04:53 2016 +0300 fredizzimo
482* 9870082a06386eba8c0c5f22da90d0256ef6244b Thu Jul 7 19:48:39 2016 +0300 Fred Sundvik
483* 8b94e26d7c3b30cc57d710a11e5651d15e8e3b20 Sun Jul 24 22:07:43 2016 -0400 Jack Humbert
484* d8a608f3ff4cb4d73cd57be500fd9881e230099d Thu Dec 29 18:28:48 2016 +1100 Wilba6582
485
486## quantum/light_ws2812.c
487
488* ba9ac457b2159097ecfd9848c5171c52e3a68260 Sun Jan 24 17:05:47 2016 -0800 Yang Liu
489* 57e08eb8badc5db2fb44d2df684f32ea48cce411 Thu Jul 7 11:33:32 2016 -0400 Jack Humbert
490* 5f91fb413624781ac79db641549b9e08753c04b5 Sun Oct 16 16:03:33 2016 -0400 Jack Humbert
491* 33e62c080c9161a0fc921c90ed299a67fc2e1799 Sat Nov 12 20:54:37 2016 -0500 Jack Humbert
492* e9f748751808de2f1e85cf7fb670d78773bd5e76 Sun Nov 13 23:02:38 2016 -0500 Jack Humbert
493* 530dd3377e4d409a7ca2fee7e47b60b735ebc0fa Tue Nov 15 13:18:10 2016 -0500 Jack Humbert
494* 3774a7fcdab5544fc787f4c200be05fcd417e31f Thu Nov 17 17:42:14 2016 -0500 Jack Humbert
495
496## quantum/light_ws2812.h
497
498* ba9ac457b2159097ecfd9848c5171c52e3a68260 Sun Jan 24 17:05:47 2016 -0800 Yang Liu
499* 5f91fb413624781ac79db641549b9e08753c04b5 Sun Oct 16 16:03:33 2016 -0400 Jack Humbert
500* e9f748751808de2f1e85cf7fb670d78773bd5e76 Sun Nov 13 23:02:38 2016 -0500 Jack Humbert
501* 664c0a036b3d7c3ed39f4a7a78d97f4a9cc7d20c Mon Nov 21 19:50:55 2016 -0500 Jack Humbert
502* 06c64bbff3e228df542149acde64eadaf59b9b0f Mon Dec 19 11:18:18 2016 -0500 Jack Humbert
503
504## quantum/matrix.c
505
506* 46e7fb2d3ccd699c0a1b1fd9d02860b1f2a44141 Mon Oct 26 14:49:46 2015 -0400 Jack Humbert
507* 35a81f5b8b081e1607a7c04489b01f551c3213cc Mon Oct 26 16:32:37 2015 -0400 Jack Humbert
508* 641859df84bf40025b2c14319d1a168a435562e2 Thu Mar 10 11:28:34 2016 -0500 yoyoerx
509* 684793360cdb08ac1e50a6d27e1796fadd527adb Mon May 9 00:36:23 2016 -0400 Jack Humbert
510* 1a8c0dd22d6a2255511d0db6a456315541b5815b Sun May 15 00:27:32 2016 -0400 Erez Zukerman
511* aaa758f1d3f97dda39879f2b055ad2da9680adfe Mon May 23 20:42:21 2016 -0700 Eric Tang
512* 1ae6011cef2230826a9e6db6c5b638677bc640b7 Tue May 24 08:44:40 2016 -0700 Eric Tang
513* de57799530d3184722532f93d156364067d8fcd5 Sat May 28 11:56:06 2016 -0400 Jack Humbert
514* 008c8d54a0a1a1e908d372d0fe9edb45a2d491e5 Fri Jun 17 22:09:59 2016 -0400 Jack Humbert
515* 13bb6b4b7fdd2b3e419d0f89c93fb980b00eeb9b Thu Jun 23 22:18:20 2016 -0400 Jack Humbert
516* 215c2119af5281072d5a6efb0308408793cadd08 Wed Jun 29 16:21:41 2016 -0400 Jack Humbert
517* 4d4f7684e684bec319f166121463a88cd4a62703 Fri Jul 1 17:04:53 2016 +0300 fredizzimo
518* 8e88d55bfd7c88cb15845e0c6415e4e892532861 Mon Jul 4 11:45:58 2016 -0400 Jack Humbert
519* 3577e26fd9916ceab58779ec6323d43da54eb3b5 Wed Jul 6 00:24:31 2016 -0400 Jack Humbert
520* 17170ba76d3c94edcf1ab263520238fdb0384774 Sun Oct 23 23:00:43 2016 -0500 IBNobody
521* 508eddf8ba8548d3f71e1c09a404839beb49f45c Fri Oct 28 14:21:38 2016 -0500 IBNobody
522* 4c6960835c0a6e29670dabdc27117d7d3c7f99f5 Fri Oct 28 16:24:20 2016 -0500 IBNobody
523* 32f88c07173b795c6981c779057dceba00aeb1cb Sat Oct 29 10:39:03 2016 -0500 IBNobody
524* f4030289744fc6dc82dd85c955070c0845813cc5 Sat Oct 29 16:12:58 2016 -0500 IBNobody
525* a06115df19a74d39b08758472b221e630c3680d3 Fri Nov 18 23:20:07 2016 -0500 Jack Humbert
526
527## quantum/pincontrol.h
528
529* 8485bb34d2e291db5b6c81f892850da1cdca37ba Sun Nov 27 22:43:11 2016 -0800 Wez Furlong
530
531## quantum/quantum.c
532
533* 1a8c0dd22d6a2255511d0db6a456315541b5815b Sun May 15 00:27:32 2016 -0400 Erez Zukerman
534* 15719f3574c6274ee0f3ec87431927c5a523aa3e Sun May 15 00:40:59 2016 -0400 Jack Humbert
535* bf5c2ccee5497523c214dae7aacdc27fdbb0f235 Sun May 15 00:47:25 2016 -0400 Jack Humbert
536* fde477a927edc6b4207a6968d44aeed021e8b300 Sun May 15 00:51:06 2016 -0400 Jack Humbert
537* 0428214b905e5f8b3bed721885957ce249ba4991 Wed May 18 23:14:00 2016 -0400 Jack Humbert
538* b732b79b49b098dba8e14493c745075f336747d8 Wed May 18 23:47:16 2016 -0400 Jack Humbert
539* 0275d444d77c9d85d2189b09d8813fb76dc4d566 Thu May 19 15:36:28 2016 +0300 purpleP
540* 287eb7ad148abc8fe3fb014218d71e205fd9131d Tue May 24 11:56:53 2016 -0400 Jack Humbert
541* 1237025963484d70bbe5185a790bec6544653ccc Tue May 24 23:27:59 2016 -0400 Erez Zukerman
542* 8bc69afc633d3e199e3ac0a5bf39e4d255f2ce4a Tue May 24 23:48:46 2016 -0400 Erez Zukerman
543* 17977a7e24ddab6ca101341b33c8fe7ad13e68f5 Sat May 28 15:22:30 2016 -0400 Jack Humbert
544* 1c9f33c06a6ef18c9c21e5841180af5ae554c34b Wed Jun 1 22:49:55 2016 -0400 Jack Humbert
545* 4635b4453335b61df11008fa907eef221db5912b Wed Jun 1 23:00:55 2016 -0400 Jack Humbert
546* 794aed37a0da5a277a07e7fa86263e0852fa9f6d Fri Jun 3 12:48:40 2016 -0700 Eric Tang
547* b70248fa2144d297504eedbc80a76dfdc40d9f1f Fri Jun 17 21:42:59 2016 -0400 Jack Humbert
548* db32864ce7029d758f57729cc2f75e051a28d0a2 Sat Jun 18 14:30:24 2016 -0400 Jack Humbert
549* 76076db72545bbb649f11394a12721f61579527f Mon Jun 20 22:36:36 2016 -0400 Jack & Erez
550* 98f0807359cfa78d25442b91ff4c5bbfc5679661 Tue Jun 21 22:55:54 2016 -0400 Jack Humbert
551* 13bb6b4b7fdd2b3e419d0f89c93fb980b00eeb9b Thu Jun 23 22:18:20 2016 -0400 Jack Humbert
552* b68b722325e1f0f68387e161365fa8e31c79b7b2 Thu Jun 23 23:14:21 2016 -0400 Jack Humbert
553* 65faab3b89245f81c50b029ca178aed175d5f330 Wed Jun 29 17:49:41 2016 -0400 Jack Humbert
554* 197f152dee834a737cd820f2a95d1ade98be4898 Wed Jun 29 18:29:20 2016 -0400 Jack Humbert
555* 60fd885a6e540509baa2193932e15caeaeb8f4c5 Wed Jun 29 18:35:29 2016 -0400 Jack Humbert
556* 4d4f7684e684bec319f166121463a88cd4a62703 Fri Jul 1 17:04:53 2016 +0300 fredizzimo
557* 1412076df68ac00f9a00173977d2826603c12ddf Mon Jul 4 19:56:08 2016 -0700 Smilliam
558* 6b0c9cc905c0985f96a80306cf5fe0d6724b28fc Mon Jul 4 19:58:26 2016 -0700 Smilliam
559* a4bf46f9b1d0a0be0cecb2cd0f0d941aa7c71bd3 Wed Jul 6 22:48:19 2016 -0400 Jack Humbert
560* 50c686587ed49d8079ba1b11d45ceb6a55d6cd4b Thu Jul 7 23:34:33 2016 -0400 TerryMathews
561* f7a86822266603b8ffd21e9f89ec1de8d4950791 Fri Jul 8 03:32:28 2016 -0400 TerryMathews
562* b12fe6abb25db1feca6a7649097a8d1cb67a063f Sun Jul 10 19:04:01 2016 -0700 Smilliam
563* a998a48673372e409991066d7d2d9ba282f79d59 Mon Jul 11 09:14:43 2016 -0400 Jack Humbert
564* a28a6e5b79c819e5f9323f62686498eca3ef399f Wed Jul 13 16:38:02 2016 +0200 Pavlos Vinieratos
565* 857aa5bef6a74f8785a7039feea5286c07bf7067 Sat Aug 13 11:14:42 2016 +0200 Gergely Nagy
566* 644c8c79271db8cf1bd934b9a80a0215585e46e7 Thu Aug 18 01:34:05 2016 +0200 Wojciech Siewierski
567* 0d28787c5cf2173d12f57b397515f91cffaa820a Thu Aug 18 11:29:53 2016 +0200 Gergely Nagy
568* e571d4656cd283ce8d793fe3dd2ac176b84b0bf5 Tue Sep 6 18:02:43 2016 -0500 IBNobody
569* 558f3ec1eb325caf706efc15e2fab26121aba442 Tue Sep 6 23:19:01 2016 -0500 IBNobody
570* 5b2e455d3b71bfb90754930d1f22d3e8ce98b927 Mon Oct 10 00:46:20 2016 +0700 Priyadi Iman Nurcahyo
571* 5f91fb413624781ac79db641549b9e08753c04b5 Sun Oct 16 16:03:33 2016 -0400 Jack Humbert
572* 33e62c080c9161a0fc921c90ed299a67fc2e1799 Sat Nov 12 20:54:37 2016 -0500 Jack Humbert
573* e9f748751808de2f1e85cf7fb670d78773bd5e76 Sun Nov 13 23:02:38 2016 -0500 Jack Humbert
574* ffa5b1e7ea6697acf9ebfcade1149031642f7870 Sat Nov 19 11:32:09 2016 +0100 Gergely Nagy
575* 74a1f00713d1407fb1d2e20d58da93919ab0c221 Sat Nov 19 18:19:18 2016 +0100 Gergely Nagy
576* 664c0a036b3d7c3ed39f4a7a78d97f4a9cc7d20c Mon Nov 21 19:50:55 2016 -0500 Jack Humbert
577* 450a8fb5b61de8166fe21eb4f57e1c00514afe32 Mon Nov 21 20:17:45 2016 -0500 Jack Humbert
578* cefa8468fb5f28bd67a0c02d371a4aef0964e20c Wed Nov 23 20:16:38 2016 -0500 Jack Humbert
579* 7edac212c8ed8442bf4207e70dc8194631b2bf27 Sat Nov 26 15:37:46 2016 -0500 Jack Humbert
580* 01038ab54ca6c2858ea9e856c717a1129ffe4156 Fri Dec 23 21:51:11 2016 +0200 Ofer Plesser
581
582## quantum/quantum.h
583
584* 1a8c0dd22d6a2255511d0db6a456315541b5815b Sun May 15 00:27:32 2016 -0400 Erez Zukerman
585* fde477a927edc6b4207a6968d44aeed021e8b300 Sun May 15 00:51:06 2016 -0400 Jack Humbert
586* 0428214b905e5f8b3bed721885957ce249ba4991 Wed May 18 23:14:00 2016 -0400 Jack Humbert
587* b732b79b49b098dba8e14493c745075f336747d8 Wed May 18 23:47:16 2016 -0400 Jack Humbert
588* 287eb7ad148abc8fe3fb014218d71e205fd9131d Tue May 24 11:56:53 2016 -0400 Jack Humbert
589* de57799530d3184722532f93d156364067d8fcd5 Sat May 28 11:56:06 2016 -0400 Jack Humbert
590* 17977a7e24ddab6ca101341b33c8fe7ad13e68f5 Sat May 28 15:22:30 2016 -0400 Jack Humbert
591* 1c9f33c06a6ef18c9c21e5841180af5ae554c34b Wed Jun 1 22:49:55 2016 -0400 Jack Humbert
592* 794aed37a0da5a277a07e7fa86263e0852fa9f6d Fri Jun 3 12:48:40 2016 -0700 Eric Tang
593* db32864ce7029d758f57729cc2f75e051a28d0a2 Sat Jun 18 14:30:24 2016 -0400 Jack Humbert
594* 98f0807359cfa78d25442b91ff4c5bbfc5679661 Tue Jun 21 22:55:54 2016 -0400 Jack Humbert
595* 13bb6b4b7fdd2b3e419d0f89c93fb980b00eeb9b Thu Jun 23 22:18:20 2016 -0400 Jack Humbert
596* 65faab3b89245f81c50b029ca178aed175d5f330 Wed Jun 29 17:49:41 2016 -0400 Jack Humbert
597* 197f152dee834a737cd820f2a95d1ade98be4898 Wed Jun 29 18:29:20 2016 -0400 Jack Humbert
598* 8125cdb88ce1201fcfd16ed4c5313222ef4c230c Wed Jun 29 18:36:52 2016 -0400 Jack Humbert
599* 4d4f7684e684bec319f166121463a88cd4a62703 Fri Jul 1 17:04:53 2016 +0300 fredizzimo
600* a28a6e5b79c819e5f9323f62686498eca3ef399f Wed Jul 13 16:38:02 2016 +0200 Pavlos Vinieratos
601* e01b4c3fd9a7b66276ffd22dcac25d569d7bb7ff Sat Jul 9 00:41:15 2016 +0300 Fred Sundvik
602* 0d28787c5cf2173d12f57b397515f91cffaa820a Thu Aug 18 11:29:53 2016 +0200 Gergely Nagy
603* 5f91fb413624781ac79db641549b9e08753c04b5 Sun Oct 16 16:03:33 2016 -0400 Jack Humbert
604* 664c0a036b3d7c3ed39f4a7a78d97f4a9cc7d20c Mon Nov 21 19:50:55 2016 -0500 Jack Humbert
605* cefa8468fb5f28bd67a0c02d371a4aef0964e20c Wed Nov 23 20:16:38 2016 -0500 Jack Humbert
606* 7edac212c8ed8442bf4207e70dc8194631b2bf27 Sat Nov 26 15:37:46 2016 -0500 Jack Humbert
607
608## quantum/quantum_keycodes.h
609
610* d8a608f3ff4cb4d73cd57be500fd9881e230099d Thu Dec 29 18:28:48 2016 +1100 Wilba6582
611* 8459bb97c1e8bcb9ccce55a1ed849d373bd7706c Wed Jan 11 21:57:41 2017 -0500 Erez Zukerman
612* 3717cf5864d6505e406b5eb75f315e6dc2392912 Thu Jan 12 07:38:07 2017 -0500 Erez Zukerman
613* 7288e5ab9c005a7b035d91e68358aa2b6a12420c Fri Jan 13 14:04:51 2017 -0500 Jack Humbert
614
615## quantum/rgblight.c
616
617* ba9ac457b2159097ecfd9848c5171c52e3a68260 Sun Jan 24 17:05:47 2016 -0800 Yang Liu
618* 2647c7cd84820a833b85e41ea86caf76b36e6ee1 Sun Jan 24 17:19:33 2016 -0800 Yang Liu
619* 97f8f378761506914b69d4fd2d5661bfcae28295 Sun Apr 10 21:16:49 2016 -0700 skullY
620* 620ac4b260fa663d12b11a0b15ac50379523c125 Thu Apr 21 19:35:18 2016 -0700 Eric Tang
621* c37d52d2137acf5739c481cc0c8917ad6fd77161 Tue Apr 26 13:48:36 2016 -0400 Jack Humbert
622* e024c11f7a849a38e478cda9fb9939a838cfa2e0 Tue Apr 26 13:50:04 2016 -0400 Jack Humbert
623* 80c87054193b9243670aeb85adefbe1aa6c0fda0 Tue Jun 21 12:53:21 2016 -0400 Jack Humbert
624* 57e08eb8badc5db2fb44d2df684f32ea48cce411 Thu Jul 7 11:33:32 2016 -0400 Jack Humbert
625* 3a860c4bc210857f03ef9fae5043d6d5736d140d Tue Jul 26 14:43:45 2016 -0500 Jordi Orlando
626* 899c88cd8bf024792760fcf3ee8be6fed13fb315 Tue Jul 26 14:46:30 2016 -0500 Jordi Orlando
627* ea2d2f5d5841791745c93ef27cd1528a7fd69c97 Tue Jul 26 15:31:22 2016 -0500 Jordi Orlando
628* b8679bbe045a2285d6ab6bbc420121b26f516b9a Wed Oct 5 20:41:33 2016 -0400 Jack Humbert
629* 9b0e21f87f446935f29254bb623c2cfe29472b6e Sun Oct 9 19:26:16 2016 +0300 Fred Sundvik
630* 92a3a96849aee708753a6623b0db228023e3baf8 Sun Oct 9 19:47:05 2016 +0300 Fred Sundvik
631* ffae9d84c5279b463da112ee15568d536649b819 Sun Oct 9 19:53:41 2016 +0300 Fred Sundvik
632* 03b6fcdaf034392e27752a9bd2c11de06a166e39 Mon Oct 10 00:20:24 2016 -0400 Jack Humbert
633* 33e62c080c9161a0fc921c90ed299a67fc2e1799 Sat Nov 12 20:54:37 2016 -0500 Jack Humbert
634* e9f748751808de2f1e85cf7fb670d78773bd5e76 Sun Nov 13 23:02:38 2016 -0500 Jack Humbert
635* 3774a7fcdab5544fc787f4c200be05fcd417e31f Thu Nov 17 17:42:14 2016 -0500 Jack Humbert
636* 285c5a91f23e972d9c579184283443111186329d Thu Nov 17 20:56:36 2016 -0500 Erez Zukerman
637* 2e23689b8e3222982082c1f5a4f8ce7686f9658b Wed Nov 23 18:52:02 2016 -0500 Jack Humbert
638* 4094544d41450617bc21ab58646603b8964eae0e Tue Nov 29 09:23:16 2016 -0500 Erez Zukerman
639* cae269b08b642b07ee06dec7120a784a3c3d7aab Fri Dec 23 10:29:19 2016 -0500 Jack Humbert
640* 748181dccddb8c9fa52a776f4fcd904ddca9aa31 Wed Dec 28 16:29:02 2016 -0500 Scott Wilson
641* b8e74c378b1f118178edf0634d9fa7f0f9dd5e08 Thu Dec 29 09:32:02 2016 -0500 Scott Wilson
642
643## quantum/rgblight.h
644
645* ba9ac457b2159097ecfd9848c5171c52e3a68260 Sun Jan 24 17:05:47 2016 -0800 Yang Liu
646* 2647c7cd84820a833b85e41ea86caf76b36e6ee1 Sun Jan 24 17:19:33 2016 -0800 Yang Liu
647* 620ac4b260fa663d12b11a0b15ac50379523c125 Thu Apr 21 19:35:18 2016 -0700 Eric Tang
648* 80c87054193b9243670aeb85adefbe1aa6c0fda0 Tue Jun 21 12:53:21 2016 -0400 Jack Humbert
649* 57e08eb8badc5db2fb44d2df684f32ea48cce411 Thu Jul 7 11:33:32 2016 -0400 Jack Humbert
650* b8679bbe045a2285d6ab6bbc420121b26f516b9a Wed Oct 5 20:41:33 2016 -0400 Jack Humbert
651* 9b0e21f87f446935f29254bb623c2cfe29472b6e Sun Oct 9 19:26:16 2016 +0300 Fred Sundvik
652* 33e62c080c9161a0fc921c90ed299a67fc2e1799 Sat Nov 12 20:54:37 2016 -0500 Jack Humbert
653* e9f748751808de2f1e85cf7fb670d78773bd5e76 Sun Nov 13 23:02:38 2016 -0500 Jack Humbert
654* 3774a7fcdab5544fc787f4c200be05fcd417e31f Thu Nov 17 17:42:14 2016 -0500 Jack Humbert
655* 285c5a91f23e972d9c579184283443111186329d Thu Nov 17 20:56:36 2016 -0500 Erez Zukerman
656* 2e23689b8e3222982082c1f5a4f8ce7686f9658b Wed Nov 23 18:52:02 2016 -0500 Jack Humbert
657* 4094544d41450617bc21ab58646603b8964eae0e Tue Nov 29 09:23:16 2016 -0500 Erez Zukerman
658* cae269b08b642b07ee06dec7120a784a3c3d7aab Fri Dec 23 10:29:19 2016 -0500 Jack Humbert
659* 748181dccddb8c9fa52a776f4fcd904ddca9aa31 Wed Dec 28 16:29:02 2016 -0500 Scott Wilson
660
661## quantum/variable_trace.c
662
663* f519b94be7086852f2afe4ec248786b47968f7ff Sun Nov 6 21:57:26 2016 +0200 Fred Sundvik
664* a377017c95b826d83ac7a46ef176d39a58294b44 Sun Nov 6 22:11:24 2016 +0200 Fred Sundvik
665
666## quantum/variable_trace.h
667
668* a377017c95b826d83ac7a46ef176d39a58294b44 Sun Nov 6 22:11:24 2016 +0200 Fred Sundvik
669* 0ba3e523a7c124e4ce54dfd043dc32e72ad3233b Sun Nov 6 22:44:43 2016 +0200 Fred Sundvik
670
671## quantum/version.h
672
673* None None None
674
675## quantum/api/api_sysex.c
676
677* 7edac212c8ed8442bf4207e70dc8194631b2bf27 Sat Nov 26 15:37:46 2016 -0500 Jack Humbert
678* dd685eceb2045371d38f24d454f1ab08ca7416f4 Thu Dec 29 12:13:30 2016 +0200 Fred Sundvik
679
680## quantum/api/api_sysex.h
681
682* 7edac212c8ed8442bf4207e70dc8194631b2bf27 Sat Nov 26 15:37:46 2016 -0500 Jack Humbert
683
684## quantum/audio/audio.c
685
686* 73228f5e5d1d4cd31a46e5e93aa893a8f727e3b9 Thu Apr 21 00:37:45 2016 -0400 Jack Humbert
687* 620ac4b260fa663d12b11a0b15ac50379523c125 Thu Apr 21 19:35:18 2016 -0700 Eric Tang
688* 83e1cc241e3aabd69f6cdcd2581477d4b85bb8d3 Tue May 3 12:56:40 2016 -0500 IBNobody
689* 3f02637f4dd765803671c2611191beb096d60b36 Mon May 9 13:17:15 2016 -0400 Jack Humbert
690* 15719f3574c6274ee0f3ec87431927c5a523aa3e Sun May 15 00:40:59 2016 -0400 Jack Humbert
691* 0428214b905e5f8b3bed721885957ce249ba4991 Wed May 18 23:14:00 2016 -0400 Jack Humbert
692* 287eb7ad148abc8fe3fb014218d71e205fd9131d Tue May 24 11:56:53 2016 -0400 Jack Humbert
693* db32864ce7029d758f57729cc2f75e051a28d0a2 Sat Jun 18 14:30:24 2016 -0400 Jack Humbert
694* 06c64bbff3e228df542149acde64eadaf59b9b0f Mon Dec 19 11:18:18 2016 -0500 Jack Humbert
695
696## quantum/audio/audio.h
697
698* 73228f5e5d1d4cd31a46e5e93aa893a8f727e3b9 Thu Apr 21 00:37:45 2016 -0400 Jack Humbert
699* 082a0f313d8c842a5de7bae30ec8a3597e35880b Fri Apr 22 00:01:38 2016 -0500 IBNobody
700* 83e1cc241e3aabd69f6cdcd2581477d4b85bb8d3 Tue May 3 12:56:40 2016 -0500 IBNobody
701* 3f02637f4dd765803671c2611191beb096d60b36 Mon May 9 13:17:15 2016 -0400 Jack Humbert
702* 15719f3574c6274ee0f3ec87431927c5a523aa3e Sun May 15 00:40:59 2016 -0400 Jack Humbert
703* 0428214b905e5f8b3bed721885957ce249ba4991 Wed May 18 23:14:00 2016 -0400 Jack Humbert
704* 287eb7ad148abc8fe3fb014218d71e205fd9131d Tue May 24 11:56:53 2016 -0400 Jack Humbert
705* 215c2119af5281072d5a6efb0308408793cadd08 Wed Jun 29 16:21:41 2016 -0400 Jack Humbert
706
707## quantum/audio/audio_pwm.c
708
709* 83e1cc241e3aabd69f6cdcd2581477d4b85bb8d3 Tue May 3 12:56:40 2016 -0500 IBNobody
710* db32864ce7029d758f57729cc2f75e051a28d0a2 Sat Jun 18 14:30:24 2016 -0400 Jack Humbert
711
712## quantum/audio/luts.c
713
714* 83e1cc241e3aabd69f6cdcd2581477d4b85bb8d3 Tue May 3 12:56:40 2016 -0500 IBNobody
715
716## quantum/audio/luts.h
717
718* 83e1cc241e3aabd69f6cdcd2581477d4b85bb8d3 Tue May 3 12:56:40 2016 -0500 IBNobody
719
720## quantum/audio/musical_notes.h
721
722* 73228f5e5d1d4cd31a46e5e93aa893a8f727e3b9 Thu Apr 21 00:37:45 2016 -0400 Jack Humbert
723
724## quantum/audio/song_list.h
725
726* 73228f5e5d1d4cd31a46e5e93aa893a8f727e3b9 Thu Apr 21 00:37:45 2016 -0400 Jack Humbert
727* 7d0345ef25b5e1924f1e98c76d78607778e0b17d Sat Jul 30 01:52:33 2016 -0700 JeeBak Kim
728
729## quantum/audio/voices.c
730
731* 73228f5e5d1d4cd31a46e5e93aa893a8f727e3b9 Thu Apr 21 00:37:45 2016 -0400 Jack Humbert
732* e89b806b850ad1b5484176664288b71b0131683e Thu Apr 21 00:40:00 2016 -0400 Jack Humbert
733* 9828aba2a12f03fccbc1095bc8e4918ae58fa31b Thu Apr 21 18:14:25 2016 -0400 Jack Humbert
734* 7b3f212500210ae85063b043952b5b3ef6988ad6 Thu Apr 21 23:10:47 2016 -0400 Jack Humbert
735* 082a0f313d8c842a5de7bae30ec8a3597e35880b Fri Apr 22 00:01:38 2016 -0500 IBNobody
736* b1900c8dde2a68e87aaabd84280a99bf6658ea9f Fri Apr 22 01:02:50 2016 -0400 Jack Humbert
737* a8086126fecbdce1c192036cf1011329d406949d Fri Apr 22 01:04:13 2016 -0400 Jack Humbert
738* a718c53fe77f0b3b4361c850531eee5f23e3e13d Fri Apr 22 11:58:29 2016 -0400 Jack Humbert
739* e7b6bb641c0636c01e3781fe51865fdb20014eeb Mon Apr 25 00:59:47 2016 -0400 Jack Humbert
740* 140b97a1cd226432a8ec647004943698e3d87f0b Tue Apr 26 01:16:47 2016 -0400 Jack Humbert
741* 66e0323881a5a3da65e14daeec41a1e9cfbda431 Fri Apr 29 12:42:55 2016 -0400 Jack Humbert
742* 83e1cc241e3aabd69f6cdcd2581477d4b85bb8d3 Tue May 3 12:56:40 2016 -0500 IBNobody
743* 0edfe55bfe4afd037918ff73e49552a28f39a5ca Mon Dec 12 15:39:07 2016 -0500 Jack Humbert
744* 06c64bbff3e228df542149acde64eadaf59b9b0f Mon Dec 19 11:18:18 2016 -0500 Jack Humbert
745* 438a5d685bb7b726ff59109ce4229eca6303cd8e Tue Dec 20 19:38:22 2016 -0500 Jack Humbert
746* 2fa36e38cf28f07ad4a4d74722486921fa7b8706 Wed Dec 21 00:22:32 2016 -0500 Jack Humbert
747
748## quantum/audio/voices.h
749
750* 73228f5e5d1d4cd31a46e5e93aa893a8f727e3b9 Thu Apr 21 00:37:45 2016 -0400 Jack Humbert
751* e89b806b850ad1b5484176664288b71b0131683e Thu Apr 21 00:40:00 2016 -0400 Jack Humbert
752* 9828aba2a12f03fccbc1095bc8e4918ae58fa31b Thu Apr 21 18:14:25 2016 -0400 Jack Humbert
753* 7b3f212500210ae85063b043952b5b3ef6988ad6 Thu Apr 21 23:10:47 2016 -0400 Jack Humbert
754* 082a0f313d8c842a5de7bae30ec8a3597e35880b Fri Apr 22 00:01:38 2016 -0500 IBNobody
755* b1900c8dde2a68e87aaabd84280a99bf6658ea9f Fri Apr 22 01:02:50 2016 -0400 Jack Humbert
756* a8086126fecbdce1c192036cf1011329d406949d Fri Apr 22 01:04:13 2016 -0400 Jack Humbert
757* a718c53fe77f0b3b4361c850531eee5f23e3e13d Fri Apr 22 11:58:29 2016 -0400 Jack Humbert
758* e7b6bb641c0636c01e3781fe51865fdb20014eeb Mon Apr 25 00:59:47 2016 -0400 Jack Humbert
759* 140b97a1cd226432a8ec647004943698e3d87f0b Tue Apr 26 01:16:47 2016 -0400 Jack Humbert
760* 83e1cc241e3aabd69f6cdcd2581477d4b85bb8d3 Tue May 3 12:56:40 2016 -0500 IBNobody
761* 0edfe55bfe4afd037918ff73e49552a28f39a5ca Mon Dec 12 15:39:07 2016 -0500 Jack Humbert
762* 06c64bbff3e228df542149acde64eadaf59b9b0f Mon Dec 19 11:18:18 2016 -0500 Jack Humbert
763* 438a5d685bb7b726ff59109ce4229eca6303cd8e Tue Dec 20 19:38:22 2016 -0500 Jack Humbert
764
765## quantum/audio/wave.h
766
767* 73228f5e5d1d4cd31a46e5e93aa893a8f727e3b9 Thu Apr 21 00:37:45 2016 -0400 Jack Humbert
768
769## quantum/keymap_extras/keymap_bepo.h
770
771* 7c33f8493fb4ecd664390232c8de856158f9fcae Sun Feb 7 19:29:49 2016 +0100 Didier Loiseau
772* db32864ce7029d758f57729cc2f75e051a28d0a2 Sat Jun 18 14:30:24 2016 -0400 Jack Humbert
773* 7b4d30ee50aa534a973473c715924964991739f0 Sun Jul 24 10:57:49 2016 +0200 Vivien Alger
774
775## quantum/keymap_extras/keymap_br_abnt2.h
776
777* 7aa31ad338325477199f752ac3e344a6ab9b27d0 Tue Nov 8 13:32:04 2016 -0200 Potiguar Faga
778
779## quantum/keymap_extras/keymap_canadian_multilingual.h
780
781* a7cef2ca0a2322448d02008337013936b1d550ec Wed Feb 17 21:45:38 2016 +0100 Didier Loiseau
782* 7840e69bfaee1d67de273c235b532d6f20c905a9 Thu Feb 18 00:47:23 2016 +0100 Didier Loiseau
783* 911222892ecb1c01551e0abdfbe98ed1dbf82139 Fri Feb 26 00:55:39 2016 +0100 Didier Loiseau
784* 3a91ddb0745ae0f52007984793ea1b48abb2098c Tue Mar 1 22:59:38 2016 +0100 Didier Loiseau
785* aa5eb49edd993e2abe3adf814e030fcdda4a3596 Wed Mar 2 00:22:41 2016 +0100 Didier Loiseau
786* 1aeb59335f2fe67613df25308a630ca453975ac0 Sun Sep 11 02:19:55 2016 +0200 Didier Loiseau
787
788## quantum/keymap_extras/keymap_colemak.h
789
790* 46e7fb2d3ccd699c0a1b1fd9d02860b1f2a44141 Mon Oct 26 14:49:46 2015 -0400 Jack Humbert
791* 39915b1748cefd99f841fa03b7f6e7c20439fbcf Thu Oct 29 15:12:51 2015 -0400 Jack Humbert
792* 3c683aa9f23288ddada760fb49abcc5fa7324f5e Fri Feb 5 16:28:24 2016 +0200 Erez Zukerman
793* db32864ce7029d758f57729cc2f75e051a28d0a2 Sat Jun 18 14:30:24 2016 -0400 Jack Humbert
794
795## quantum/keymap_extras/keymap_dvorak.h
796
797* 46e7fb2d3ccd699c0a1b1fd9d02860b1f2a44141 Mon Oct 26 14:49:46 2015 -0400 Jack Humbert
798* 233af3a41c69d456583bfcfd897233b9c117caa6 Mon Feb 22 13:06:26 2016 -0500 Keller-Laminar
799* db32864ce7029d758f57729cc2f75e051a28d0a2 Sat Jun 18 14:30:24 2016 -0400 Jack Humbert
800* 4278d8861526ed285d9d00badcdc8c121454be60 Thu Jul 14 11:32:43 2016 -0500 Jonathan A. Kollasch
801* f0021c9cb9e30d47d5a3ab5ec75e59e626c3d244 Mon Sep 19 14:25:44 2016 -0500 Jonathan A. Kollasch
802
803## quantum/keymap_extras/keymap_dvp.h
804
805* 6e003b1e3fa844cfde0069004e755aae7a9539f3 Wed Oct 19 23:45:55 2016 +0300 Artyom Mironov
806
807## quantum/keymap_extras/keymap_fr_ch.h
808
809* 1934e8a270820ff6f08c95f4399b26162623e4e0 Sat Feb 20 14:01:28 2016 +0100 Vincent Pochet
810* db32864ce7029d758f57729cc2f75e051a28d0a2 Sat Jun 18 14:30:24 2016 -0400 Jack Humbert
811* 25938a09a6bfb2624bc96841b53897eda532e293 Thu Jul 14 11:13:35 2016 -0500 Jonathan A. Kollasch
812
813## quantum/keymap_extras/keymap_french.h
814
815* 46e7fb2d3ccd699c0a1b1fd9d02860b1f2a44141 Mon Oct 26 14:49:46 2015 -0400 Jack Humbert
816* 4a19cc054dc7aeb0a35613d608143bf51fa791cc Sat Feb 27 15:22:54 2016 +0100 Kévin Letord
817* db32864ce7029d758f57729cc2f75e051a28d0a2 Sat Jun 18 14:30:24 2016 -0400 Jack Humbert
818* 010dd1308420e25b327fa4d5d6b13f67a849408b Thu Jul 14 11:04:25 2016 -0500 Jonathan A. Kollasch
819* 25938a09a6bfb2624bc96841b53897eda532e293 Thu Jul 14 11:13:35 2016 -0500 Jonathan A. Kollasch
820
821## quantum/keymap_extras/keymap_french_osx.h
822
823* 48eff6dd89672c6c71afd8a3d1cdc5d35b0bf768 Tue Jan 5 10:49:36 2016 +0100 Sébastien Pérochon
824* db32864ce7029d758f57729cc2f75e051a28d0a2 Sat Jun 18 14:30:24 2016 -0400 Jack Humbert
825
826## quantum/keymap_extras/keymap_german.h
827
828* 3dbcad51d1217b32c3c17917c2646fa7a9a9165b Sat Dec 19 01:22:12 2015 +0100 Matthias Schmitt
829* da09312dd56e3b085fb217cc7cc2abf06f401992 Tue Jan 19 20:04:08 2016 +0100 plgruener
830* db32864ce7029d758f57729cc2f75e051a28d0a2 Sat Jun 18 14:30:24 2016 -0400 Jack Humbert
831* 25938a09a6bfb2624bc96841b53897eda532e293 Thu Jul 14 11:13:35 2016 -0500 Jonathan A. Kollasch
832
833## quantum/keymap_extras/keymap_german_ch.h
834
835* 465aabe11dbd673fb4c68ecbffbfb062273def1a Wed May 18 21:22:04 2016 +0200 heartsekai
836* db32864ce7029d758f57729cc2f75e051a28d0a2 Sat Jun 18 14:30:24 2016 -0400 Jack Humbert
837* 25938a09a6bfb2624bc96841b53897eda532e293 Thu Jul 14 11:13:35 2016 -0500 Jonathan A. Kollasch
838
839## quantum/keymap_extras/keymap_german_osx.h
840
841* e44c30f2030dd4c481a6e38e9392f147be7b0ae2 Fri Jan 15 15:55:00 2016 +0100 Stephan Bösebeck
842* bfc6eca44aeb3ad22a1c37206005dcfe617431cd Mon Mar 14 13:35:34 2016 +0100 Daniel Kriesten
843* dbd4ab3457dd001ab4bbcec14315047b815f7dfe Thu Mar 31 23:15:59 2016 +0200 Stephan Bösebeck
844* 6d40f7c5060f608068b0c4fc90871687c70b4f05 Sun Apr 17 22:19:47 2016 +0200 Stephan Bösebeck
845* db32864ce7029d758f57729cc2f75e051a28d0a2 Sat Jun 18 14:30:24 2016 -0400 Jack Humbert
846* 1a0bac8bccf0e156d2f3c5f14a7214f9677b6370 Tue Jun 21 17:42:29 2016 -0400 Jack Humbert
847
848## quantum/keymap_extras/keymap_jp.h
849
850* 2febf9b9f7d610fc2eca666a842272cb90a87919 Tue Nov 22 20:40:12 2016 +0900 h-youhei
851
852## quantum/keymap_extras/keymap_neo2.h
853
854* 7b7870bae178c80138be5c587238fdedeb837df9 Sat Dec 19 01:41:23 2015 +0100 Matthias Schmitt
855* 4ca43225011ac94bd0a7976baf7f84059274dfbf Fri Feb 19 21:04:30 2016 +0100 plgruener
856* db32864ce7029d758f57729cc2f75e051a28d0a2 Sat Jun 18 14:30:24 2016 -0400 Jack Humbert
857* e329729d3a11b5798f4e2b9f65ac9bc2dcc84a9e Tue Jun 21 18:32:28 2016 -0400 Jack Humbert
858
859## quantum/keymap_extras/keymap_nordic.h
860
861* 46e7fb2d3ccd699c0a1b1fd9d02860b1f2a44141 Mon Oct 26 14:49:46 2015 -0400 Jack Humbert
862* c29ad125a7a58d5a2ced0a619165204136da9019 Fri Feb 5 01:50:54 2016 +0100 Fernando Mendonca
863* db32864ce7029d758f57729cc2f75e051a28d0a2 Sat Jun 18 14:30:24 2016 -0400 Jack Humbert
864* 25938a09a6bfb2624bc96841b53897eda532e293 Thu Jul 14 11:13:35 2016 -0500 Jonathan A. Kollasch
865* 283ebbe14298fe75128765fa42c46f02534fb761 Mon Jul 25 12:50:27 2016 +0200 Andreas Lindhé
866* 555e41d9e5f8d393637898e2c77c64066b648245 Fri Dec 2 13:03:51 2016 -0500 Erez Zukerman
867
868## quantum/keymap_extras/keymap_norwegian.h
869
870* e329729d3a11b5798f4e2b9f65ac9bc2dcc84a9e Tue Jun 21 18:32:28 2016 -0400 Jack Humbert
871* b6fa762234fb5a3590d0ff91ffdf5aa3ae322c8f Mon Jul 25 11:29:54 2016 +0200 Andreas Lindhé
872
873## quantum/keymap_extras/keymap_plover.h
874
875* 7ccfaf750d08bdb3a25ef2869cac251b7cd4d3ad Sat Apr 23 18:49:10 2016 +0100 James ‘Twey’ Kay
876* db32864ce7029d758f57729cc2f75e051a28d0a2 Sat Jun 18 14:30:24 2016 -0400 Jack Humbert
877
878## quantum/keymap_extras/keymap_russian.h
879
880* c5ee24a6c3ea39e9725dfc276c92d5bce726ca78 Sun Aug 7 11:01:12 2016 -0500 kuel
881* 2a0121a78643b1dc774d82352f8c9e246010803e Sun Aug 7 11:07:38 2016 -0500 kuel
882
883## quantum/keymap_extras/keymap_spanish.h
884
885* 46e7fb2d3ccd699c0a1b1fd9d02860b1f2a44141 Mon Oct 26 14:49:46 2015 -0400 Jack Humbert
886* db32864ce7029d758f57729cc2f75e051a28d0a2 Sat Jun 18 14:30:24 2016 -0400 Jack Humbert
887* 132c04746910f7230b63ed33717c4ed65599ed1b Sat Jul 2 10:26:04 2016 +0200 Rubén Díaz-Jorge
888* 25938a09a6bfb2624bc96841b53897eda532e293 Thu Jul 14 11:13:35 2016 -0500 Jonathan A. Kollasch
889
890## quantum/keymap_extras/keymap_uk.h
891
892* 46e7fb2d3ccd699c0a1b1fd9d02860b1f2a44141 Mon Oct 26 14:49:46 2015 -0400 Jack Humbert
893* db32864ce7029d758f57729cc2f75e051a28d0a2 Sat Jun 18 14:30:24 2016 -0400 Jack Humbert
894* 010dd1308420e25b327fa4d5d6b13f67a849408b Thu Jul 14 11:04:25 2016 -0500 Jonathan A. Kollasch
895* 25938a09a6bfb2624bc96841b53897eda532e293 Thu Jul 14 11:13:35 2016 -0500 Jonathan A. Kollasch
896
897## quantum/keymap_extras/keymap_unicode_cyrillic.h
898
899* c5ee24a6c3ea39e9725dfc276c92d5bce726ca78 Sun Aug 7 11:01:12 2016 -0500 kuel
900
901## quantum/process_keycode/process_chording.c
902
903* 65faab3b89245f81c50b029ca178aed175d5f330 Wed Jun 29 17:49:41 2016 -0400 Jack Humbert
904
905## quantum/process_keycode/process_chording.h
906
907* 65faab3b89245f81c50b029ca178aed175d5f330 Wed Jun 29 17:49:41 2016 -0400 Jack Humbert
908
909## quantum/process_keycode/process_leader.c
910
911* 65faab3b89245f81c50b029ca178aed175d5f330 Wed Jun 29 17:49:41 2016 -0400 Jack Humbert
912
913## quantum/process_keycode/process_leader.h
914
915* 65faab3b89245f81c50b029ca178aed175d5f330 Wed Jun 29 17:49:41 2016 -0400 Jack Humbert
916
917## quantum/process_keycode/process_midi.c
918
919* 65faab3b89245f81c50b029ca178aed175d5f330 Wed Jun 29 17:49:41 2016 -0400 Jack Humbert
920* 8b94e26d7c3b30cc57d710a11e5651d15e8e3b20 Sun Jul 24 22:07:43 2016 -0400 Jack Humbert
921* 8d99140d1b80bf497b2198138d3f481e93b0fbab Thu Sep 29 14:46:10 2016 -0500 Adam Gausmann
922
923## quantum/process_keycode/process_midi.h
924
925* 65faab3b89245f81c50b029ca178aed175d5f330 Wed Jun 29 17:49:41 2016 -0400 Jack Humbert
926
927## quantum/process_keycode/process_music.c
928
929* 65faab3b89245f81c50b029ca178aed175d5f330 Wed Jun 29 17:49:41 2016 -0400 Jack Humbert
930* 3ea738e450e9326b0d3ee4192da881cffb4c13c1 Sun Jul 24 10:00:39 2016 -0400 Robert Dale
931* ae95834f5af7404c04e6fe3446019046278d814b Mon Dec 12 16:06:41 2016 -0500 Jack Humbert
932* 273faa4d9cd5a84207548f83ba550c9efee90933 Fri Dec 23 20:59:00 2016 -0500 Jack Humbert
933* 841d7e6a1d74b1fc45575ed551132ec27353ebf3 Mon Jan 23 13:55:24 2017 -0500 Jack Humbert
934
935## quantum/process_keycode/process_music.h
936
937* 65faab3b89245f81c50b029ca178aed175d5f330 Wed Jun 29 17:49:41 2016 -0400 Jack Humbert
938
939## quantum/process_keycode/process_printer.c
940
941* a889b899e2cf52b3b7807d8a7ad39f12e0761a10 Sun Oct 16 16:03:56 2016 -0400 Jack Humbert
942
943## quantum/process_keycode/process_printer.h
944
945* a889b899e2cf52b3b7807d8a7ad39f12e0761a10 Sun Oct 16 16:03:56 2016 -0400 Jack Humbert
946
947## quantum/process_keycode/process_printer_bb.c
948
949* a889b899e2cf52b3b7807d8a7ad39f12e0761a10 Sun Oct 16 16:03:56 2016 -0400 Jack Humbert
950
951## quantum/process_keycode/process_tap_dance.c
952
953* 65faab3b89245f81c50b029ca178aed175d5f330 Wed Jun 29 17:49:41 2016 -0400 Jack Humbert
954* 1a7e954f9fc4d250ba1ae46e3bfc168aca2b5cce Wed Jul 13 00:20:28 2016 +0200 Pavlos Vinieratos
955* f3b56701ed7e6c622dc48e429780124ba5fde172 Wed Jul 13 16:47:45 2016 +0200 Pavlos Vinieratos
956* d3091faf363afc8fef73ddf4948f872439b0e827 Fri Jul 15 23:54:08 2016 +0200 Pavlos Vinieratos
957* dda2fd6ff3984ed96f8275c661b47a0484f9ee18 Mon Jul 18 23:34:02 2016 +0200 Pavlos Vinieratos
958* d5daec2a58019ebdb9804787e0f786e4fc3c05b9 Tue Jul 19 18:00:59 2016 +0200 Pavlos Vinieratos
959* 4e6a8627d8ebd7af942f68142d1a959d60361d90 Tue Jul 19 18:02:13 2016 +0200 Pavlos Vinieratos
960* 70e42489dec375e558d8e81ed5ebfb69b4f3dbd9 Wed Jul 20 10:22:52 2016 +0200 Gergely Nagy
961* ce8cc9219fca5dde077f1142d03d011b38d27479 Wed Jul 20 11:34:45 2016 +0200 Gergely Nagy
962* 44e16ffc80620b61eaa17aedcfdd8233d9c99bd9 Wed Jul 20 11:49:59 2016 +0200 Gergely Nagy
963* b21e8b97acb722bfa7b85831cfd010716ed77962 Wed Jul 27 08:42:09 2016 +0200 Gergely Nagy
964* d78058cc75a9b05a6885991506d5f807ebb2a9f9 Wed Aug 17 10:28:08 2016 +0200 Gergely Nagy
965* 29f64d7a93d941167c6c6e95f893ab84586b2205 Wed Aug 17 13:04:50 2016 +0200 Gergely Nagy
966* 0d28787c5cf2173d12f57b397515f91cffaa820a Thu Aug 18 11:29:53 2016 +0200 Gergely Nagy
967* acda2b793f69c6e0e9b9667e9ebe8a0325eb5ecd Thu Sep 1 08:32:47 2016 +0200 Gergely Nagy
968* e1f131db8e59c6ed3471906d3a62457d593f51af Wed Sep 21 10:11:42 2016 +0200 Pavlos Vinieratos
969
970## quantum/process_keycode/process_tap_dance.h
971
972* 65faab3b89245f81c50b029ca178aed175d5f330 Wed Jun 29 17:49:41 2016 -0400 Jack Humbert
973* f3b56701ed7e6c622dc48e429780124ba5fde172 Wed Jul 13 16:47:45 2016 +0200 Pavlos Vinieratos
974* d3091faf363afc8fef73ddf4948f872439b0e827 Fri Jul 15 23:54:08 2016 +0200 Pavlos Vinieratos
975* 70e42489dec375e558d8e81ed5ebfb69b4f3dbd9 Wed Jul 20 10:22:52 2016 +0200 Gergely Nagy
976* ce8cc9219fca5dde077f1142d03d011b38d27479 Wed Jul 20 11:34:45 2016 +0200 Gergely Nagy
977* b21e8b97acb722bfa7b85831cfd010716ed77962 Wed Jul 27 08:42:09 2016 +0200 Gergely Nagy
978* 29f64d7a93d941167c6c6e95f893ab84586b2205 Wed Aug 17 13:04:50 2016 +0200 Gergely Nagy
979* 0edc82f0300924394324e2f3c4d2f8f0008439db Wed Sep 21 11:29:34 2016 +0200 Pavlos Vinieratos
980* cda4b534fa4921c2d8f9884aa6a144333e7b07c4 Wed Sep 21 11:29:43 2016 +0200 Pavlos Vinieratos
981
982## quantum/process_keycode/process_unicode.c
983
984* 65faab3b89245f81c50b029ca178aed175d5f330 Wed Jun 29 17:49:41 2016 -0400 Jack Humbert
985* 8bdf745909bc2581491acce11225f56a85bc8f24 Sat Aug 13 10:33:47 2016 +0200 Gergely Nagy
986* 63e5782d2cdf0ee282ad434c773463d9da9db6b3 Sat Aug 13 10:43:22 2016 +0200 Gergely Nagy
987* fa06a163607e8c6c4bd0968c2de96a9a298b777c Sat Aug 13 10:46:38 2016 +0200 Gergely Nagy
988* 0b6861827faea747345ea38202d64c8004ab128c Sat Aug 13 11:11:22 2016 +0200 Gergely Nagy
989* 857aa5bef6a74f8785a7039feea5286c07bf7067 Sat Aug 13 11:14:42 2016 +0200 Gergely Nagy
990* 234dd276cf03be6fd6961473e9d9c8f35deec682 Sun Aug 14 10:37:51 2016 +0200 Gergely Nagy
991* a312cbf712764277e0dbbbb99410c2f6fc6c7484 Sun Aug 14 14:34:52 2016 +0200 Gergely Nagy
992* 43d08629cf275d0b32281ffe8785258fff226b49 Mon Aug 15 10:02:05 2016 +0200 Gergely Nagy
993* e8845f0daf8dc7a7674dc5420cc5a684bbbea09b Mon Aug 15 10:07:13 2016 +0200 Gergely Nagy
994* dffdeb50b79d3c623e2ed9fd1c1d82d6d0ae7bf0 Sun Aug 21 20:25:19 2016 +0200 coderkun
995* 81594c7883deefedbcd317c72c1b1f1d32e65cd7 Sun Aug 21 21:02:18 2016 +0200 coderkun
996* a058ae40e268b34ba5db45f5fd5d557d50fa5437 Wed Aug 24 15:39:23 2016 +0200 Gergely Nagy
997* c9ea236fc35d350c0ff33de0af84d3dee7d0eb95 Wed Aug 31 08:21:52 2016 +0200 Gergely Nagy
998* a3f5a4cf5839fe29dd37400d72c5e353812002f8 Sun Oct 2 10:35:09 2016 +0200 coderkun
999* 5b2e455d3b71bfb90754930d1f22d3e8ce98b927 Mon Oct 10 00:46:20 2016 +0700 Priyadi Iman Nurcahyo
1000* e7d5dc89f2890007d776f6b613dc9deb473cff22 Sun Oct 23 05:36:26 2016 +0700 Priyadi Iman Nurcahyo
1001* 4a666c201007eacf13a9031e3c9b156e2e04afe6 Sun Oct 23 19:15:33 2016 +0700 Priyadi Iman Nurcahyo
1002* 8d60354d5a116b6cb1fc32eac7461eb125543c7d Wed Oct 26 00:48:44 2016 -0400 Jack Humbert
1003* 30b80a23f3cafd846937b37b249f2df4411e1f5a Mon Jan 9 02:59:10 2017 +0700 Priyadi Iman Nurcahyo
1004
1005## quantum/process_keycode/process_unicode.h
1006
1007* 65faab3b89245f81c50b029ca178aed175d5f330 Wed Jun 29 17:49:41 2016 -0400 Jack Humbert
1008* 63e5782d2cdf0ee282ad434c773463d9da9db6b3 Sat Aug 13 10:43:22 2016 +0200 Gergely Nagy
1009* fa06a163607e8c6c4bd0968c2de96a9a298b777c Sat Aug 13 10:46:38 2016 +0200 Gergely Nagy
1010* 857aa5bef6a74f8785a7039feea5286c07bf7067 Sat Aug 13 11:14:42 2016 +0200 Gergely Nagy
1011* 234dd276cf03be6fd6961473e9d9c8f35deec682 Sun Aug 14 10:37:51 2016 +0200 Gergely Nagy
1012* a312cbf712764277e0dbbbb99410c2f6fc6c7484 Sun Aug 14 14:34:52 2016 +0200 Gergely Nagy
1013* 43d08629cf275d0b32281ffe8785258fff226b49 Mon Aug 15 10:02:05 2016 +0200 Gergely Nagy
1014* e8845f0daf8dc7a7674dc5420cc5a684bbbea09b Mon Aug 15 10:07:13 2016 +0200 Gergely Nagy
1015* a058ae40e268b34ba5db45f5fd5d557d50fa5437 Wed Aug 24 15:39:23 2016 +0200 Gergely Nagy
1016* c9ea236fc35d350c0ff33de0af84d3dee7d0eb95 Wed Aug 31 08:21:52 2016 +0200 Gergely Nagy
1017* 5b2e455d3b71bfb90754930d1f22d3e8ce98b927 Mon Oct 10 00:46:20 2016 +0700 Priyadi Iman Nurcahyo
1018* 4a666c201007eacf13a9031e3c9b156e2e04afe6 Sun Oct 23 19:15:33 2016 +0700 Priyadi Iman Nurcahyo
1019* 6fee7e178f7c949213a124d78de60bc30267d367 Sat Nov 26 23:53:15 2016 +0700 Priyadi Iman Nurcahyo
1020
1021## quantum/serial_link/LICENSE
1022
1023* 639cdd363e35c13fe331939d0972aa4db5f5198d Tue Jul 5 23:27:47 2016 +0300 Fred Sundvik
1024
1025## quantum/serial_link/README.md
1026
1027* 639cdd363e35c13fe331939d0972aa4db5f5198d Tue Jul 5 23:27:47 2016 +0300 Fred Sundvik
1028* d5e7603d551a31836bf0c59db259ddc3593a1aa7 Wed Jul 6 13:26:20 2016 +0300 Fred Sundvik
1029
1030## quantum/serial_link/protocol/byte_stuffer.c
1031
1032* d5e7603d551a31836bf0c59db259ddc3593a1aa7 Wed Jul 6 13:26:20 2016 +0300 Fred Sundvik
1033* 0a11460175d6a838c71343c19eb4ce4699936247 Wed Aug 24 22:23:17 2016 +0300 Fred Sundvik
1034
1035## quantum/serial_link/protocol/byte_stuffer.h
1036
1037* d5e7603d551a31836bf0c59db259ddc3593a1aa7 Wed Jul 6 13:26:20 2016 +0300 Fred Sundvik
1038* 0a11460175d6a838c71343c19eb4ce4699936247 Wed Aug 24 22:23:17 2016 +0300 Fred Sundvik
1039
1040## quantum/serial_link/protocol/frame_router.c
1041
1042* d5e7603d551a31836bf0c59db259ddc3593a1aa7 Wed Jul 6 13:26:20 2016 +0300 Fred Sundvik
1043
1044## quantum/serial_link/protocol/frame_router.h
1045
1046* d5e7603d551a31836bf0c59db259ddc3593a1aa7 Wed Jul 6 13:26:20 2016 +0300 Fred Sundvik
1047
1048## quantum/serial_link/protocol/frame_validator.c
1049
1050* d5e7603d551a31836bf0c59db259ddc3593a1aa7 Wed Jul 6 13:26:20 2016 +0300 Fred Sundvik
1051
1052## quantum/serial_link/protocol/frame_validator.h
1053
1054* d5e7603d551a31836bf0c59db259ddc3593a1aa7 Wed Jul 6 13:26:20 2016 +0300 Fred Sundvik
1055
1056## quantum/serial_link/protocol/physical.h
1057
1058* d5e7603d551a31836bf0c59db259ddc3593a1aa7 Wed Jul 6 13:26:20 2016 +0300 Fred Sundvik
1059
1060## quantum/serial_link/protocol/transport.c
1061
1062* d5e7603d551a31836bf0c59db259ddc3593a1aa7 Wed Jul 6 13:26:20 2016 +0300 Fred Sundvik
1063* bcdf9ab76bf3723e6015d4255d53e7c1e7259b61 Sat Aug 27 14:18:49 2016 +0300 Fred Sundvik
1064
1065## quantum/serial_link/protocol/transport.h
1066
1067* d5e7603d551a31836bf0c59db259ddc3593a1aa7 Wed Jul 6 13:26:20 2016 +0300 Fred Sundvik
1068* bcdf9ab76bf3723e6015d4255d53e7c1e7259b61 Sat Aug 27 14:18:49 2016 +0300 Fred Sundvik
1069
1070## quantum/serial_link/protocol/triple_buffered_object.c
1071
1072* d5e7603d551a31836bf0c59db259ddc3593a1aa7 Wed Jul 6 13:26:20 2016 +0300 Fred Sundvik
1073
1074## quantum/serial_link/protocol/triple_buffered_object.h
1075
1076* d5e7603d551a31836bf0c59db259ddc3593a1aa7 Wed Jul 6 13:26:20 2016 +0300 Fred Sundvik
1077
1078## quantum/serial_link/system/serial_link.c
1079
1080* d5e7603d551a31836bf0c59db259ddc3593a1aa7 Wed Jul 6 13:26:20 2016 +0300 Fred Sundvik
1081
1082## quantum/serial_link/system/serial_link.h
1083
1084* d5e7603d551a31836bf0c59db259ddc3593a1aa7 Wed Jul 6 13:26:20 2016 +0300 Fred Sundvik
1085
1086## quantum/serial_link/tests/byte_stuffer_tests.cpp
1087
1088* 0a11460175d6a838c71343c19eb4ce4699936247 Wed Aug 24 22:23:17 2016 +0300 Fred Sundvik
1089
1090## quantum/serial_link/tests/frame_router_tests.cpp
1091
1092* cdd0913bcc63334fa20f1a7bd46bdce4d4f2843b Sat Aug 27 13:43:46 2016 +0300 Fred Sundvik
1093
1094## quantum/serial_link/tests/frame_validator_tests.cpp
1095
1096* b3eba797af74ace19b9f2e762bdd33d9449e3f94 Sat Aug 27 13:54:16 2016 +0300 Fred Sundvik
1097
1098## quantum/serial_link/tests/Makefile
1099
1100* d5e7603d551a31836bf0c59db259ddc3593a1aa7 Wed Jul 6 13:26:20 2016 +0300 Fred Sundvik
1101
1102## quantum/serial_link/tests/rules.mk
1103
1104* 0a11460175d6a838c71343c19eb4ce4699936247 Wed Aug 24 22:23:17 2016 +0300 Fred Sundvik
1105* cdd0913bcc63334fa20f1a7bd46bdce4d4f2843b Sat Aug 27 13:43:46 2016 +0300 Fred Sundvik
1106* b3eba797af74ace19b9f2e762bdd33d9449e3f94 Sat Aug 27 13:54:16 2016 +0300 Fred Sundvik
1107* bcdf9ab76bf3723e6015d4255d53e7c1e7259b61 Sat Aug 27 14:18:49 2016 +0300 Fred Sundvik
1108* ffb0a126f5b2484eda7f6b1c62ea61924eec6521 Sat Aug 27 14:25:52 2016 +0300 Fred Sundvik
1109
1110## quantum/serial_link/tests/testlist.mk
1111
1112* 6d7cd639a5e4503f00162c7cfa4bc7302b82c71c Sun Aug 21 16:29:54 2016 +0300 Fred Sundvik
1113* ffb0a126f5b2484eda7f6b1c62ea61924eec6521 Sat Aug 27 14:25:52 2016 +0300 Fred Sundvik
1114
1115## quantum/serial_link/tests/transport_tests.cpp
1116
1117* bcdf9ab76bf3723e6015d4255d53e7c1e7259b61 Sat Aug 27 14:18:49 2016 +0300 Fred Sundvik
1118
1119## quantum/serial_link/tests/triple_buffered_object_tests.cpp
1120
1121* ffb0a126f5b2484eda7f6b1c62ea61924eec6521 Sat Aug 27 14:25:52 2016 +0300 Fred Sundvik
1122
1123## quantum/template/config.h
1124
1125* 6f3141965e88c4ee0ebf7c18a243e4c2d9c5021b Tue Oct 27 14:33:18 2015 -0400 Jack Humbert
1126* 24f2698fba0055128eb90fbde793e3c84900df69 Sat Jan 23 20:45:52 2016 -0500 Jack Humbert
1127* 577971ab07a49405e1dcd8e5f75b3ecb87e710b9 Mon Mar 28 00:03:21 2016 -0500 IBNobody
1128* 1d13aa933bbb57bf0c1fe0196981b81233c3df97 Mon Mar 28 19:45:20 2016 -0500 IBNobody
1129* aaa758f1d3f97dda39879f2b055ad2da9680adfe Mon May 23 20:42:21 2016 -0700 Eric Tang
1130* 13bb6b4b7fdd2b3e419d0f89c93fb980b00eeb9b Thu Jun 23 22:18:20 2016 -0400 Jack Humbert
1131
1132## quantum/template/Makefile
1133
1134* 6f3141965e88c4ee0ebf7c18a243e4c2d9c5021b Tue Oct 27 14:33:18 2015 -0400 Jack Humbert
1135* 6485c7d7dae01c499a7e1f27e7956f12ce0f6901 Thu Nov 5 12:07:03 2015 -0500 Jack Humbert
1136* 24f2698fba0055128eb90fbde793e3c84900df69 Sat Jan 23 20:45:52 2016 -0500 Jack Humbert
1137* 577971ab07a49405e1dcd8e5f75b3ecb87e710b9 Mon Mar 28 00:03:21 2016 -0500 IBNobody
1138* 0656f2fa10e25e160617c3e5d14cfbae35dd9c8d Fri Apr 29 22:19:40 2016 -0400 Jack Humbert
1139* 38987d4c1589d2d457459f42e179be24b712be30 Sat May 28 12:05:17 2016 -0400 Jack Humbert
1140* d9e4dad0a828a8a904f44dda090a4d6d08fe2948 Sat Jun 11 13:31:31 2016 -0400 Jack Humbert
1141* a8375fa15a6ca9285eb15ae89bcda898349e06f8 Tue Jun 21 10:21:43 2016 -0400 Jack Humbert
1142* 13bb6b4b7fdd2b3e419d0f89c93fb980b00eeb9b Thu Jun 23 22:18:20 2016 -0400 Jack Humbert
1143* ab4d7adbb96fa034fd20364247d615f527661594 Fri Aug 19 09:06:28 2016 +0300 Fred Sundvik
1144
1145## quantum/template/readme.md
1146
1147* 13bb6b4b7fdd2b3e419d0f89c93fb980b00eeb9b Thu Jun 23 22:18:20 2016 -0400 Jack Humbert
1148* 1f5838a28679975f689e35471a35720ed5c7e7c5 Sat Aug 27 23:29:37 2016 +0300 Fred Sundvik
1149
1150## quantum/template/rules.mk
1151
1152* ab4d7adbb96fa034fd20364247d615f527661594 Fri Aug 19 09:06:28 2016 +0300 Fred Sundvik
1153
1154## quantum/template/template.c
1155
1156* 6f3141965e88c4ee0ebf7c18a243e4c2d9c5021b Tue Oct 27 14:33:18 2015 -0400 Jack Humbert
1157* 641859df84bf40025b2c14319d1a168a435562e2 Thu Mar 10 11:28:34 2016 -0500 yoyoerx
1158* eba9a7d74db0be548cddc107f0370dabf43b017f Tue Mar 15 23:52:51 2016 -0500 IBNobody
1159* ec62d9e85cab5cf166241b0536120d005fa7c898 Tue Mar 22 20:39:05 2016 -0500 IBNobody
1160* 3d56ec052ed485d4b717da930c4024b4a3f792e0 Tue Mar 22 21:06:22 2016 -0500 IBNobody
1161* 2181be029e01d9cf46ae3cadcdf25f5bca02c631 Mon Mar 28 16:13:37 2016 +0200 Damien Pollet
1162* 0656f2fa10e25e160617c3e5d14cfbae35dd9c8d Fri Apr 29 22:19:40 2016 -0400 Jack Humbert
1163* 1a8c0dd22d6a2255511d0db6a456315541b5815b Sun May 15 00:27:32 2016 -0400 Erez Zukerman
1164* 13bb6b4b7fdd2b3e419d0f89c93fb980b00eeb9b Thu Jun 23 22:18:20 2016 -0400 Jack Humbert
1165* 589df84d6cd19ad7d776cc19bcddade1cd178ddc Thu Jul 7 09:58:44 2016 -0400 Jack Humbert
1166* c1dfb636ef61159456bdb24f4fee3f27e5babbeb Thu Jul 7 12:22:10 2016 -0400 Jack Humbert
1167
1168## quantum/template/template.h
1169
1170* 6f3141965e88c4ee0ebf7c18a243e4c2d9c5021b Tue Oct 27 14:33:18 2015 -0400 Jack Humbert
1171* 24f2698fba0055128eb90fbde793e3c84900df69 Sat Jan 23 20:45:52 2016 -0500 Jack Humbert
1172* ee1b94045e5bebda517119cb1853b0ab3fd0f499 Fri Mar 4 10:53:58 2016 -0500 Noah Andrews
1173* 641859df84bf40025b2c14319d1a168a435562e2 Thu Mar 10 11:28:34 2016 -0500 yoyoerx
1174* eba9a7d74db0be548cddc107f0370dabf43b017f Tue Mar 15 23:52:51 2016 -0500 IBNobody
1175* ec62d9e85cab5cf166241b0536120d005fa7c898 Tue Mar 22 20:39:05 2016 -0500 IBNobody
1176* 2181be029e01d9cf46ae3cadcdf25f5bca02c631 Mon Mar 28 16:13:37 2016 +0200 Damien Pollet
1177* 0656f2fa10e25e160617c3e5d14cfbae35dd9c8d Fri Apr 29 22:19:40 2016 -0400 Jack Humbert
1178* 1a8c0dd22d6a2255511d0db6a456315541b5815b Sun May 15 00:27:32 2016 -0400 Erez Zukerman
1179* db32864ce7029d758f57729cc2f75e051a28d0a2 Sat Jun 18 14:30:24 2016 -0400 Jack Humbert
1180* 13bb6b4b7fdd2b3e419d0f89c93fb980b00eeb9b Thu Jun 23 22:18:20 2016 -0400 Jack Humbert
1181
1182## quantum/template/keymaps/default/config.h
1183
1184* 13bb6b4b7fdd2b3e419d0f89c93fb980b00eeb9b Thu Jun 23 22:18:20 2016 -0400 Jack Humbert
1185
1186## quantum/template/keymaps/default/keymap.c
1187
1188* d9e4dad0a828a8a904f44dda090a4d6d08fe2948 Sat Jun 11 13:31:31 2016 -0400 Jack Humbert
1189* 13bb6b4b7fdd2b3e419d0f89c93fb980b00eeb9b Thu Jun 23 22:18:20 2016 -0400 Jack Humbert
1190
1191## quantum/template/keymaps/default/Makefile
1192
1193* 13bb6b4b7fdd2b3e419d0f89c93fb980b00eeb9b Thu Jun 23 22:18:20 2016 -0400 Jack Humbert
1194
1195## quantum/template/keymaps/default/readme.md
1196
1197* 13bb6b4b7fdd2b3e419d0f89c93fb980b00eeb9b Thu Jun 23 22:18:20 2016 -0400 Jack Humbert
1198
1199## quantum/tools/eeprom_reset.hex
1200
1201* 0b0ec82427aff54481103559066213056b6d7598 Sat Apr 16 00:01:22 2016 -0400 Jack Humbert
1202
1203## quantum/tools/readme.md
1204
1205* 13bb6b4b7fdd2b3e419d0f89c93fb980b00eeb9b Thu Jun 23 22:18:20 2016 -0400 Jack Humbert
1206
1207## quantum/visualizer/lcd_backlight.c
1208
1209* 9f33a5593cc70dfb0885328061f1aa4b2c2fa386 Wed Jul 6 20:15:45 2016 +0300 Fred Sundvik
1210
1211## quantum/visualizer/lcd_backlight.h
1212
1213* 9f33a5593cc70dfb0885328061f1aa4b2c2fa386 Wed Jul 6 20:15:45 2016 +0300 Fred Sundvik
1214
1215## quantum/visualizer/led_test.c
1216
1217* 6c296557909501b71fe344ce379e74094cf77c8e Wed Jul 6 20:30:58 2016 +0300 Fred Sundvik
1218* 07d0d5cbe48d7afaf0bc8c9916d40179ec51cb42 Thu Jul 7 12:46:10 2016 +0300 Fred Sundvik
1219
1220## quantum/visualizer/led_test.h
1221
1222* 6c296557909501b71fe344ce379e74094cf77c8e Wed Jul 6 20:30:58 2016 +0300 Fred Sundvik
1223
1224## quantum/visualizer/LICENSE.md
1225
1226* 9f33a5593cc70dfb0885328061f1aa4b2c2fa386 Wed Jul 6 20:15:45 2016 +0300 Fred Sundvik
1227
1228## quantum/visualizer/readme.md
1229
1230* 9f33a5593cc70dfb0885328061f1aa4b2c2fa386 Wed Jul 6 20:15:45 2016 +0300 Fred Sundvik
1231
1232## quantum/visualizer/visualizer.c
1233
1234* 9f33a5593cc70dfb0885328061f1aa4b2c2fa386 Wed Jul 6 20:15:45 2016 +0300 Fred Sundvik
1235* 6c296557909501b71fe344ce379e74094cf77c8e Wed Jul 6 20:30:58 2016 +0300 Fred Sundvik
1236* 70797bb8f21c72cba15b314b2d0a6684bfedc369 Thu Jul 7 00:20:20 2016 +0300 Fred Sundvik
1237* 7229751ba9d402b2a6c9dc1b7b29385b5162fe41 Thu Jul 7 14:01:20 2016 +0300 Fred Sundvik
1238* dae7c9bfb3325412c542fbbe4342c9c8e0fc1904 Thu Jul 7 14:12:56 2016 +0300 Fred Sundvik
1239* 9eb8d05246fba4f46c04b8fa1884b8f2d2ee0664 Tue Jan 17 21:47:07 2017 -0500 SjB
1240
1241## quantum/visualizer/visualizer.h
1242
1243* 9f33a5593cc70dfb0885328061f1aa4b2c2fa386 Wed Jul 6 20:15:45 2016 +0300 Fred Sundvik
1244* 6c296557909501b71fe344ce379e74094cf77c8e Wed Jul 6 20:30:58 2016 +0300 Fred Sundvik
1245* 70797bb8f21c72cba15b314b2d0a6684bfedc369 Thu Jul 7 00:20:20 2016 +0300 Fred Sundvik
1246* 9eb8d05246fba4f46c04b8fa1884b8f2d2ee0664 Tue Jan 17 21:47:07 2017 -0500 SjB
1247
1248## quantum/visualizer/visualizer.mk
1249
1250* 9f33a5593cc70dfb0885328061f1aa4b2c2fa386 Wed Jul 6 20:15:45 2016 +0300 Fred Sundvik
1251* 6c296557909501b71fe344ce379e74094cf77c8e Wed Jul 6 20:30:58 2016 +0300 Fred Sundvik
1252* 70797bb8f21c72cba15b314b2d0a6684bfedc369 Thu Jul 7 00:20:20 2016 +0300 Fred Sundvik
1253* 07d0d5cbe48d7afaf0bc8c9916d40179ec51cb42 Thu Jul 7 12:46:10 2016 +0300 Fred Sundvik
1254* 7229751ba9d402b2a6c9dc1b7b29385b5162fe41 Thu Jul 7 14:01:20 2016 +0300 Fred Sundvik
1255* aaac254ebce2005272e7385488b5690bbbe6d7c8 Thu Jul 7 14:29:53 2016 +0300 Fred Sundvik
1256* caedec92d2c22480313c43a364408fb920c55364 Thu Jul 7 14:42:16 2016 +0300 Fred Sundvik
1257
1258## quantum/visualizer/example_integration/callbacks.c
1259
1260* 9f33a5593cc70dfb0885328061f1aa4b2c2fa386 Wed Jul 6 20:15:45 2016 +0300 Fred Sundvik
1261
1262## quantum/visualizer/example_integration/gfxconf.h
1263
1264* 9f33a5593cc70dfb0885328061f1aa4b2c2fa386 Wed Jul 6 20:15:45 2016 +0300 Fred Sundvik
1265
1266## quantum/visualizer/example_integration/lcd_backlight_hal.c
1267
1268* 9f33a5593cc70dfb0885328061f1aa4b2c2fa386 Wed Jul 6 20:15:45 2016 +0300 Fred Sundvik
1269
1270## quantum/visualizer/example_integration/visualizer_user.c
1271
1272* 9f33a5593cc70dfb0885328061f1aa4b2c2fa386 Wed Jul 6 20:15:45 2016 +0300 Fred Sundvik \ No newline at end of file
diff --git a/docs/License-Clarification.md b/docs/License-Clarification.md
new file mode 100644
index 000000000..cf30619b9
--- /dev/null
+++ b/docs/License-Clarification.md
@@ -0,0 +1,38 @@
1# Overview
2
3As raised in #1038 and other issues, the licensing status of QMK is not clear. In an effort to remove ambiguity and to clarify the licensing status of the quantum code we are identifying the providence of our source code files and clarifying what license applies to each one.
4
5# Signoff
6
7This section documents the people who need to sign off on applying the GPL to one or more of their contributions. If your name appears below and you consent to applying the GPL to your contributions, please put today's date in the last field of your row. Please stick to the following date format: 2017 Jan 28
8
9Username | Files | Sign Off Date |
10---------|-------|---------------|
11@0xdec | quantum/rgblight.c | 2017 Jan 29 |
12@algernon | quantum/quantum.c<br>quantum/quantum.h<br>quantum/process_keycode/process_tap_dance.c<br>quantum/process_keycode/process_tap_dance.h<br>quantum/process_keycode/process_unicode.c<br>quantum/process_keycode/process_unicode.h | 2017 Jan 29 |
13@cdlm | quantum/template/template.c<br>quantum/template/template.h | 2017 Feb 03 |
14@DidierLoiseau | quantum/keymap_extras/keymap_canadian_multilingual.h<br>quantum/keymap_extras/keymap_bepo.h |2017 Jan 29 |
15@eltang | quantum/config_common.h<br>quantum/matrix.c<br>quantum/quantum.c<br>quantum/quantum.h<br>quantum/rgblight.c<br>quantum/rgblight.h<br>quantum/template/config.h | 2017 Feb 28 |
16@ezuk | quantum/matrix.c<br>quantum/quantum.c<br>quantum/quantum.h<br>quantum/quantum_keycodes.h<br>quantum/rgblight.c<br>quantum/rgblight.h<br>quantum/keymap_extras/keymap_colemak.h<br>quantum/keymap_extras/keymap_nordic.h | 2017 Jan 31 |
17@fredizzimo | quantum/config_common.h<br>quantum/keycode_config.h<br>quantum/keymap.h<br>quantum/keymap_common.c<br>quantum/keymap_common.c<br>quantum/matrix.c<br>quantum/quantum.h<br>quantum/rgblight.c<br>quantum/rgblight.h<br>quantum/api/api_sysex.c | 2017 Jan 29 |
18@h-youhei | quantum/keymap_extras/keymap_jp.h | 2017 Jan 28 |
19@heartsekai | quantum/keymap_extras/keymap_german_ch.h | 2017 Jan 29 |
20@IBnobody | quantum/keycode_config.h<br>quantum/matrix.c<br>quantum/quantum.c<br>quantum/audio/audio.c<br>quantum/audio/audio.h<br>quantum/audio/audio_pwm.c<br>quantum/audio/audio_pwm.c<br>quantum/audio/voices.c<br>quantum/audio/voices.h<br>quantum/template/config.h<br>quantum/template/template.c | 2017 Jan 30 |
21@jackhumbert | quantum/config_common.h<br>quantum/keycode_config.h<br>quantum/keymap.h<br>quantum/keymap_common.c<br>quantum/light_ws2812.c<br>quantum/light_ws2812.h<br>quantum/matrix.c<br>quantum/quantum.c<br>quantum/quantum.h<br>quantum/quantum_keycodes.h<br>quantum/rgblight.c<br>quantum/rgblight.h<br>quantum/api/api_sysex.c<br>quantum/audio/audio.c<br>quantum/audio/audio.h<br>quantum/audio/audio_pwm.c<br>quantum/audio/audio_pwm.c<br>quantum/audio/voices.c<br>quantum/audio/voices.h<br>quantum/keymap_extras/keymap_colemak.h<br>quantum/keymap_extras/keymap_dvorak.h<br>quantum/keymap_extras/keymap_fr_ch.h<br>quantum/keymap_extras/keymap_french.h<br>quantum/keymap_extras/keymap_french_osx.h<br>quantum/keymap_extras/keymap_german.h<br>quantum/keymap_extras/keymap_german_ch.h<br>quantum/keymap_extras/keymap_german_osx.h<br>quantum/keymap_extras/keymap_neo2.h<br>quantum/keymap_extras/keymap_nordic.h<br>quantum/keymap_extras/keymap_plover.h<br>quantum/keymap_extras/keymap_spanish.h<br>quantum/keymap_extras/keymap_uk.h<br>quantum/process_keycode/process_midi.c<br>quantum/process_keycode/process_music.c<br>quantum/process_keycode/process_tap_dance.c<br>quantum/process_keycode/process_tap_dance.h<br>quantum/process_keycode/process_unicode.c<br>quantum/process_keycode/process_unicode.h<br>quantum/template/config.h<br>quantum/template/template.c<br>quantum/template/template.h | 2017-01-29 |
22@jakllsch | quantum/keymap_extras/keymap_dvorak.h<br>quantum/keymap_extras/keymap_fr_ch.h<br>quantum/keymap_extras/keymap_french.h<br>quantum/keymap_extras/keymap_german.h<br>quantum/keymap_extras/keymap_german_ch.h<br>quantum/keymap_extras/keymap_nordic.h<br>quantum/keymap_extras/keymap_spanish.h<br>quantum/keymap_extras/keymap_uk.h | 2017 Jan 29 |
23kuel | quantum/keymap_extras/keymap_unicode_cyrillic.h<br>quantum/keymap_extras/keymap_russian.h | |
24@lindhe | quantum/keymap_extras/keymap_nordic.h<br>quantum/keymap_extras/keymap_norwegian.h | 2017 Jan 30 |
25@matzebond | quantum/keymap_extras/keymap_german.h<br>quantum/keymap_extras/keymap_neo2.h | 2017 Jan 30 |
26@plgruener | quantum/keymap_extras/keymap_german.h<br>quantum/keymap_extras/keymap_neo2.h | 2017 Jan 30 |
27@priyadi | quantum/quantum.c<br>quantum/process_keycode/process_unicode.c<br>quantum/process_keycode/process_unicode.h | 2017 Jan 31 |
28@pvinis | quantum/quantum.c<br>quantum/quantum.h<br>quantum/process_keycode/process_tap_dance.c<br>quantum/process_keycode/process_tap_dance.h | 2017 Jan 29 |
29@Smilliam | quantum/quantum.c | 2017 Feb 25 |
30@sperochon | quantum/keymap_extras/keymap_french_osx.h | 2017 Jan 30 |
31stephan . bosebeck at holidayinsider.com | quantum/keymap_extras/keymap_german_osx.h | 2017 Feb 15 |
32@TerryMathews | quantum/quantum.c | 2017 Jan 29 |
33@Twey | quantum/keymap_extras/keymap_plover.h | |
34@Vifon | quantum/dynamic_macro.h<br>quantum/quantum.c | 2017 Feb 09 |
35@vincent-pochet | quantum/keymap_extras/keymap_fr_ch.h | 2017 Feb 09 |
36@wez | quantum/dynamic_macro.h | 2017 Jan 29 |
37@Wilba6582 | quantum/keymap.h<br>quantum/keymap_common.c<br>quantum/quantum_keycodes.h | 2017 Feb 15 |
38@yangliu | quantum/light_ws2812.c<br>quantum/light_ws2812.h<br>quantum/rgblight.c<br>quantum/rgblight.h | 2017 Jan 30 | \ No newline at end of file
diff --git a/docs/Macros.md b/docs/Macros.md
new file mode 100644
index 000000000..78290bbf6
--- /dev/null
+++ b/docs/Macros.md
@@ -0,0 +1,197 @@
1# Macro shortcuts: Send a whole string when pressing just one key
2
3Instead of using the `ACTION_MACRO` function, you can simply use `M(n)` to access macro *n* - *n* will get passed into the `action_get_macro` as the `id`, and you can use a switch statement to trigger it. This gets called on the keydown and keyup, so you'll need to use an if statement testing `record->event.pressed` (see keymap_default.c).
4
5```c
6const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) // this is the function signature -- just copy/paste it into your keymap file as it is.
7{
8 switch(id) {
9 case 0: // this would trigger when you hit a key mapped as M(0)
10 if (record->event.pressed) {
11 return MACRO( I(255), T(H), T(E), T(L), T(L), W(255), T(O), END ); // this sends the string 'hello' when the macro executes
12 }
13 break;
14 }
15 return MACRO_NONE;
16};
17```
18A macro can include the following commands:
19
20* I() change interval of stroke in milliseconds.
21* D() press key.
22* U() release key.
23* T() type key(press and release).
24* W() wait (milliseconds).
25* END end mark.
26
27So above you can see the stroke interval changed to 255ms between each keystroke, then a bunch of keys being typed, waits a while, then the macro ends.
28
29Note: Using macros to have your keyboard send passwords for you is possible, but a bad idea.
30
31## Advanced macro functions
32
33To get more control over the keys/actions your keyboard takes, the following functions are available to you in the `action_get_macro` function block:
34
35* `record->event.pressed`
36
37This is a boolean value that can be tested to see if the switch is being pressed or released. An example of this is
38
39```c
40if (record->event.pressed) {
41 // on keydown
42} else {
43 // on keyup
44}
45```
46
47* `register_code(<kc>);`
48
49This sends the `<kc>` keydown event to the computer. Some examples would be `KC_ESC`, `KC_C`, `KC_4`, and even modifiers such as `KC_LSFT` and `KC_LGUI`.
50
51* `unregister_code(<kc>);`
52
53Parallel to `register_code` function, this sends the `<kc>` keyup event to the computer. If you don't use this, the key will be held down until it's sent.
54
55* `layer_on(<n>);`
56
57This will turn on the layer `<n>` - the higher layer number will always take priority. Make sure you have `KC_TRNS` for the key you're pressing on the layer you're switching to, or you'll get stick there unless you have another plan.
58
59* `layer_off(<n>);`
60
61This will turn off the layer `<n>`.
62
63* `clear_keyboard();`
64
65This will clear all mods and keys currently pressed.
66
67* `clear_mods();`
68
69This will clear all mods currently pressed.
70
71* `clear_keyboard_but_mods();`
72
73This will clear all keys besides the mods currently pressed.
74
75* `update_tri_layer(layer_1, layer_2, layer_3);`
76
77If the user attempts to activate layer 1 AND layer 2 at the same time (for example, by hitting their respective layer keys), layer 3 will be activated. Layers 1 and 2 will _also_ be activated, for the purposes of fallbacks (so a given key will fall back from 3 to 2, to 1 -- and only then to 0).
78
79### Naming your macros
80
81If you have a bunch of macros you want to refer to from your keymap, while keeping the keymap easily readable, you can just name them like so:
82
83```
84#define AUD_OFF M(6)
85#define AUD_ON M(7)
86#define MUS_OFF M(8)
87#define MUS_ON M(9)
88#define VC_IN M(10)
89#define VC_DE M(11)
90#define PLOVER M(12)
91#define EXT_PLV M(13)
92```
93
94As was done on the [Planck default keymap](https://github.com/qmk/qmk_firmware/blob/master/keyboards/planck/keymaps/default/keymap.c#L33-L40)
95
96#### Timer functionality
97
98It's possible to start timers and read values for time-specific events - here's an example:
99
100```c
101static uint16_t key_timer;
102key_timer = timer_read();
103if (timer_elapsed(key_timer) < 100) {
104 // do something if less than 100ms have passed
105} else {
106 // do something if 100ms or more have passed
107}
108```
109
110It's best to declare the `static uint16_t key_timer;` outside of the macro block (top of file, etc).
111
112### Example: Single-key copy/paste (hold to copy, tap to paste)
113
114With QMK, it's easy to make one key do two things, as long as one of those things is being a modifier. :) So if you want a key to act as Ctrl when held and send the letter R when tapped, that's easy: `CTL_T(KC_R)`. But what do you do when you want that key to send Ctrl-V (paste) when tapped, and Ctrl-C (copy) when held?
115
116Here's what you do:
117
118
119```
120static uint16_t key_timer;
121
122const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
123{
124 switch(id) {
125 case 0: {
126 if (record->event.pressed) {
127 key_timer = timer_read(); // if the key is being pressed, we start the timer.
128 }
129 else { // this means the key was just released, so we can figure out how long it was pressed for (tap or "held down").
130 if (timer_elapsed(key_timer) > 150) { // 150 being 150ms, the threshhold we pick for counting something as a tap.
131 return MACRO( D(LCTL), T(C), U(LCTL), END );
132 }
133 else {
134 return MACRO( D(LCTL), T(V), U(LCTL), END );
135 }
136 }
137 break;
138 }
139 }
140 return MACRO_NONE;
141};
142```
143
144And then, to assign this macro to a key on your keyboard layout, you just use `M(0)` on the key you want to press for copy/paste.
145
146# Dynamic macros: record and replay macros in runtime
147
148In addition to the static macros described above, you may enable the dynamic macros which you may record while writing. They are forgotten as soon as the keyboard is unplugged. Only two such macros may be stored at the same time, with the total length of 64 keypresses (by default).
149
150To enable them, first add a new element to the `planck_keycodes` enum — `DYNAMIC_MACRO_RANGE`:
151
152 enum planck_keycodes {
153 QWERTY = SAFE_RANGE,
154 COLEMAK,
155 DVORAK,
156 PLOVER,
157 LOWER,
158 RAISE,
159 BACKLIT,
160 EXT_PLV,
161 DYNAMIC_MACRO_RANGE,
162 };
163
164It must be the last element because `dynamic_macros.h` will add some more keycodes after it.
165
166Below it include the `dynamic_macro.h` header:
167
168 #include "dynamic_macro.h"`
169
170Add the following keys to your keymap:
171
172- `DYN_REC_START1` — start recording the macro 1,
173- `DYN_REC_START2` — start recording the macro 2,
174- `DYN_MACRO_PLAY1` — replay the macro 1,
175- `DYN_MACRO_PLAY2` — replay the macro 2,
176- `DYN_REC_STOP` — finish the macro that is currently being recorded.
177
178Add the following code to the very beginning of your `process_record_user()` function:
179
180 if (!process_record_dynamic_macro(keycode, record)) {
181 return false;
182 }
183
184That should be everything necessary. To start recording the macro, press either `DYN_REC_START1` or `DYN_REC_START2`. To finish the recording, press the `DYN_REC_STOP` layer button. To replay the macro, press either `DYN_MACRO_PLAY1` or `DYN_MACRO_PLAY2`.
185
186Note that it's possible to replay a macro as part of a macro. It's ok to replay macro 2 while recording macro 1 and vice versa but never create recursive macros i.e. macro 1 that replays macro 1. If you do so and the keyboard will get unresponsive, unplug the keyboard and plug it again.
187
188For users of the earlier versions of dynamic macros: It is still possible to finish the macro recording using just the layer modifier used to access the dynamic macro keys, without a dedicated `DYN_REC_STOP` key. If you want this behavior back, use the following snippet instead of the one above:
189
190 uint16_t macro_kc = (keycode == MO(_DYN) ? DYN_REC_STOP : keycode);
191 if (!process_record_dynamic_macro(macro_kc, record)) {
192 return false;
193 }
194
195If the LED-s start blinking during the recording with each keypress, it means there is no more space for the macro in the macro buffer. To fit the macro in, either make the other macro shorter (they share the same buffer) or increase the buffer size by setting the `DYNAMIC_MACRO_SIZE` preprocessor macro (default value: 128; please read the comments for it in the header).
196
197For the details about the internals of the dynamic macros, please read the comments in the `dynamic_macro.h` header.
diff --git a/docs/Make-Instructions.md b/docs/Make-Instructions.md
new file mode 100644
index 000000000..825632035
--- /dev/null
+++ b/docs/Make-Instructions.md
@@ -0,0 +1,167 @@
1# More detailed make instruction
2
3The full syntax of the `make` command is the following, but parts of the command can be left out if you run it from other directories than the `root` (as you might already have noticed by reading the simple instructions).
4
5`<keyboard>-<subproject>-<keymap>-<target>`, where:
6
7* `<keyboard>` is the name of the keyboard, for example `planck`
8 * Use `allkb` to compile all keyboards
9* `<subproject>` is the name of the subproject (revision or sub-model of the keyboard). For example, for Ergodox it can be `ez` or `infinity`, and for Planck `rev3` or `rev4`.
10 * If the keyboard doesn't have any subprojects, it can be left out
11 * To compile the default subproject, you can leave it out, or specify `defaultsp`
12 * Use `allsp` to compile all subprojects
13* `<keymap>` is the name of the keymap, for example `algernon`
14 * Use `allkm` to compile all keymaps
15* `<target>` will be explained in more detail below.
16
17**Note:** When you leave some parts of the command out, you should also remove the dash (`-`).
18
19As mentioned above, there are some shortcuts, when you are in a:
20
21* `keyboard` folder, the command will automatically fill the `<keyboard>` part. So you only need to type `<subproject>-<keymap>-<target>`
22* `subproject` folder, it will fill in both `<keyboard>` and `<subproject>`
23* `keymap` folder, then `<keyboard>` and `<keymap>` will be filled in. If you need to specify the `<subproject>` use the following syntax `<subproject>-<target>`
24 * Note in order to support this shortcut, the keymap needs its own Makefile (see the example [here](https://github.com/qmk/qmk_firmware/blob/master/doc/keymap_makefile_example.mk))
25* `keymap` folder of a `subproject`, then everything except the `<target>` will be filled in
26
27The `<target>` means the following
28* If no target is given, then it's the same as `all` below
29* `all` compiles the keyboard and generates a `<keyboard>_<keymap>.hex` file in whichever folder you run `make` from. These files are ignored by git, so don't worry about deleting them when committing/creating pull requests.
30* `dfu`, `teensy` or `dfu-util`, compile and upload the firmware to the keyboard. If the compilation fails, then nothing will be uploaded. The programmer to use depends on the keyboard. For most keyboards it's `dfu`, but for Infinity keyboards you should use `dfu-util`, and `teensy` for standard Teensys. To find out which command you should use for your keyboard, check the keyboard specific readme. **Note** that some operating systems needs root access for these commands to work, so in that case you need to run for example `sudo make dfu`.
31* `clean`, cleans the build output folders to make sure that everything is built from scratch. Run this before normal compilation if you have some unexplainable problems.
32
33Some other targets are supported but, but not important enough to be documented here. Check the source code of the make files for more information.
34
35You can also add extra options at the end of the make command line, after the target
36
37* `make COLOR=false` - turns off color output
38* `make SILENT=true` - turns off output besides errors/warnings
39* `make VERBOSE=true` - outputs all of the gcc stuff (not interesting, unless you need to debug)
40* `make EXTRAFLAGS=-E` - Preprocess the code without doing any compiling (useful if you are trying to debug #define commands)
41
42The make command itself also has some additional options, type `make --help` for more information. The most useful is probably `-jx`, which specifies that you want to compile using more than one CPU, the `x` represents the number of CPUs that you want to use. Setting that can greatly reduce the compile times, especially if you are compiling many keyboards/keymaps. I usually set it to one less than the number of CPUs that I have, so that I have some left for doing other things while it's compiling. Note that not all operating systems and make versions supports that option.
43
44Here are some examples commands
45
46* `make allkb-allsp-allkm` builds everything (all keyboards, all subprojects, all keymaps). Running just `make` from the `root` will also run this.
47* `make` from within a `keyboard` directory, is the same as `make keyboard-allsp-allkm`, which compiles all subprojects and keymaps of the keyboard. **NOTE** that this behaviour has changed. Previously it compiled just the default keymap.
48* `make ergodox-infinity-algernon-clean` will clean the build output of the Ergodox Infinity keyboard. This example uses the full syntax and can be run from any folder with a `Makefile`
49* `make dfu COLOR=false` from within a keymap folder, builds and uploads the keymap, but without color output.
50
51## The `Makefile`
52
53There are 5 different `make` and `Makefile` locations:
54
55* root (`/`)
56* keyboard (`/keyboards/<keyboard>/`)
57* keymap (`/keyboards/<keyboard>/keymaps/<keymap>/`)
58* subproject (`/keyboards/<keyboard>/<subproject>`)
59* subproject keymap (`/keyboards/<keyboard>/<subproject>/keymaps/<keymap>`)
60
61The root contains the code used to automatically figure out which keymap or keymaps to compile based on your current directory and commandline arguments. It's considered stable, and shouldn't be modified. The keyboard one will contain the MCU set-up and default settings for your keyboard, and shouldn't be modified unless you are the producer of that keyboard. The keymap Makefile can be modified by users, and is optional. It is included automatically if it exists. You can see an example [here](https://github.com/qmk/qmk_firmware/blob/master/doc/keymap_makefile_example.mk) - the last few lines are the most important. The settings you set here will override any defaults set in the keyboard Makefile. **The file is required if you want to run `make` in the keymap folder.**
62
63For keyboards and subprojects, the make files are split in two parts `Makefile` and `rules.mk`. All settings can be found in the `rules.mk` file, while the `Makefile` is just there for support and including the root `Makefile`. Keymaps contain just one `Makefile` for simplicity.
64
65### Makefile options
66
67Set these variables to `no` to disable them, and `yes` to enable them.
68
69`BOOTMAGIC_ENABLE`
70
71This allows you to hold a key and the salt key (space by default) and have access to a various EEPROM settings that persist over power loss. It's advised you keep this disabled, as the settings are often changed by accident, and produce confusing results that makes it difficult to debug. It's one of the more common problems encountered in help sessions.
72
73Consumes about 1000 bytes.
74
75`MOUSEKEY_ENABLE`
76
77This gives you control over cursor movements and clicks via keycodes/custom functions.
78
79`EXTRAKEY_ENABLE`
80
81This allows you to use the system and audio control key codes.
82
83`CONSOLE_ENABLE`
84
85This allows you to print messages that can be read using [`hid_listen`](https://www.pjrc.com/teensy/hid_listen.html).
86
87By default, all debug (*dprint*) print (*print*, *xprintf*), and user print (*uprint*) messages will be enabled. This will eat up a significant portion of the flash and may make the keyboard .hex file too big to program.
88
89To disable debug messages (*dprint*) and reduce the .hex file size, include `#define NO_DEBUG` in your `config.h` file.
90
91To disable print messages (*print*, *xprintf*) and user print messages (*uprint*) and reduce the .hex file size, include `#define NO_PRINT` in your `config.h` file.
92
93To disable print messages (*print*, *xprintf*) and **KEEP** user print messages (*uprint*), include `#define USER_PRINT` in your `config.h` file.
94
95To see the text, open `hid_listen` and enjoy looking at your printed messages.
96
97**NOTE:** Do not include *uprint* messages in anything other than your keymap code. It must not be used within the QMK system framework. Otherwise, you will bloat other people's .hex files.
98
99Consumes about 400 bytes.
100
101`COMMAND_ENABLE`
102
103This enables magic commands, typically fired with the default magic key combo `LSHIFT+RSHIFT+KEY`. Magic commands include turning on debugging messages (`MAGIC+D`) or temporarily toggling NKRO (`MAGIC+N`).
104
105`SLEEP_LED_ENABLE`
106
107Enables your LED to breath while your computer is sleeping. Timer1 is being used here. This feature is largely unused and untested, and needs updating/abstracting.
108
109`NKRO_ENABLE`
110
111This allows the keyboard to tell the host OS that up to 248 keys are held down at once (default without NKRO is 6). NKRO is off by default, even if `NKRO_ENABLE` is set. NKRO can be forced by adding `#define FORCE_NKRO` to your config.h or by binding `MAGIC_TOGGLE_NKRO` to a key and then hitting the key.
112
113`BACKLIGHT_ENABLE`
114
115This enables your backlight on Timer1 and ports B5, B6, or B7 (for now). You can specify your port by putting this in your `config.h`:
116
117 #define BACKLIGHT_PIN B7
118
119`MIDI_ENABLE`
120
121This enables MIDI sending and receiving with your keyboard. To enter MIDI send mode, you can use the keycode `MI_ON`, and `MI_OFF` to turn it off. This is a largely untested feature, but more information can be found in the `quantum/quantum.c` file.
122
123`UNICODE_ENABLE`
124
125This allows you to send unicode symbols via `UC(<unicode>)` in your keymap. Only codes up to 0x7FFF are currently supported.
126
127`UNICODEMAP_ENABLE`
128
129This allows sending unicode symbols using `X(<unicode>)` in your keymap. Codes
130up to 0xFFFFFFFF are supported, including emojis. You will need to maintain
131a separate mapping table in your keymap file.
132
133Known limitations:
134- Under Mac OS, only codes up to 0xFFFF are supported.
135- Under Linux ibus, only codes up to 0xFFFFF are supported (but anything important is still under this limit for now).
136
137Characters out of range supported by the OS will be ignored.
138
139`BLUETOOTH_ENABLE`
140
141This allows you to interface with a Bluefruit EZ-key to send keycodes wirelessly. It uses the D2 and D3 pins.
142
143`AUDIO_ENABLE`
144
145This allows you output audio on the C6 pin (needs abstracting). See the [audio section](#audio-output-from-a-speaker) for more information.
146
147`FAUXCLICKY_ENABLE`
148
149Uses buzzer to emulate clicky switches. A cheap imitation of the Cherry blue switches. By default, uses the C6 pin, same as AUDIO_ENABLE.
150
151`VARIABLE_TRACE`
152
153Use this to debug changes to variable values, see the [tracing variables](#tracing-variables) section for more information.
154
155`API_SYSEX_ENABLE`
156
157This enables using the Quantum SYSEX API to send strings (somewhere?)
158
159This consumes about 5390 bytes.
160
161### Customizing Makefile options on a per-keymap basis
162
163If your keymap directory has a file called `Makefile` (note the filename), any Makefile options you set in that file will take precedence over other Makefile options for your particular keyboard.
164
165So let's say your keyboard's makefile has `BACKLIGHT_ENABLE = yes` (or maybe doesn't even list the `BACKLIGHT_ENABLE` option, which would cause it to be off). You want your particular keymap to not have the debug console, so you make a file called `Makefile` and specify `BACKLIGHT_ENABLE = no`.
166
167You can use the `doc/keymap_makefile_example.md` as a template/starting point.
diff --git a/docs/Memory-write-error,-use-debug-for-more-info.md b/docs/Memory-write-error,-use-debug-for-more-info.md
new file mode 100644
index 000000000..adef2601f
--- /dev/null
+++ b/docs/Memory-write-error,-use-debug-for-more-info.md
@@ -0,0 +1,21 @@
1In rare circumstances, your keyboard/device can become unwritable, and `dfu-programmer` will give you an error like this:
2
3 Erasing flash... Success
4 Checking memory from 0x0 to 0x6FFF... Empty.
5 Checking memory from 0x0 to 0x607F... Empty.
6 0% 100% Programming 0x6080 bytes...
7 [ X ERROR
8 Memory write error, use debug for more info.
9
10Currently the only way to solve this is to [reprogram the chip via ISP](https://www.reddit.com/r/olkb/comments/4rjzen/flashing_error_on_mac_os_x/d52rj8o/). This requires another device to be hooked up to a couple of exposed pins on the PCB. There is a guide on how to do this [here](https://learn.sparkfun.com/tutorials/installing-an-arduino-bootloader), and [this is where things are on the Planck PCB](http://imgur.com/lvbxbHt).
11
12An example command to flash the board once things are hooked up is:
13
14 avrdude -c usbtiny -p m32u4 -U flash:w:planck_default_rev4.hex
15
16Research is still being done on why this happens, but here are some cases:
17
18* [`make -f Makefile.rn42 dfu` and not the dfu-programmer commands worked for @tybenz](https://github.com/tmk/tmk_keyboard/issues/316) - also see [the hhkb keyboard on tmk](https://github.com/tmk/tmk_keyboard/tree/master/keyboard/hhkb)
19* [Doing a force erase works here](https://geekhack.org/index.php?topic=12047.msg1520147#msg1520147)
20* [`dfu-programmer atmega32u4 erase --force` works here as well](https://forum.fhem.de/index.php?topic=29777.0) [DE]
21* [Unresolved, but some data dumps](https://github.com/dfu-programmer/dfu-programmer/issues/29) \ No newline at end of file
diff --git a/docs/Modding-your-keyboard.md b/docs/Modding-your-keyboard.md
new file mode 100644
index 000000000..5d4b5d40f
--- /dev/null
+++ b/docs/Modding-your-keyboard.md
@@ -0,0 +1,379 @@
1
2## Audio output from a speaker
3
4Your keyboard can make sounds! If you've got a Planck, Preonic, or basically any keyboard that allows access to the C6 port, you can hook up a simple speaker and make it beep. You can use those beeps to indicate layer transitions, modifiers, special keys, or just to play some funky 8bit tunes.
5
6The audio code lives in [quantum/audio/audio.h](https://github.com/qmk/qmk_firmware/blob/master/quantum/audio/audio.h) and in the other files in the audio directory. It's enabled by default on the Planck [stock keymap](https://github.com/qmk/qmk_firmware/blob/master/keyboards/planck/keymaps/default/keymap.c). Here are the important bits:
7
8```
9#include "audio.h"
10```
11
12Then, lower down the file:
13
14```
15float tone_startup[][2] = {
16 ED_NOTE(_E7 ),
17 E__NOTE(_CS7),
18 E__NOTE(_E6 ),
19 E__NOTE(_A6 ),
20 M__NOTE(_CS7, 20)
21};
22```
23
24This is how you write a song. Each of these lines is a note, so we have a little ditty composed of five notes here.
25
26Then, we have this chunk:
27
28```
29float tone_qwerty[][2] = SONG(QWERTY_SOUND);
30float tone_dvorak[][2] = SONG(DVORAK_SOUND);
31float tone_colemak[][2] = SONG(COLEMAK_SOUND);
32float tone_plover[][2] = SONG(PLOVER_SOUND);
33float tone_plover_gb[][2] = SONG(PLOVER_GOODBYE_SOUND);
34
35float music_scale[][2] = SONG(MUSIC_SCALE_SOUND);
36float goodbye[][2] = SONG(GOODBYE_SOUND);
37```
38
39Wherein we bind predefined songs (from [quantum/audio/song_list.h](https://github.com/qmk/qmk_firmware/blob/master/quantum/audio/song_list.h)) into named variables. This is one optimization that helps save on memory: These songs only take up memory when you reference them in your keymap, because they're essentially all preprocessor directives.
40
41So now you have something called `tone_plover` for example. How do you make it play the Plover tune, then? If you look further down the keymap, you'll see this:
42
43```
44PLAY_NOTE_ARRAY(tone_plover, false, 0); // Signature is: Song name, repeat, rest style
45```
46
47This is inside one of the macros. So when that macro executes, your keyboard plays that particular chime.
48
49"Rest style" in the method signature above (the last parameter) specifies if there's a rest (a moment of silence) between the notes.
50
51
52## Recording And Playing back Music
53* ```Music On``` - Turn music mode on. The default mapping is ```Lower+Upper+C```
54* ```LCTL``` - start a recording
55* play some tones
56* ```LALT``` - stop recording, stop playing
57* ```LGUI``` - play recording
58* ```LALT``` - stop playing
59* ```Music Off``` - Turn music mode off. The default mapping is ```Lower+Upper+V```
60
61
62## MIDI functionalty
63
64This is still a WIP, but check out `quantum/keymap_midi.c` to see what's happening. Enable from the Makefile.
65
66## Bluetooth functionality
67
68This requires [some hardware changes](https://www.reddit.com/r/MechanicalKeyboards/comments/3psx0q/the_planck_keyboard_with_bluetooth_guide_and/?ref=search_posts), but can be enabled via the Makefile. The firmware will still output characters via USB, so be aware of this when charging via a computer. It would make sense to have a switch on the Bluefruit to turn it off at will.
69
70## RGB Under Glow Mod
71
72![Planck with RGB Underglow](https://raw.githubusercontent.com/qmk/qmk_firmware/master/keyboards/planck/keymaps/yang/planck-with-rgb-underglow.jpg)
73
74Here is a quick demo on Youtube (with NPKC KC60) (https://www.youtube.com/watch?v=VKrpPAHlisY).
75
76For this mod, you need an unused pin wiring to DI of WS2812 strip. After wiring the VCC, GND, and DI, you can enable the underglow in your Makefile.
77
78 RGBLIGHT_ENABLE = yes
79
80In order to use the underglow animation functions, you need to have `#define RGBLIGHT_ANIMATIONS` in your `config.h`.
81
82Please add the following options into your config.h, and set them up according your hardware configuration. These settings are for the `F4` pin by default:
83
84 #define RGB_DI_PIN F4 // The pin your RGB strip is wired to
85 #define RGBLIGHT_ANIMATIONS // Require for fancier stuff (not compatible with audio)
86 #define RGBLED_NUM 14 // Number of LEDs
87 #define RGBLIGHT_HUE_STEP 10
88 #define RGBLIGHT_SAT_STEP 17
89 #define RGBLIGHT_VAL_STEP 17
90
91You'll need to edit `RGB_DI_PIN` to the pin you have your `DI` on your RGB strip wired to.
92
93The firmware supports 5 different light effects, and the color (hue, saturation, brightness) can be customized in most effects. To control the underglow, you need to modify your keymap file to assign those functions to some keys/key combinations. For details, please check this keymap. `keyboards/planck/keymaps/yang/keymap.c`
94
95### WS2812 Wiring
96
97![WS2812 Wiring](https://raw.githubusercontent.com/qmk/qmk_firmware/master/keyboards/planck/keymaps/yang/WS2812-wiring.jpg)
98
99Please note the USB port can only supply a limited amount of power to the keyboard (500mA by standard, however, modern computer and most usb hubs can provide 700+mA.). According to the data of NeoPixel from Adafruit, 30 WS2812 LEDs require a 5V 1A power supply, LEDs used in this mod should not more than 20.
100
101## PS/2 Mouse Support
102
103Its possible to hook up a PS/2 mouse (for example touchpads or trackpoints) to your keyboard as a composite device.
104
105To hook up a Trackpoint, you need to obtain a Trackpoint module (i.e. harvest from a Thinkpad keyboard), identify the function of each pin of the module, and make the necessary circuitry between controller and Trackpoint module. For more information, please refer to [Trackpoint Hardware](https://deskthority.net/wiki/TrackPoint_Hardware) page on Deskthority Wiki.
106
107There are three available modes for hooking up PS/2 devices: USART (best), interrupts (better) or busywait (not recommended).
108
109### Busywait version
110
111Note: This is not recommended, you may encounter jerky movement or unsent inputs. Please use interrupt or USART version if possible.
112
113In rules.mk:
114
115```
116PS2_MOUSE_ENABLE = yes
117PS2_USE_BUSYWAIT = yes
118```
119
120In your keyboard config.h:
121
122```
123#ifdef PS2_USE_BUSYWAIT
124# define PS2_CLOCK_PORT PORTD
125# define PS2_CLOCK_PIN PIND
126# define PS2_CLOCK_DDR DDRD
127# define PS2_CLOCK_BIT 1
128# define PS2_DATA_PORT PORTD
129# define PS2_DATA_PIN PIND
130# define PS2_DATA_DDR DDRD
131# define PS2_DATA_BIT 2
132#endif
133```
134
135### Interrupt version
136
137The following example uses D2 for clock and D5 for data. You can use any INT or PCINT pin for clock, and any pin for data.
138
139In rules.mk:
140
141```
142PS2_MOUSE_ENABLE = yes
143PS2_USE_INT = yes
144```
145
146In your keyboard config.h:
147
148```
149#ifdef PS2_USE_INT
150#define PS2_CLOCK_PORT PORTD
151#define PS2_CLOCK_PIN PIND
152#define PS2_CLOCK_DDR DDRD
153#define PS2_CLOCK_BIT 2
154#define PS2_DATA_PORT PORTD
155#define PS2_DATA_PIN PIND
156#define PS2_DATA_DDR DDRD
157#define PS2_DATA_BIT 5
158
159#define PS2_INT_INIT() do { \
160 EICRA |= ((1<<ISC21) | \
161 (0<<ISC20)); \
162} while (0)
163#define PS2_INT_ON() do { \
164 EIMSK |= (1<<INT2); \
165} while (0)
166#define PS2_INT_OFF() do { \
167 EIMSK &= ~(1<<INT2); \
168} while (0)
169#define PS2_INT_VECT INT2_vect
170#endif
171```
172
173### USART version
174
175To use USART on the ATMega32u4, you have to use PD5 for clock and PD2 for data. If one of those are unavailable, you need to use interrupt version.
176
177In rules.mk:
178
179```
180PS2_MOUSE_ENABLE = yes
181PS2_USE_USART = yes
182```
183
184In your keyboard config.h:
185
186```
187#ifdef PS2_USE_USART
188#define PS2_CLOCK_PORT PORTD
189#define PS2_CLOCK_PIN PIND
190#define PS2_CLOCK_DDR DDRD
191#define PS2_CLOCK_BIT 5
192#define PS2_DATA_PORT PORTD
193#define PS2_DATA_PIN PIND
194#define PS2_DATA_DDR DDRD
195#define PS2_DATA_BIT 2
196
197/* synchronous, odd parity, 1-bit stop, 8-bit data, sample at falling edge */
198/* set DDR of CLOCK as input to be slave */
199#define PS2_USART_INIT() do { \
200 PS2_CLOCK_DDR &= ~(1<<PS2_CLOCK_BIT); \
201 PS2_DATA_DDR &= ~(1<<PS2_DATA_BIT); \
202 UCSR1C = ((1 << UMSEL10) | \
203 (3 << UPM10) | \
204 (0 << USBS1) | \
205 (3 << UCSZ10) | \
206 (0 << UCPOL1)); \
207 UCSR1A = 0; \
208 UBRR1H = 0; \
209 UBRR1L = 0; \
210} while (0)
211#define PS2_USART_RX_INT_ON() do { \
212 UCSR1B = ((1 << RXCIE1) | \
213 (1 << RXEN1)); \
214} while (0)
215#define PS2_USART_RX_POLL_ON() do { \
216 UCSR1B = (1 << RXEN1); \
217} while (0)
218#define PS2_USART_OFF() do { \
219 UCSR1C = 0; \
220 UCSR1B &= ~((1 << RXEN1) | \
221 (1 << TXEN1)); \
222} while (0)
223#define PS2_USART_RX_READY (UCSR1A & (1<<RXC1))
224#define PS2_USART_RX_DATA UDR1
225#define PS2_USART_ERROR (UCSR1A & ((1<<FE1) | (1<<DOR1) | (1<<UPE1)))
226#define PS2_USART_RX_VECT USART1_RX_vect
227#endif
228```
229
230### Additional Settings
231
232#### PS/2 mouse features
233
234These enable settings supported by the PS/2 mouse protocol: http://www.computer-engineering.org/ps2mouse/
235
236```
237/* Use remote mode instead of the default stream mode (see link) */
238#define PS2_MOUSE_USE_REMOTE_MODE
239
240/* Enable the scrollwheel or scroll gesture on your mouse or touchpad */
241#define PS2_MOUSE_ENABLE_SCROLLING
242
243/* Some mice will need a scroll mask to be configured. The default is 0xFF. */
244#define PS2_MOUSE_SCROLL_MASK 0x0F
245
246/* Applies a transformation to the movement before sending to the host (see link) */
247#define PS2_MOUSE_USE_2_1_SCALING
248
249/* The time to wait after initializing the ps2 host */
250#define PS2_MOUSE_INIT_DELAY 1000 /* Default */
251```
252
253You can also call the following functions from ps2_mouse.h
254
255```
256void ps2_mouse_disable_data_reporting(void);
257
258void ps2_mouse_enable_data_reporting(void);
259
260void ps2_mouse_set_remote_mode(void);
261
262void ps2_mouse_set_stream_mode(void);
263
264void ps2_mouse_set_scaling_2_1(void);
265
266void ps2_mouse_set_scaling_1_1(void);
267
268void ps2_mouse_set_resolution(ps2_mouse_resolution_t resolution);
269
270void ps2_mouse_set_sample_rate(ps2_mouse_sample_rate_t sample_rate);
271```
272
273#### Fine control
274
275Use the following defines to change the sensitivity and speed of the mouse.
276Note: you can also use `ps2_mouse_set_resolution` for the same effect (not supported on most touchpads).
277
278```
279#define PS2_MOUSE_X_MULTIPLIER 3
280#define PS2_MOUSE_Y_MULTIPLIER 3
281#define PS2_MOUSE_V_MULTIPLIER 1
282```
283
284#### Scroll button
285
286If you're using a trackpoint, you will likely want to be able to use it for scrolling.
287Its possible to enable a "scroll button/s" that when pressed will cause the mouse to scroll instead of moving.
288To enable the feature, you must set a scroll button mask as follows:
289
290```
291#define PS2_MOUSE_SCROLL_BTN_MASK (1<<PS2_MOUSE_BUTTON_MIDDLE) /* Default */
292```
293
294To disable the scroll button feature:
295
296```
297#define PS2_MOUSE_SCROLL_BTN_MASK 0
298```
299
300The available buttons are:
301
302```
303#define PS2_MOUSE_BTN_LEFT 0
304#define PS2_MOUSE_BTN_RIGHT 1
305#define PS2_MOUSE_BTN_MIDDLE 2
306```
307
308You can also combine buttons in the mask by `|`ing them together.
309
310Once you've configured your scroll button mask, you must configure the scroll button send interval.
311This is the interval before which if the scroll buttons were released they would be sent to the host.
312After this interval, they will cause the mouse to scroll and will not be sent.
313
314```
315#define PS2_MOUSE_SCROLL_BTN_SEND 300 /* Default */
316```
317
318To disable sending the scroll buttons:
319```
320#define PS2_MOUSE_SCROLL_BTN_SEND 0
321```
322
323Fine control over the scrolling is supported with the following defines:
324
325```
326#define PS2_MOUSE_SCROLL_DIVISOR_H 2
327#define PS2_MOUSE_SCROLL_DIVISOR_V 2
328```
329
330#### Debug settings
331
332To debug the mouse, add `debug_mouse = true` or enable via bootmagic.
333
334```
335/* To debug the mouse reports */
336#define PS2_MOUSE_DEBUG_HID
337#define PS2_MOUSE_DEBUG_RAW
338```
339
340## Safety Considerations
341
342You probably don't want to "brick" your keyboard, making it impossible
343to rewrite firmware onto it. Here are some of the parameters to show
344what things are (and likely aren't) too risky.
345
346- If your keyboard map does not include RESET, then, to get into DFU
347 mode, you will need to press the reset button on the PCB, which
348 requires unscrewing the bottom.
349- Messing with tmk_core / common files might make the keyboard
350 inoperable
351- Too large a .hex file is trouble; `make dfu` will erase the block,
352 test the size (oops, wrong order!), which errors out, failing to
353 flash the keyboard, leaving it in DFU mode.
354 - To this end, note that the maximum .hex file size on Planck is
355 7000h (28672 decimal)
356
357```
358Linking: .build/planck_rev4_cbbrowne.elf [OK]
359Creating load file for Flash: .build/planck_rev4_cbbrowne.hex [OK]
360
361Size after:
362 text data bss dec hex filename
363 0 22396 0 22396 577c planck_rev4_cbbrowne.hex
364```
365
366 - The above file is of size 22396/577ch, which is less than
367 28672/7000h
368 - As long as you have a suitable alternative .hex file around, you
369 can retry, loading that one
370 - Some of the options you might specify in your keyboard's Makefile
371 consume extra memory; watch out for BOOTMAGIC_ENABLE,
372 MOUSEKEY_ENABLE, EXTRAKEY_ENABLE, CONSOLE_ENABLE, API_SYSEX_ENABLE
373- DFU tools do /not/ allow you to write into the bootloader (unless
374 you throw in extra fruitsalad of options), so there is little risk
375 there.
376- EEPROM has around a 100000 write cycle. You shouldn't rewrite the
377 firmware repeatedly and continually; that'll burn the EEPROM
378 eventually.
379
diff --git a/docs/Mouse-keys.md b/docs/Mouse-keys.md
new file mode 100644
index 000000000..16e920fdb
--- /dev/null
+++ b/docs/Mouse-keys.md
@@ -0,0 +1,17 @@
1# Can I increase the speed of the mouse keys?
2
3**Q:** The default speed for controlling the mouse with the keyboard is slow. I've tried increasing the mouse's sensitivity at work using xset m and it worked, although sometimes it changes by itself for some reason. At home, on Arch Linux, this does not change ti. I've looked through the forums and resolved to use libinput using xinput but using that I only manage to change the speed of the mouse using the actual mouse. The speed of the mouse using the keyboard controls remained unchanged.
4Is there perhaps something I can input in the keymap.c to change the sensitivity? Or some other surefire way of increasing the speed?
5Thanks!
6
7**A:** In your keymap's config.h:
8
9```
10#define MOUSEKEY_INTERVAL 20
11#define MOUSEKEY_DELAY 0
12#define MOUSEKEY_TIME_TO_MAX 60
13#define MOUSEKEY_MAX_SPEED 7
14#define MOUSEKEY_WHEEL_DELAY 0
15```
16
17Tweak away. A lower interval or higher max speed will effectively make the mouse move faster. Time-to-max controls acceleration. (See [this Reddit thread for the original discussion](https://www.reddit.com/r/ErgoDoxEZ/comments/61fwr2/a_reliable_way_to_increase_the_speed_of_the_mouse/)). \ No newline at end of file
diff --git a/docs/Other-Projects.md b/docs/Other-Projects.md
new file mode 100644
index 000000000..163c7c1cf
--- /dev/null
+++ b/docs/Other-Projects.md
@@ -0,0 +1,62 @@
1Keyboard Firmware Projects other than TMK
2================================
3## PJRC USB Keyboard/Mouse Example[USB][PJRC][Teensy][AVR]
4- <http://www.pjrc.com/teensy/usb_keyboard.html>
5- <http://www.pjrc.com/teensy/usb_mouse.html>
6
7## kbupgrade[USB][V-USB][AVR]
8- <http://github.com/rhomann/kbupgrade>
9- <http://geekhack.org/showwiki.php?title=Island:8406>
10
11## c64key[USB][V-USB][AVR]
12- <http://symlink.dk/projects/c64key/>
13
14## rump[USB][V-USB][AVR]
15- <http://mg8.org/rump/>
16- <http://github.com/clee/rump>
17
18## dulcimer[USB][V-USB][AVR]
19- <http://www.schatenseite.de/dulcimer.html>
20
21## humblehacker-keyboard[USB][LUFA][AVR][Ergo]
22- <http://github.com/humblehacker>
23- <http://www.humblehacker.com/keyboard/>
24- <http://geekhack.org/showwiki.php?title=Island:6292>
25
26## ps2avr[PS/2][AVR]
27- <http://sourceforge.net/projects/ps2avr/>
28
29## ErgoDox[Ergo][Split][USB][AVR]
30- <http://geekhack.org/index.php?topic=22780.0>
31- <https://github.com/benblazak/ergodox-firmware>
32- <https://github.com/cub-uanic/tmk_keyboard>
33
34## Suka's keyboard collection[Ergo][Split][3DPrinting][USB][AVR]
35- <http://deskthority.net/workshop-f7/my-diy-keyboard-collection-or-how-i-became-a-kb-geek-t2534.html>
36- <https://github.com/frobiac/adnw>
37
38## bpiphany's AVR-Keyboard[PJRC][AVR][USB]
39- <https://github.com/BathroomEpiphanies/AVR-Keyboard>
40- <http://deskthority.net/wiki/HID_Liberation_Device_-_DIY_Instructions>
41- <http://deskthority.net/wiki/Phantom>
42
43## USB-USB keyboard remapper[converter][USB-USB][AVR][Arduino]
44- <http://forum.colemak.com/viewtopic.php?pid=10837>
45- <https://github.com/darkytoothpaste/keymapper>
46
47## USB-USB converter threads[converter][USB-USB]
48- <http://deskthority.net/workshop-f7/is-remapping-a-usb-keyboard-using-teensy-possible-t2841-30.html>
49- <http://geekhack.org/index.php?topic=19458.0>
50
51## kbdbabel.org[converter][vintage][protocol][8051]
52Great resource of vintage keyboard protocol information and code
53
54- <http://www.kbdbabel.org/>
55
56## Haata's kiibohd Controller[converter][vintage][protocol][AVR][PJRC][Cortex]
57A lots of vintage keyboard protocol supports
58
59- <https://github.com/kiibohd/controller>
60
61## Kinesis ergonomic keyboard firmware replacement[V-USB][LUFA][Ergo]
62- <https://github.com/chrisandreae/kinesis-firmware>
diff --git a/docs/Porting-Your-Keyboard-to-QMK-(ARM-and-other-ChibiOS-CPUs).md b/docs/Porting-Your-Keyboard-to-QMK-(ARM-and-other-ChibiOS-CPUs).md
new file mode 100644
index 000000000..436c73cb7
--- /dev/null
+++ b/docs/Porting-Your-Keyboard-to-QMK-(ARM-and-other-ChibiOS-CPUs).md
@@ -0,0 +1,70 @@
1Setting up your ARM based PCB is a little more involved than an Atmel MCU, but is easy enough. Start by using `util/new_project.sh <keyboard>` to create a new project:
2
3```
4$ util/new_project.sh simontester
5######################################################
6# /keyboards/simontester project created. To start
7# working on things, cd into keyboards/simontester
8######################################################
9```
10
11
12
13# END OF NEW ARM DOC, OLD ATMEL DOC FOLLOWS
14
15## `/keyboards/<keyboard>/config.h`
16
17The `USB Device descriptor parameter` block contains parameters are used to uniquely identify your keyboard, but they don't really matter to the machine.
18
19Your `MATRIX_ROWS` and `MATRIX_COLS` are the numbers of rows and cols in your keyboard matrix - this may be different than the number of actual rows and columns on your keyboard. There are some tricks you can pull to increase the number of keys in a given matrix, but most keyboards are pretty straight-forward.
20
21The `MATRIX_ROW_PINS` and `MATRIX_COL_PINS` are the pins your MCU uses on each row/column. Your schematic (if you have one) will have this information on it, and the values will vary depending on your setup. This is one of the most important things to double-check in getting your keyboard setup correctly.
22
23For the `DIODE_DIRECTION`, most hand-wiring guides will instruct you to wire the diodes in the `COL2ROW` position, but it's possible that they are in the other - people coming from EasyAVR often use `ROW2COL`. Nothing will function if this is incorrect.
24
25`BACKLIGHT_PIN` is the pin that your PWM-controlled backlight (if one exists) is hooked-up to. Currently only B5, B6, and B7 are supported.
26
27`BACKLIGHT_BREATHING` is a fancier backlight feature that adds breathing/pulsing/fading effects to the backlight. It uses the same timer as the normal backlight. These breathing effects must be called by code in your keymap.
28
29`BACKLIGHT_LEVELS` is how many levels exist for your backlight - max is 15, and they are computed automatically from this number.
30
31## `/keyboards/<keyboard>/Makefile`
32
33The values at the top likely won't need to be changed, since most boards use the `atmega32u4` chip. The `BOOTLOADER_SIZE` will need to be adjusted based on your MCU type. It's defaulted to the Teensy, since that's the most common controller. Below is quoted from the `Makefile`.
34
35```
36# Boot Section Size in *bytes*
37# Teensy halfKay 512
38# Teensy++ halfKay 1024
39# Atmel DFU loader 4096
40# LUFA bootloader 4096
41# USBaspLoader 2048
42OPT_DEFS += -DBOOTLOADER_SIZE=512
43```
44
45At the bottom of the file, you'll find lots of features to turn on and off - all of these options should be set with `?=` to allow for the keymap overrides. `?=` only assigns if the variable was previously undefined. For the full documenation of these features, see the [Makefile options](#makefile-options).
46
47## `/keyboards/<keyboard>/readme.md`
48
49This is where you'll describe your keyboard - please write as much as you can about it! Talking about default functionality/features is useful here. Feel free to link to external pages/sites if necessary. Images can be included here as well. This file will be rendered into a webpage at qmk.fm/keyboards/<keyboard>/.
50
51## `/keyboards/<keyboard>/<keyboard>.c`
52
53This is where all of the custom logic for your keyboard goes - you may not need to put anything in this file, since a lot of things are configured automatically. All of the `*_kb()` functions are defined here. If you modify them, remember to keep the calls to `*_user()`, or things in the keymaps might not work. You can read more about the functions [here](#custom-quantum-functions-for-keyboards-and-keymaps)
54
55## `/keyboards/<keyboard>/<keyboard>.h`
56
57Here is where you can (optionally) define your `KEYMAP` function to remap your matrix into a more readable format. With ortholinear boards, this isn't always necessary, but it can help to accomodate the dead spots on your matrix, where there are keys that take up more than one space (2u, staggering, 6.25u, etc). The example shows the difference between the physical keys, and the matrix design:
58
59```
60#define KEYMAP( \
61 k00, k01, k02, \
62 k10, k11 \
63) \
64{ \
65 { k00, k01, k02 }, \
66 { k10, KC_NO, k11 }, \
67}
68```
69
70Each of the `kxx` variables needs to be unique, and usually follows the format `k<row><col>`. You can place `KC_NO` where your dead keys are in your matrix.
diff --git a/docs/Porting-your-keyboard-to-QMK.md b/docs/Porting-your-keyboard-to-QMK.md
new file mode 100644
index 000000000..6f291a432
--- /dev/null
+++ b/docs/Porting-your-keyboard-to-QMK.md
@@ -0,0 +1,59 @@
1If your keyboard is running an Atmega chip (atmega32u4 and others), it's pretty easy to get things setup for compiling your own firmware to flash onto your board. There is a `/util/new_project.sh <keyboard>` script to help get you started - you can simply pass your keyboard's name into the script, and all of the necessary files will be created. The components of each are described below.
2
3## `/keyboards/<keyboard>/config.h`
4
5The `USB Device descriptor parameter` block contains parameters are used to uniquely identify your keyboard, but they don't really matter to the machine.
6
7Your `MATRIX_ROWS` and `MATRIX_COLS` are the numbers of rows and cols in your keyboard matrix - this may be different than the number of actual rows and columns on your keyboard. There are some tricks you can pull to increase the number of keys in a given matrix, but most keyboards are pretty straight-forward.
8
9The `MATRIX_ROW_PINS` and `MATRIX_COL_PINS` are the pins your MCU uses on each row/column. Your schematic (if you have one) will have this information on it, and the values will vary depending on your setup. This is one of the most important things to double-check in getting your keyboard setup correctly.
10
11For the `DIODE_DIRECTION`, most hand-wiring guides will instruct you to wire the diodes in the `COL2ROW` position, but it's possible that they are in the other - people coming from EasyAVR often use `ROW2COL`. Nothing will function if this is incorrect.
12
13`BACKLIGHT_PIN` is the pin that your PWM-controlled backlight (if one exists) is hooked-up to. Currently only B5, B6, and B7 are supported.
14
15`BACKLIGHT_BREATHING` is a fancier backlight feature that adds breathing/pulsing/fading effects to the backlight. It uses the same timer as the normal backlight. These breathing effects must be called by code in your keymap.
16
17`BACKLIGHT_LEVELS` is how many levels exist for your backlight - max is 15, and they are computed automatically from this number.
18
19## `/keyboards/<keyboard>/Makefile`
20
21The values at the top likely won't need to be changed, since most boards use the `atmega32u4` chip. The `BOOTLOADER_SIZE` will need to be adjusted based on your MCU type. It's defaulted to the Teensy, since that's the most common controller. Below is quoted from the `Makefile`.
22
23```
24# Boot Section Size in *bytes*
25# Teensy halfKay 512
26# Teensy++ halfKay 1024
27# Atmel DFU loader 4096
28# LUFA bootloader 4096
29# USBaspLoader 2048
30OPT_DEFS += -DBOOTLOADER_SIZE=512
31```
32
33At the bottom of the file, you'll find lots of features to turn on and off - all of these options should be set with `?=` to allow for the keymap overrides. `?=` only assigns if the variable was previously undefined. For the full documenation of these features, see the [Makefile options](#makefile-options).
34
35## `/keyboards/<keyboard>/readme.md`
36
37This is where you'll describe your keyboard - please write as much as you can about it! Talking about default functionality/features is useful here. Feel free to link to external pages/sites if necessary. Images can be included here as well. This file will be rendered into a webpage at qmk.fm/keyboards/<keyboard>/.
38
39## `/keyboards/<keyboard>/<keyboard>.c`
40
41This is where all of the custom logic for your keyboard goes - you may not need to put anything in this file, since a lot of things are configured automatically. All of the `*_kb()` functions are defined here. If you modify them, remember to keep the calls to `*_user()`, or things in the keymaps might not work. You can read more about the functions [here](#custom-quantum-functions-for-keyboards-and-keymaps)
42
43## `/keyboards/<keyboard>/<keyboard>.h`
44
45Here is where you can (optionally) define your `KEYMAP` function to remap your matrix into a more readable format. With ortholinear boards, this isn't always necessary, but it can help to accomodate the dead spots on your matrix, where there are keys that take up more than one space (2u, staggering, 6.25u, etc). The example shows the difference between the physical keys, and the matrix design:
46
47```
48#define KEYMAP( \
49 k00, k01, k02, \
50 k10, k11 \
51) \
52{ \
53 { k00, k01, k02 }, \
54 { k10, KC_NO, k11 }, \
55}
56```
57
58Each of the `kxx` variables needs to be unique, and usually follows the format `k<row><col>`. You can place `KC_NO` where your dead keys are in your matrix.
59
diff --git a/docs/Previously-Asked-Questions.asciidoc b/docs/Previously-Asked-Questions.asciidoc
new file mode 100644
index 000000000..36af1f203
--- /dev/null
+++ b/docs/Previously-Asked-Questions.asciidoc
@@ -0,0 +1,14 @@
1= Previously Asked Questions
2:toc:
3:toc-placement: preamble
4
5toc::[]
6
7= Question thread
8http://deskthority.net/workshop-f7/how-to-build-your-very-own-keyboard-firmware-t7177-270.html
9
10= Questions
11== Columns beyond 16(uint16_t) cannot be read
12* https://github.com/tmk/tmk_keyboard/wiki/FAQ#cant-read-comlumn-of-matrix-beyond-16
13* http://deskthority.net/workshop-f7/how-to-build-your-very-own-keyboard-firmware-t7177-270.html#p247051
14* http://deskthority.net/workshop-f7/rebuilding-and-redesigning-a-classic-thinkpad-keyboard-t6181-60.html#p146279
diff --git a/docs/QMK-Overview.md b/docs/QMK-Overview.md
new file mode 100644
index 000000000..f595bd237
--- /dev/null
+++ b/docs/QMK-Overview.md
@@ -0,0 +1,75 @@
1# QMK Overview
2
3This page attempts to explain the basic information you need to know to work with the QMK project. It assumes that you are familiar with navigating a UNIX shell, but does not assume you are familiar with C or with compiling using make.
4
5# Basic QMK structure
6
7QMK is a fork of @tmk's [tmk_keyboard](https://github.com/tmk/tmk_keyboard) project. The original TMK code, with modifications, can be found in the `tmk` folder. The QMK additions to the project may be found in the `quantum` folder. Keyboard projects may be found in the `handwired` and `keyboard` folders.
8
9## Keyboard project structure
10
11Within the `handwired` and `keyboard` folders is a directory for each keyboard project, for example `qmk_firmware/keyboards/clueboard`. Within you'll find the following structure:
12
13* `keymaps/`: Different keymaps that can be built
14* `rules.mk`: The file that sets the default "make" options. Do not edit this file directly, instead use a keymap specific `Makefile`.
15* `config.h`: The file that sets the default compile time options. Do not edit this file directly, instead use a keymap specific `config.h`.
16
17### Keymap structure
18
19In every keymap folder, the following files may be found. Only `keymap.c` is required, if the rest of the files are not found the default options will be chosen.
20
21* `config.h`: the options to configure your keymap
22* `keymap.c`: all of your keymap code, required
23* `Makefile`: the features of QMK that are enabled, required to run `make` in your keymap folder
24* `readme.md`: a description of your keymap, how others might use it, and explanations of features
25* Other files: Some people choose to include an image depicting the layout, and other files that help people to use or understand a particular keymap.
26
27# The `make` command
28
29The `make` command is how you compile the firmware into a .hex file, which can be loaded by a dfu programmer (like dfu-progammer via `make dfu`) or the [Teensy loader](https://www.pjrc.com/teensy/loader.html) (only used with Teensys). It it recommended that you always run make from within the `root` folder.
30
31**NOTE:** To abort a make command press `Ctrl-c`
32
33For more details on the QMK build process see [Make Instructions](/Make-Instructions.md).
34
35### Simple instructions for building and uploading a keyboard
36
37**Most keyboards have more specific instructions in the keyboard specific readme.md file, so please check that first**
38
391. Enter the `root` folder
402. Run `make <keyboard>-<subproject>-<keymap>-<programmer>`
41
42In the above commands, replace:
43
44* `<keyboard>` with the name of your keyboard
45* `<keymap>` with the name of your keymap
46* `<subproject>` with the name of the subproject (revision or sub-model of your keyboard). For example, for Ergodox it can be `ez` or `infinity`, and for Planck `rev3` or `rev4`.
47 * If the keyboard doesn't have a subproject, or if you are happy with the default (defined in `rules.mk` file of the `keyboard` folder), you can leave it out. But remember to also remove the dash (`-`) from the command.
48* `<programmer>` The programmer to use. Most keyboards use `dfu`, but some use `teensy`. Infinity keyboards use `dfu-util`. Check the readme file in the keyboard folder to find out which programmer to use.
49 * If you don't add `-<programmer` to the command line, the firmware will be still be compiled into a hex file, but the upload will be skipped.
50
51**NOTE:** Some operating systems will refuse to program unless you run the make command as root for example `sudo make clueboard-default-dfu`
52
53## Make Examples
54
55* Build all Clueboard keymaps: `make clueboard`
56* Build the default Planck keymap: `make planck-rev4-default`
57* Build and flash your ergodox-ez: `make ergodox-ez-default-teensy`
58
59# The `config.h` file
60
61There are 2 `config.h` locations:
62
63* keyboard (`/keyboards/<keyboard>/`)
64* keymap (`/keyboards/<keyboard>/keymaps/<keymap>/`)
65
66The keyboard `config.h` is included only if the keymap one doesn't exist. The format to use for your custom one [is here](https://github.com/qmk/qmk_firmware/blob/master/doc/keymap_config_h_example.h). If you want to override a setting from the parent `config.h` file, you need to do this:
67
68```c
69#undef MY_SETTING
70#define MY_SETTING 4
71```
72
73For a value of `4` for this imaginary setting. So we `undef` it first, then `define` it.
74
75You can then override any settings, rather than having to copy and paste the whole thing. \ No newline at end of file
diff --git a/docs/Report-Descriptor.md b/docs/Report-Descriptor.md
new file mode 100644
index 000000000..fd5e96c67
--- /dev/null
+++ b/docs/Report-Descriptor.md
@@ -0,0 +1 @@
# Get Report Descriptor with lsusb \ No newline at end of file
diff --git a/docs/SUMMARY.md b/docs/SUMMARY.md
new file mode 100644
index 000000000..99845a7b6
--- /dev/null
+++ b/docs/SUMMARY.md
@@ -0,0 +1,26 @@
1
2### Getting started
3* [Introduction](/Home.md)
4* [QMK Overview](/QMK-Overview.md)
5* [Build Environment Setup](/Build-Environment-Setup.md)
6
7### Making a keymap
8* [Keymap overview](/Keymap.md)
9* [Keycodes](/Keycodes.md)
10* [Layer switching](/Key-Functions.md)
11* [Leader Key](/Leader-Key.md)
12* [Macros](/Macros.md)
13* [Space Cadet](/Space-Cadet-Shift.md)
14* [Tap Dance](/Tap-Dance.md)
15* [Mouse keys](/Mouse-keys.md)
16* [FAQ: Creating a Keymap](/FAQ-Keymap.md)
17* [FAQ: Compiling QMK](/FAQ-Build.md)
18
19### For hardware makers and modders
20* [Modding your keyboard](/Modding-your-keyboard.md)
21* [Porting your keyboard to QMK](/Porting-your-keyboard-to-QMK.md)
22* [Adding features to QMK](/Adding-features-to-QMK.md)
23
24### Other topics
25* [General FAQ](/FAQ.md)
26* [Differences from TMK](/Differences-from-TMK.md)
diff --git a/docs/Space-Cadet-Shift.md b/docs/Space-Cadet-Shift.md
new file mode 100644
index 000000000..a1ec256de
--- /dev/null
+++ b/docs/Space-Cadet-Shift.md
@@ -0,0 +1,24 @@
1## Space Cadet Shift: The future, built in
2
3Steve Losh [described](http://stevelosh.com/blog/2012/10/a-modern-space-cadet/) the Space Cadet Shift quite well. Essentially, you hit the left Shift on its own, and you get an opening parenthesis; hit the right Shift on its own, and you get the closing one. When hit with other keys, the Shift key keeps working as it always does. Yes, it's as cool as it sounds.
4
5To use it, use `KC_LSPO` (Left Shift, Parens Open) for your left Shift on your keymap, and `KC_RSPC` (Right Shift, Parens Close) for your right Shift.
6
7It's defaulted to work on US keyboards, but if your layout uses different keys for parenthesis, you can define those in your `config.h` like this:
8
9 #define LSPO_KEY KC_9
10 #define RSPC_KEY KC_0
11
12You can also choose between different rollover behaviors of the shift keys by defining:
13
14 #define DISABLE_SPACE_CADET_ROLLOVER
15
16in your `config.h`. Disabling rollover allows you to use the opposite shift key to cancel the space cadet state in the event of an erroneous press instead of emitting a pair of parentheses when the keys are released.
17
18The only other thing you're going to want to do is create a `Makefile` in your keymap directory and set the following:
19
20```
21COMMAND_ENABLE = no # Commands for debug and configuration
22```
23
24This is just to keep the keyboard from going into command mode when you hold both Shift keys at the same time.
diff --git a/docs/TMK-Based-Projects.md b/docs/TMK-Based-Projects.md
new file mode 100644
index 000000000..0597b04c3
--- /dev/null
+++ b/docs/TMK-Based-Projects.md
@@ -0,0 +1,34 @@
1## TMK based projects
2Add your project here!
3See https://github.com/tmk/tmk_keyboard/issues/173
4
5### keyboards
6**S60-X**: [DIY 60% keyboard](https://www.massdrop.com/buy/sentraq-60-diy-keyboard-kit?mode=guest_open) designed by [VinnyCordeiro](https://github.com/VinnyCordeiro) for Sentraq:
7- https://github.com/VinnyCordeiro/tmk_keyboard
8
9**Octagon V1**: Korean custom keyboard designed by Duck.
10- https://github.com/xauser/tmk_keyboard/tree/xauser
11
12**Compact L3**: Custom keyboard designed by LifeZone and LeeKu.
13- https://github.com/xauser/tmk_keyboard/tree/xauser
14
15**KMAC, 1,2 and Happy**: Custom keyboard designed by kbdmania.
16- https://github.com/ageaenes/tmk_keyboard
17
18**P60**: [DIY wired 60% keyboard](https://imgur.com/a/zwsDN) by [p3lim](https://github.com/p3lim).
19- https://github.com/p3lim/keyboard_firmware
20
21**Nerd, Kitten Paw, Lightsaber, Phantom, Lightpad, Ergodox** on [xauser](https://github.com/xauser)'s repository
22- https://github.com/xauser/tmk_keyboard/tree/xauser
23
24**ErgoDox** on [cub-unanic](https://github.com/cub-uanic)'s repository
25- https://github.com/cub-uanic/tmk_keyboard/tree/master/keyboard/ergodox
26
27**Atreus** by [technomancy](https://atreus.technomancy.us)
28- https://github.com/technomancy/tmk_keyboard/tree/atreus/keyboard/atreus
29
30**[mcdox](https://github.com/DavidMcEwan/mcdox)**
31- https://github.com/DavidMcEwan/tmk_keyboard/tree/master/keyboard/mcdox
32
33
34### converters \ No newline at end of file
diff --git a/docs/TMK-Own-Projects.md b/docs/TMK-Own-Projects.md
new file mode 100644
index 000000000..fb5b2c990
--- /dev/null
+++ b/docs/TMK-Own-Projects.md
@@ -0,0 +1,69 @@
1## TMK own projects by hasu
2Located in [tmk_keyboard](https://github.com/tmk/tmk_keyboard/tree/master/) repository.
3
4### converter
5* [ps2_usb] - [PS/2 keyboard to USB][GH_ps2]
6* [adb_usb] - [ADB keyboard to USB][GH_adb]
7* [m0110_usb] - [Macintosh 128K/512K/Plus keyboard to USB][GH_m0110]
8* [terminal_usb] - [IBM Model M terminal keyboard(PS/2 scancode set3) to USB][GH_terminal]
9* [news_usb] - [Sony NEWS keyboard to USB][GH_news]
10* [x68k_usb] - [Sharp X68000 keyboard to USB][GH_x68k]
11* [sun_usb] - [Sun] to USB(type4, 5 and 3?)
12* [pc98_usb] - [PC98] to USB
13* [usb_usb] - USB to USB(experimental)
14* [ascii_usb] - ASCII(Serial console terminal) to USB
15* [ibm4704_usb] - [IBM 4704 keyboard Converter][GH_ibm4704]
16
17### keyboard
18* [hhkb] - [Happy Hacking Keyboard pro][GH_hhkb]
19* [gh60] - [GH60][GH60_diy] DIY 60% keyboard [prototype][GH60_proto]
20* [hbkb] - [Happy Buckling spring keyboard][GH_hbkb](IBM Model M 60% mod)
21* [hid_liber] - [HID liberation][HID_liber] controller (by alaricljs)
22* [phantom] - [Phantom] keyboard (by Tranquilite)
23* [IIgs_Standard] - Apple [IIGS] keyboard mod(by JeffreySung)
24* [macway] - [Compact keyboard mod][GH_macway] [retired]
25* [KMAC] - Korean custom keyboard
26* [Lightsaber] - Korean custom keyboard
27
28[ps2_usb]: https://github.com/tmk/tmk_keyboard/tree/master/converter/ps2_usb/
29[adb_usb]: https://github.com/tmk/tmk_keyboard/tree/master/converter/adb_usb/
30[m0110_usb]: https://github.com/tmk/tmk_keyboard/tree/master/converter/m0110_usb
31[terminal_usb]: https://github.com/tmk/tmk_keyboard/tree/master/converter/terminal_usb/
32[news_usb]: https://github.com/tmk/tmk_keyboard/tree/master/converter/news_usb/
33[x68k_usb]: https://github.com/tmk/tmk_keyboard/tree/master/converter/x68k_usb/
34[sun_usb]: https://github.com/tmk/tmk_keyboard/tree/master/converter/sun_usb/
35[pc98_usb]: https://github.com/tmk/tmk_keyboard/tree/master/converter/pc98_usb/
36[usb_usb]: https://github.com/tmk/tmk_keyboard/tree/master/converter/usb_usb/
37[ascii_usb]: https://github.com/tmk/tmk_keyboard/tree/master/converter/ascii_usb/
38[ibm4704_usb]: https://github.com/tmk/tmk_keyboard/tree/master/converter/ibm4704_usb
39[hhkb]: https://github.com/tmk/tmk_keyboard/tree/master/keyboard/hhkb/
40[gh60]: https://github.com/tmk/tmk_keyboard/tree/master/keyboard/gh60/
41[hbkb]: https://github.com/tmk/tmk_keyboard/tree/master/keyboard/hbkb/
42[hid_liber]: https://github.com/tmk/tmk_keyboard/tree/master/keyboard/hid_liber/
43[phantom]: https://github.com/tmk/tmk_keyboard/tree/master/keyboard/phantom/
44[IIgs_Standard]: https://github.com/tmk/tmk_keyboard/tree/master/keyboard/IIgs/
45[macway]: https://github.com/tmk/tmk_keyboard/tree/master/keyboard/macway/
46[KMAC]: https://github.com/tmk/tmk_keyboard/tree/master/keyboard/kmac/
47[Lightsaber]: https://github.com/tmk/tmk_keyboard/tree/master/keyboard/lightsaber/
48
49[GH_macway]: http://geekhack.org/showwiki.php?title=Island:11930
50[GH_hhkb]: http://geekhack.org/showwiki.php?title=Island:12047
51[GH_ps2]: http://geekhack.org/showwiki.php?title=Island:14618
52[GH_adb]: http://geekhack.org/showwiki.php?title=Island:14290
53[GH_hhkb_bt]: http://geekhack.org/showwiki.php?title=Island:20851
54[GH_m0110]: http://geekhack.org/showwiki.php?title=Island:24965
55[GH_news]: http://geekhack.org/showwiki.php?title=Island:25759
56[GH_terminal]: http://geekhack.org/showwiki.php?title=Island:27272
57[GH_x68k]: http://geekhack.org/showwiki.php?title=Island:29060
58[GH_hbkb]: http://geekhack.org/showwiki.php?title=Island:29483
59[GH_ibm4704]: http://geekhack.org/index.php?topic=54706.0
60[HID_liber]: http://deskthority.net/wiki/HID_Liberation_Device_-_DIY_Instructions
61[Phantom]: http://geekhack.org/index.php?topic=26742
62[GH60_diy]: http://geekhack.org/index.php?topic=34959
63[GH60_proto]: http://geekhack.org/index.php?topic=37570.0
64[PC98]: http://en.wikipedia.org/wiki/NEC_PC-9801
65[Sun]: http://en.wikipedia.org/wiki/Sun-3
66[IIGS]: http://en.wikipedia.org/wiki/Apple_IIGS
67
68
69See other [[TMK Based Projects]] \ No newline at end of file
diff --git a/docs/Tap-Dance.md b/docs/Tap-Dance.md
new file mode 100644
index 000000000..25827a648
--- /dev/null
+++ b/docs/Tap-Dance.md
@@ -0,0 +1,144 @@
1# Tap Dance: A single key can do 3, 5, or 100 different things
2
3Hit the semicolon key once, send a semicolon. Hit it twice, rapidly -- send a colon. Hit it three times, and your keyboard's LEDs do a wild dance. That's just one example of what Tap Dance can do. It's one of the nicest community-contributed features in the firmware, conceived and created by [algernon](https://github.com/algernon) in [#451](https://github.com/qmk/qmk_firmware/pull/451). Here's how algernon describes the feature:
4
5With this feature one can specify keys that behave differently, based on the amount of times they have been tapped, and when interrupted, they get handled before the interrupter.
6
7To make it clear how this is different from `ACTION_FUNCTION_TAP`, lets explore a certain setup! We want one key to send `Space` on single tap, but `Enter` on double-tap.
8
9With `ACTION_FUNCTION_TAP`, it is quite a rain-dance to set this up, and has the problem that when the sequence is interrupted, the interrupting key will be send first. Thus, `SPC a` will result in `a SPC` being sent, if they are typed within `TAPPING_TERM`. With the tap dance feature, that'll come out as `SPC a`, correctly.
10
11The implementation hooks into two parts of the system, to achieve this: into `process_record_quantum()`, and the matrix scan. We need the latter to be able to time out a tap sequence even when a key is not being pressed, so `SPC` alone will time out and register after `TAPPING_TERM` time.
12
13But lets start with how to use it, first!
14
15First, you will need `TAP_DANCE_ENABLE=yes` in your `Makefile`, because the feature is disabled by default. This adds a little less than 1k to the firmware size. Next, you will want to define some tap-dance keys, which is easiest to do with the `TD()` macro, that - similar to `F()`, takes a number, which will later be used as an index into the `tap_dance_actions` array.
16
17This array specifies what actions shall be taken when a tap-dance key is in action. Currently, there are three possible options:
18
19* `ACTION_TAP_DANCE_DOUBLE(kc1, kc2)`: Sends the `kc1` keycode when tapped once, `kc2` otherwise. When the key is held, the appropriate keycode is registered: `kc1` when pressed and held, `kc2` when tapped once, then pressed and held.
20* `ACTION_TAP_DANCE_FN(fn)`: Calls the specified function - defined in the user keymap - with the final tap count of the tap dance action.
21* `ACTION_TAP_DANCE_FN_ADVANCED(on_each_tap_fn, on_dance_finished_fn, on_dance_reset_fn)`: Calls the first specified function - defined in the user keymap - on every tap, the second function on when the dance action finishes (like the previous option), and the last function when the tap dance action resets.
22
23The first option is enough for a lot of cases, that just want dual roles. For example, `ACTION_TAP_DANCE(KC_SPC, KC_ENT)` will result in `Space` being sent on single-tap, `Enter` otherwise.
24
25And that's the bulk of it!
26
27And now, on to the explanation of how it works!
28
29The main entry point is `process_tap_dance()`, called from `process_record_quantum()`, which is run for every keypress, and our handler gets to run early. This function checks whether the key pressed is a tap-dance key. If it is not, and a tap-dance was in action, we handle that first, and enqueue the newly pressed key. If it is a tap-dance key, then we check if it is the same as the already active one (if there's one active, that is). If it is not, we fire off the old one first, then register the new one. If it was the same, we increment the counter and the timer.
30
31This means that you have `TAPPING_TERM` time to tap the key again, you do not have to input all the taps within that timeframe. This allows for longer tap counts, with minimal impact on responsiveness.
32
33Our next stop is `matrix_scan_tap_dance()`. This handles the timeout of tap-dance keys.
34
35For the sake of flexibility, tap-dance actions can be either a pair of keycodes, or a user function. The latter allows one to handle higher tap counts, or do extra things, like blink the LEDs, fiddle with the backlighting, and so on. This is accomplished by using an union, and some clever macros.
36
37### Examples
38
39Here's a simple example for a single definition:
40
411. In your `makefile`, add `TAP_DANCE_ENABLE = yes`
422. In your `config.h` (which you can copy from `qmk_firmware/keyboards/planck/config.h` to your keymap directory), add `#define TAPPING_TERM 200`
433. In your `keymap.c` file, define the variables and definitions, then add to your keymap:
44
45```c
46//Tap Dance Declarations
47enum {
48 TD_ESC_CAPS = 0
49};
50
51//Tap Dance Definitions
52qk_tap_dance_action_t tap_dance_actions[] = {
53 //Tap once for Esc, twice for Caps Lock
54 [TD_ESC_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, KC_CAPS)
55// Other declarations would go here, separated by commas, if you have them
56};
57
58//In Layer declaration, add tap dance item in place of a key code
59TD(TD_ESC_CAPS)
60```
61
62Here's a more complex example involving custom actions:
63
64```c
65enum {
66 CT_SE = 0,
67 CT_CLN,
68 CT_EGG,
69 CT_FLSH,
70};
71
72/* Have the above three on the keymap, TD(CT_SE), etc... */
73
74void dance_cln_finished (qk_tap_dance_state_t *state, void *user_data) {
75 if (state->count == 1) {
76 register_code (KC_RSFT);
77 register_code (KC_SCLN);
78 } else {
79 register_code (KC_SCLN);
80 }
81}
82
83void dance_cln_reset (qk_tap_dance_state_t *state, void *user_data) {
84 if (state->count == 1) {
85 unregister_code (KC_RSFT);
86 unregister_code (KC_SCLN);
87 } else {
88 unregister_code (KC_SCLN);
89 }
90}
91
92void dance_egg (qk_tap_dance_state_t *state, void *user_data) {
93 if (state->count >= 100) {
94 SEND_STRING ("Safety dance!");
95 reset_tap_dance (state);
96 }
97}
98
99// on each tap, light up one led, from right to left
100// on the forth tap, turn them off from right to left
101void dance_flsh_each(qk_tap_dance_state_t *state, void *user_data) {
102 switch (state->count) {
103 case 1:
104 ergodox_right_led_3_on();
105 break;
106 case 2:
107 ergodox_right_led_2_on();
108 break;
109 case 3:
110 ergodox_right_led_1_on();
111 break;
112 case 4:
113 ergodox_right_led_3_off();
114 _delay_ms(50);
115 ergodox_right_led_2_off();
116 _delay_ms(50);
117 ergodox_right_led_1_off();
118 }
119}
120
121// on the fourth tap, set the keyboard on flash state
122void dance_flsh_finished(qk_tap_dance_state_t *state, void *user_data) {
123 if (state->count >= 4) {
124 reset_keyboard();
125 reset_tap_dance(state);
126 }
127}
128
129// if the flash state didnt happen, then turn off leds, left to right
130void dance_flsh_reset(qk_tap_dance_state_t *state, void *user_data) {
131 ergodox_right_led_1_off();
132 _delay_ms(50);
133 ergodox_right_led_2_off();
134 _delay_ms(50);
135 ergodox_right_led_3_off();
136}
137
138qk_tap_dance_action_t tap_dance_actions[] = {
139 [CT_SE] = ACTION_TAP_DANCE_DOUBLE (KC_SPC, KC_ENT)
140 ,[CT_CLN] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, dance_cln_finished, dance_cln_reset)
141 ,[CT_EGG] = ACTION_TAP_DANCE_FN (dance_egg)
142 ,[CT_FLSH] = ACTION_TAP_DANCE_FN_ADVANCED (dance_flsh_each, dance_flsh_finished, dance_flsh_reset)
143};
144```
diff --git a/docs/Test-for-ASCIIDOC.asciidoc b/docs/Test-for-ASCIIDOC.asciidoc
new file mode 100644
index 000000000..ce57d2781
--- /dev/null
+++ b/docs/Test-for-ASCIIDOC.asciidoc
@@ -0,0 +1,17 @@
1
2
3
4.Makefile
5[source,Makefile]
6----
7# Build Options
8# comment out to disable the options.
9#
10BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
11MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
12EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
13CONSOLE_ENABLE = yes # Console for debug(+400)
14COMMAND_ENABLE = yes # Commands for debug and configuration
15#SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
16NKRO_ENABLE = yes # USB Nkey Rollover - not yet supported in LUFA
17---- \ No newline at end of file
diff --git a/docs/USB-HID.md b/docs/USB-HID.md
new file mode 100644
index 000000000..1d0c45869
--- /dev/null
+++ b/docs/USB-HID.md
@@ -0,0 +1,11 @@
1# Getting Report Descriptor
2```
3 $ cd /sys/bus/usb/drivers/usbhid
4 $ ls
5 1-1.3.4:1.0 1-1.3.4:1.2 bind new_id uevent
6 1-1.3.4:1.1 1-1.3.4:1.3 module remove_id unbind
7 $ echo -n 1-1.4\:1.0 | sudo tee unbind
8 $ sudo lsusb -vvv -d 046d:c01d
9 $ echo -n 1-1.4\:1.0 | sudo tee bind
10```
11
diff --git a/docs/Unicode-and-additional-language-support.md b/docs/Unicode-and-additional-language-support.md
new file mode 100644
index 000000000..562dae4b5
--- /dev/null
+++ b/docs/Unicode-and-additional-language-support.md
@@ -0,0 +1,54 @@
1## Unicode support
2
3There are three Unicode keymap definition method available in QMK:
4
5### UNICODE_ENABLE
6
7Supports Unicode input up to 0xFFFF. The keycode function is `UC(n)` in
8keymap file, where *n* is a 4 digit hexadecimal.
9
10### UNICODEMAP_ENABLE
11
12Supports Unicode up to 0xFFFFFFFF. You need to maintain a separate mapping
13table `const uint32_t PROGMEM unicode_map[] = {...}` in your keymap file.
14The keycode function is `X(n)` where *n* is the array index of the mapping
15table.
16
17### UCIS_ENABLE
18
19TBD
20
21Unicode input in QMK works by inputing a sequence of characters to the OS,
22sort of like macro. Unfortunately, each OS has different ideas on how Unicode is inputted.
23
24This is the current list of Unicode input method in QMK:
25
26* UC_OSX: MacOS Unicode Hex Input support. Works only up to 0xFFFF. Disabled by default. To enable: go to System Preferences -> Keyboard -> Input Sources, and enable Unicode Hex.
27* UC_LNX: Unicode input method under Linux. Works up to 0xFFFFF. Should work almost anywhere on ibus enabled distros. Without ibus, this works under GTK apps, but rarely anywhere else.
28* UC_WIN: (not recommended) Windows built-in Unicode input. To enable: create registry key under `HKEY_CURRENT_USER\Control Panel\Input Method\EnableHexNumpad` of type `REG_SZ` called `EnableHexNumpad`, set its value to 1, and reboot. This method is not recommended because of reliability and compatibility issue, use WinCompose method below instead.
29* UC_WINC: Windows Unicode input using WinCompose. Requires [WinCompose](https://github.com/samhocevar/wincompose). Works reliably under many (all?) variations of Windows.
30
31## Additional language support
32
33In `quantum/keymap_extras/`, you'll see various language files - these work the same way as the alternative layout ones do. Most are defined by their two letter country/language code followed by an underscore and a 4-letter abbreviation of its name. `FR_UGRV` which will result in a `ù` when using a software-implemented AZERTY layout. It's currently difficult to send such characters in just the firmware.
34
35## International Characters on Windows
36
37[AutoHotkey](https://autohotkey.com) allows Windows users to create custom hotkeys among others.
38
39The method does not require Unicode support in the keyboard itself but depends instead of AutoHotkey running in the background.
40
41First you need to select a modifier combination that is not in use by any of your programs.
42CtrlAltWin is not used very widely and should therefore be perfect for this.
43There is a macro defined for a mod-tab combo `LCAG_T`.
44Add this mod-tab combo to a key on your keyboard, e.g.: `LCAG_T(KC_TAB)`.
45This makes the key behave like a tab key if pressed and released immediately but changes it to the modifier if used with another key.
46
47In the default script of AutoHotkey you can define custom hotkeys.
48
49 <^<!<#a::Send, ä
50 <^<!<#<+a::Send, Ä
51
52The hotkeys above are for the combination CtrlAltGui and CtrlAltGuiShift plus the letter a.
53AutoHotkey inserts the Text right of `Send, ` when this combination is pressed.
54
diff --git a/docs/Unit-testing.md b/docs/Unit-testing.md
new file mode 100644
index 000000000..3eac62509
--- /dev/null
+++ b/docs/Unit-testing.md
@@ -0,0 +1,68 @@
1# Unit Testing
2
3If you are new to unit testing, then you can find many good resources on internet. However most of it is scattered around in small pieces here and there, and there's also many different opinions, so I won't give any recommendations.
4
5Instead I recommend these two books, explaining two different styles of Unit Testing in detail.
6
7* "Test Driven Development: By Example: Kent Beck"
8* "Growing Object-Oriented Software, Guided By Tests: Steve Freeman, Nat Pryce"
9
10If you prefer videos there are Uncle Bob's [Clean Coders Videos](https://cleancoders.com/), which unfortunately cost quite a bit, especially if you want to watch many of them. But James Shore has a free [Let's Play](http://www.jamesshore.com/Blog/Lets-Play) video series.
11
12## Google Test and Google Mock
13It's possible to Unit Test your code using [Google Test](https://github.com/google/googletest). The Google Test framework also includes another component for writing testing mocks and stubs, called "Google Mock". For information how to write the actual tests, please refer to the documentation on that site.
14
15## Use of C++
16
17Note that Google Test and therefore any test has to be written in C++, even if the rest of the QMK codebases is written in C. This should hopefully not be a problem even if you don't know any C++, since there's quite clear documentation and examples of the required C++ features, and you can write the rest of the test code almost as you would write normal C. Note that some compiler errors which you might get can look quite scary, but just read carefully what it says, and you should be ok.
18
19One thing to remember, is that you have to append `extern "C"` around all of your C file includes.
20
21## Adding tests for new or existing features
22
23If you want to unit test some feature, then take a look at the existing serial_link tests, in the `quantum/serial_link/tests folder`, and follow the steps below to create a similar structure.
24
251. If it doesn't already exist, add a test subfolder to the folder containing the feature.
262. Create a `testlist.mk` and a `rules.mk` file in that folder.
273. Include those files from the root folder `testlist.mk`and `build_test.mk` respectively.
284. Add a new name for your testgroup to the `testlist.mk` file. Each group defined there will be a separate executable. And that's how you can support mocking out different parts. Note that it's worth adding some common prefix, just like it's done for the serial_link tests. The reason for that is that the make command allows substring filtering, so this way you can easily run a subset of the tests.
295. Define the source files and required options in the `rules.mk` file.
30 * `_SRC` for source files
31 * `_DEFS` for additional defines
32 * `_INC` for additional include folders
336. Write the tests in a new cpp file inside the test folder you created. That file has to be one of the files included from the `rules.mk` file.
34
35Note how there's several different tests, each mocking out a separate part. Also note that each of them only compiles the very minimum that's needed for the tests. It's recommend that you try to do the same. For a relevant video check out [Matt Hargett "Advanced Unit Testing in C & C++](https://www.youtube.com/watch?v=Wmy6g-aVgZI)
36
37## Running the tests
38
39To run all the tests in the codebase, type `make test`. You can also run test matching a substring by typing `make test-matchingsubstring` Note that the tests are always compiled with the native compiler of your platform, so they are also run like any other program on your computer.
40
41## Debugging the tests
42
43If there are problems with the tests, you can find the executable in the `./build/test` folder. You should be able to run those with GDB or a similar debugger.
44
45## Full Integration tests
46
47It's not yet possible to do a full integration test, where you would compile the whole firmware and define a keymap that you are going to test. However there are plans for doing that, because writing tests that way would probably be easier, at least for people that are not used to unit testing.
48
49In that model you would emulate the input, and expect a certain output from the emulated keyboard.
50
51# Tracing variables
52
53Sometimes you might wonder why a variable gets changed and where, and this can be quite tricky to track down without having a debugger. It's of course possible to manually add print statements to track it, but you can also enable the variable trace feature. This works for both for variables that are changed by the code, and when the variable is changed by some memory corruption.
54
55To take the feature into use add `VARIABLE_TRACE=x` to the end of you make command. `x` represents the number of variables you want to trace, which is usually 1.
56
57Then at a suitable place in the code, call `ADD_TRACED_VARIABLE`, to begin the tracing. For example to trace all the layer changes, you can do this
58```c
59void matrix_init_user(void) {
60 ADD_TRACED_VARIABLE("layer", &layer_state, sizeof(layer_state));
61}
62```
63
64This will add a traced variable named "layer" (the name is just for your information), which tracks the memory location of `layer_state`. It tracks 4 bytes (the size of `layer_state`), so any modification to the variable will be reported. By default you can not specify a size bigger than 4, but you can change it by adding `MAX_VARIABLE_TRACE_SIZE=x` to the end of the make command line.
65
66In order to actually detect changes to the variables you should call `VERIFY_TRACED_VARIABLES` around the code that you think that modifies the variable. If a variable is modified it will tell you between which two `VERIFY_TRACED_VARIABLES` calls the modification happened. You can then add more calls to track it down further. I don't recommend spamming the codebase with calls. It's better to start with a few, and then keep adding them in a binary search fashion. You can also delete the ones you don't need, as each call need to store the file name and line number in the ROM, so you can run out of memory if you add too many calls.
67
68Also remember to delete all the tracing code once you have found the bug, as you wouldn't want to create a pull request with tracing code. \ No newline at end of file
diff --git a/docs/_Sidebar.md b/docs/_Sidebar.md
new file mode 100644
index 000000000..f82c44c3e
--- /dev/null
+++ b/docs/_Sidebar.md
@@ -0,0 +1,21 @@
1* [Wiki Home](/qmk/qmk_firmware/wiki)
2* Getting started
3 * [QMK Overview](QMK-Overview)
4 * [Build Environment Setup](Build-Environment-Setup)
5* [Overview for keymap creators](Keymap)
6 * [Keycodes](Keycodes)
7 * [Layer switching](Key-Functions)
8 * [Leader Key](Leader-Key)
9 * [Macros](Macros)
10 * [Space Cadet](Space-Cadet-Shift)
11 * [Tap Dance](Tap-Dance)
12 * [Mouse keys](Mouse-keys)
13 * [FAQ: Creating a Keymap](FAQ-Keymap)
14 * [FAQ: Compiling QMK](FAQ-Build)
15* For hardware makers and modders
16 * [Modding your keyboard](Modding-your-keyboard)
17 * [Porting your keyboard to QMK](Porting-your-keyboard-to-QMK)
18 * [Adding features to QMK](Adding-features-to-QMK)
19* [General FAQ](FAQ)
20
21
diff --git a/docs/book.json b/docs/book.json
new file mode 100644
index 000000000..ee374b9c5
--- /dev/null
+++ b/docs/book.json
@@ -0,0 +1,22 @@
1{
2 "structure": {
3 "readme": "Home.md"
4 },
5 "plugins" : ["toolbar", "edit-link", "anchors"],
6 "pluginsConfig": {
7 "edit-link": {
8 "base": "https://github.com/qmk/qmk_firmware_docs/edit/master",
9 "label": "Suggest an edit"
10 },
11 "toolbar": {
12 "buttons":
13 [
14 {
15 "label": "QMK Firmware",
16 "icon": "fa fa-github",
17 "url": "https://github.com/qmk/qmk_firmware"
18 }
19 ]
20 }
21 }
22}
diff --git a/docs/gitbook/images/favicon.ico b/docs/gitbook/images/favicon.ico
new file mode 100644
index 000000000..bd9e65bce
--- /dev/null
+++ b/docs/gitbook/images/favicon.ico
Binary files differ
diff --git a/docs/gitbook/images/favicon.png b/docs/gitbook/images/favicon.png
new file mode 100644
index 000000000..0f3343db0
--- /dev/null
+++ b/docs/gitbook/images/favicon.png
Binary files differ
diff --git a/docs/mbed-cortex-porting.md b/docs/mbed-cortex-porting.md
new file mode 100644
index 000000000..b4b1314e6
--- /dev/null
+++ b/docs/mbed-cortex-porting.md
@@ -0,0 +1,36 @@
1## supported projects
2### PS/2 converter
3Confirmed it works on NXP LPC11U35.
4- http://developer.mbed.org/platforms/TG-LPC11U35-501/
5
6### Infinity keyboard
7It runs on Freescale MK20DX128.
8
9
10
11## compile error: cstddef
12Experienced this with arm-none-eabi-gcc (4.8.2-14ubuntu1+6) 4.8.2 on ubuntu 14.04.
13
14And resolved with 4.9.3 installed from:
15- https://launchpad.net/gcc-arm-embedded
16- https://launchpad.net/~terry.guo/+archive/ubuntu/gcc-arm-embedded
17
18```
19$ make -f Makefile.mbed
20mkdir -p build/.
21arm-none-eabi-g++ -include config_mbed.h -mcpu=cortex-m0 -mthumb -c -g -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections -fomit-frame-pointer -fshort-wchar -fno-builtin -MMD -MP -DNDEBUG -Os -DTARGET_LPC11U35_401 -DTARGET_M0 -DTARGET_NXP -DTARGET_LPC11UXX -DTOOLCHAIN_GCC_ARM -DTOOLCHAIN_GCC -D__CORTEX_M0 -DARM_MATH_CM0 -DMBED_BUILD_TIMESTAMP=1399108688.49 -D__MBED__=1 -std=gnu++98 -I. -I../../mbed-sdk/libraries/mbed/targets -I../../mbed-sdk/libraries/mbed/targets/cmsis -I../../mbed-sdk/libraries/mbed/targets/cmsis/TARGET_NXP -I../../mbed-sdk/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX -I../../mbed-sdk/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM -I../../mbed-sdk/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U35_501 -I../../mbed-sdk/libraries/mbed/targets/hal -I../../mbed-sdk/libraries/mbed/targets/hal/TARGET_NXP -I../../mbed-sdk/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11UXX -I../../mbed-sdk/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501 -I../../mbed-sdk/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_501 -I../../mbed-sdk/libraries/mbed -I../../mbed-sdk/libraries/mbed/hal -I../../mbed-sdk/libraries/mbed/api -I../../mbed-sdk/libraries/mbed/common -I../../mbed-sdk/libraries/USBDevice -I../../mbed-sdk/libraries/USBDevice/USBHID -I../../mbed-sdk/libraries/USBDevice/USBDevice -I../../mbed-sdk/libraries/USBDevice/USBAudio -I../../mbed-sdk/libraries/USBDevice/USBSerial -I../../mbed-sdk/libraries/USBDevice/USBMSD -I../../mbed-sdk/libraries/USBDevice/USBMIDI -I../../protocol/mbed -I../../common -I../../protocol -o build/./main.o main.cpp
22In file included from ../../mbed-sdk/libraries/mbed/api/mbed.h:21:0,
23 from main.cpp:1:
24../../mbed-sdk/libraries/mbed/api/platform.h:25:19: fatal error: cstddef: No such file or directory
25 #include <cstddef>
26 ^
27compilation terminated.
28make: *** [build/./main.o] Error 1
29
30[13:13] noname@desk:/mnt/old_root/home/noname/tmp/tmk_keyboard/converter/ps2_usb
31$ arm-none-eabi-gcc --version
32arm-none-eabi-gcc (4.8.2-14ubuntu1+6) 4.8.2
33Copyright (C) 2013 Free Software Foundation, Inc.
34This is free software; see the source for copying conditions. There is NO
35warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
36``` \ No newline at end of file