]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/ergodox/readme.md
Noting the change directory.
[qmk_firmware.git] / keyboards / ergodox / readme.md
1 # Infinity on Ubuntu Quickstart
2
3 To build an Infinity firmware under Ubuntu (tested on 15.10):
4
5   - Run the `util/install_dependencies.sh` script as root.
6   - Check out the submodules with `git submodule update --init --recursive`
7   - Go into the ErgoDox directory with `cd keyboards/ergodox`
8   - Build the firmware with `make keymap=keymapname subproject=infinity`
9   - Plug in the left hand keyboard only.
10   - Press the program button (back of keyboard, above thumb pad).
11   - Install the firmware with `sudo make dfu-util keymap=keymapname subproject=infinity`
12   - Install the right hand firmware, but I haven't figured this out yet.
13
14 # Getting started
15
16 There are two main ways you could customize the ErgoDox (EZ and Infinity)
17
18 ## The Easy Way: Use an existing firmware file and just flash it (ErgoDox EZ only)
19
20 1. Download and install the [Teensy Loader](https://www.pjrc.com/teensy/loader.html). Some Linux distributions already provide a binary (may be called `teensy-loader-cli`), so you may prefer to use this.
21 2. Find a firmware file you like. There are [dozens of community-contributed keymaps](http://qmk.fm/keyboards/ergodox/) you can browse and download. You can also use the [Massdrop configurator](https://keyboard-configurator.massdrop.com/ext/ergodox) to create a firmware Hex file you like.
22 3. Download the firmware file
23 4. Connect the keyboard, press its Reset button (gently insert a paperclip into the hole in the top-right corner) and flash it using the Teensy loader you installed on step 1 and the firmware you downloaded.
24
25 ## More technical: compile an existing keymap, or create your own totally custom firmware by editing the source files.
26
27 This requires a little bit of familiarity with coding.
28 If you are just compiling an existing keymap and don't want to create your own, you can skip step 4, 5 and 8.
29
30 1. Go to https://github.com/jackhumbert/qmk_firmware and read the readme at the base of this repository, top to bottom. Then come back here :)
31 2. Clone the repository (download it)
32 3. Set up a build environment as per the readme.
33 4. Copy `keyboards/ergodox/keymaps/default/keymap.c` into `keymaps/your_name/keymap.c` (for example, `keymaps/german/keymap.c`)
34 5. Edit this file, changing keycodes to your liking (see "Finding the keycodes you need" below). Try to edit the comments as well, so the "text graphics" represent your layout correctly. See below for more tips on sharing your work.
35 6. Compile your firmware by running `make keymap=keymap_name`. For example, `make keymap=german`. This will result in a hex file, which will be called `ergodox_ez_keymap_name.hex`, e.g. `ergodox_ez_german.hex`. For **Infinity ErgoDox** you need to add `subproject=infinity` to the make command.
36 7. **ErgoDox EZ** - Flash this hex file using the [Teensy loader](https://www.pjrc.com/teensy/loader.html) as described in step 4 in the "Easy Way" above. If you prefer you can automatically flash the hex file after successful build by running `make teensy keymap=keymap_name`.
37
38    **Infinity ErgoDox** - Flash the firmware by running `make dfu-util keymap=keymap_name subproject=infinity`
39 8. Submit your work as a pull request to this repository, so others can also use it. :) See below on specifics.
40
41 Good luck! :)
42
43 ## Contributing your keymap
44
45 The QMK firmware is open-source, so it would be wonderful to have your contribution! Within a very short time after launching we already amassed dozens of user-contributed keymaps, with all sorts of creative improvements and tweaks. This is very valuable for people who aren't comfortable coding, but do want to customize their ErgoDox. To make it easy for these people to use your layout, I recommend submitting your PR in the following format.
46
47 1. All work goes inside your keymap subdirectory (`keymaps/german` in this example).
48 2. `keymap.c` - this is your actual keymap file; please update the ASCII comments in the file so they correspond with what you did.
49 3. `readme.md` - a readme file, which GitHub would display by default when people go to your directory. Explain what's different about your keymap, what you tweaked or how it works. No specific format to follow, just communicate what you did. :)
50 4. Any graphics you wish to add. This is absolutely not a must. If you feel like it, you can use [Keyboard Layout Editor](http://keyboard-layout-editor.com) to make something and grab a screenshot, but it's really not a must. If you do have graphics, your readme can just embed the graphic as a link, just like I did with the default layout.
51
52
53 ## Finding the keycodes you need
54
55 Let's say you want a certain key in your layout to send a colon; to figure out what keycode to use to make it do that, you're going to need `quantum/keymap_common.h`.
56
57 That file contains a big list of all of the special, fancy keys (like, being able to send % on its own and whatnot).
58
59 If you want to send a plain vanilla key, you can look up its code under `doc/keycode.txt`. That's where all the boring keys hang out.