aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErez Zukerman <bulk@ezuk.org>2016-08-26 07:32:24 -0400
committerGitHub <noreply@github.com>2016-08-26 07:32:24 -0400
commit2c8f6557e6994d3fe4fa2038f6cb4a4e51caf3a9 (patch)
tree7fec378ddfbcaf38959187daeee607583d573b31
parent17511870bcd607791958761e8f80185fecbb7d21 (diff)
parent0dfd1712bb22be9fe63b8754eb8fe72675906c6f (diff)
downloadqmk_firmware-2c8f6557e6994d3fe4fa2038f6cb4a4e51caf3a9.tar.gz
qmk_firmware-2c8f6557e6994d3fe4fa2038f6cb4a4e51caf3a9.zip
Merge pull request #664 from linsomniac/infinity_readme
Adding nicer Infinity build instructions.
-rw-r--r--keyboards/ergodox/readme.md167
1 files changed, 144 insertions, 23 deletions
diff --git a/keyboards/ergodox/readme.md b/keyboards/ergodox/readme.md
index f81d7cd8d..b113ca7dd 100644
--- a/keyboards/ergodox/readme.md
+++ b/keyboards/ergodox/readme.md
@@ -1,33 +1,139 @@
1# Getting started 1# The Easy Way
2 2
3There are two main ways you could customize the ErgoDox (EZ and Infinity) 3If you can find firmware someone else has made that does what you want, that
4is the easiest way to customize your ErgoDox. It requires no programming
5experience or the setup of a build environment.
4 6
5## The Easy Way: Use an existing firmware file and just flash it (ErgoDox EZ only) 7Quickstart:
6 8
71. 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. 9 - Find and download an existing firmware
82. 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. 10 [from Other Firmware Options](#other-firmware-options)
93. Download the firmware file
104. 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.
11 11
12## More technical: compile an existing keymap, or create your own totally custom firmware by editing the source files. 12 - Then flash the firmware to your [ErgoDox Ez](#ergodox-ez)
13 or [ErgoDox Infinity](#ergodox-infinity)
13 14
14This requires a little bit of familiarity with coding. 15# Customizing Keymaps
15If you are just compiling an existing keymap and don't want to create your own, you can skip step 4, 5 and 8.
16 16
171. 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 :) 17There are many existing keymaps in the "keymaps" directory. If you just want
182. Clone the repository (download it) 18to use one of them, you don't need to modify keymaps and can just build and
193. Set up a build environment as per the readme. 19flash the firmware as described below. These directories each have a
204. Copy `keyboards/ergodox/keymaps/default/keymap.c` into `keymaps/your_name/keymap.c` (for example, `keymaps/german/keymap.c`) 20"readme.md" file which describe them.
215. 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.
226. 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.
237. **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`.
24 21
25 **Infinity ErgoDox** - Flash the firmware by running `make dfu-util keymap=keymap_name subproject=infinity` 22If none of the existing keymaps suit you, you can create your own custom
268. Submit your work as a pull request to this repository, so others can also use it. :) See below on specifics. 23keymap. This will require some experience with coding. Follow these steps
24to customize a keymap:
27 25
28Good luck! :) 26 - Read the [qmk firmware README](https://github.com/jackhumbert/qmk_firmware) from top to bottom. Then come back here. :)
29 27
30## Contributing your keymap 28 - Clone the qmk_firmware repository
29
30 - Set up your build environment (see below).
31
32 - Make a new directory under "keymaps" to hold your customizations.
33
34 - Copy an existing keymap that is close to what you want, such as
35 "keymaps/default/keymap.c".
36
37 - Use an editor to modify the new "keymap.c". See "Finding the keycodes you
38 need" below). Try to edit the comments as well, so the "text graphics"
39 represent your layout correctly.
40
41 - Compile your new firmware (see below)
42
43 - Flash your firmware (see below)
44
45 - Test the changes.
46
47 - Submit your keymap as a pull request to the qmk_firmware repository so
48 others can use it. You will want to add a "readme.md" that describes the
49 keymap.
50
51# Build Dependencies
52
53Before you can build, you will need the build dependencies. There is a script
54to try to do this for Linux:
55
56 - Run the `util/install_dependencies.sh` script as root.
57
58For the Infinity, you need the chibios submodules to be checked out or you
59will receive errors about the build process being unable to find the chibios
60files. Check them out with:
61
62 - Go to the top level repo directory and run: `git submodule update --init --recursive`
63
64# Flashing Firmware
65
66## ErgoDox Ez
67
68The Ez uses the [Teensy Loader](https://www.pjrc.com/teensy/loader.html).
69
70Linux users need to modify udev rules as described on the Teensy Linux page.
71Some distributions provide a binary, maybe called `teensy-loader-cli`).
72
73To flash the firmware:
74
75 - Build the firmware with `make keymap=keymapname`, for example `make
76 keymap=default`
77
78 - This will result in a hex file called `ergodox_ez_keymapname.hex`, e.g.
79 `ergodox_ez_default.hex`
80
81 - Start the teensy loader.
82
83 - Load the .hex file into it.
84
85 - Press the Reset button by inserting a paperclip gently into the reset hole
86 in the top right corder.
87
88 - Click the button in the Teensy app to download the firmware.
89
90## ErgoDox Infinity
91
92The Infinity is two completely independent keyboards, and needs to be flashed
93for the left and right halves seperately. To flash them:
94
95 - Build the firmware with `make keymap=keymapname subproject=infinity`
96
97 - Plug in the left hand keyboard only.
98
99 - Press the program button (back of keyboard, above thumb pad).
100
101 - Install the firmware with `sudo make dfu-util keymap=keymapname subproject=infinity`
102
103 - Build left hand firmware with `make keymap=keymapname subproject=infinity MASTER=right`
104
105 - Plug in the right hand keyboard only.
106
107 - Press the program button (back of keyboard, above thumb pad).
108
109 - Install the firmware with `sudo make dfu-util keymap=keymapname subproject=infinity MASTER=right`
110
111More information on the Infinity firmware is available in the [TMK/chibios for
112Input Club Infinity Ergodox](https://github.com/fredizzimo/infinity_ergodox/blob/master/README.md)
113
114### Infinity Master/Two Halves
115
116The Infinity is two completely independent keyboards, that can connect together.
117You have a few options in how you flash the firmware:
118
119- Flash the left half, rebuild the firmware with "MASTER=right" and then flash
120 the right half. This allows you to plug in either half directly to the
121 computer and is what the above instructions do.
122
123- Flash the left half, then flash the same firmware on the right. This only
124 works when the left half is plugged directly to the computer and the keymap
125 is mirrored. It saves the small extra step of rebuilding with
126 "MASTER=right".
127
128- The same as the previous one but with "MASTER=right" when you build the
129 firmware, then flash the same firmware to both halves. You just have to
130 directly connect the right half to the computer.
131
132- For minor changes such as changing only the keymap without having updated
133 any part of the firmware code itself, you can program only the MASTER half.
134 It is safest to program both halves though.
135
136# Contributing your keymap
31 137
32The 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. 138The 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.
33 139
@@ -36,11 +142,26 @@ The QMK firmware is open-source, so it would be wonderful to have your contribut
363. `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. :) 1423. `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. :)
374. 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. 1434. 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.
38 144
39 145# Finding the keycodes you need
40## Finding the keycodes you need
41 146
42Let'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`. 147Let'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`.
43 148
44That file contains a big list of all of the special, fancy keys (like, being able to send % on its own and whatnot). 149That file contains a big list of all of the special, fancy keys (like, being able to send % on its own and whatnot).
45 150
46If 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. 151If 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.
152
153# Other Firmware Options
154
155There are external tools for customizing the layout, but those do not use
156the featurs of this qmk firmware. These sites include:
157
158 - [Massdrop configurator](https://keyboard-configurator.massdrop.com/ext/ergodox) for Ez
159 - [Input Club configurator](https://input.club/configurator-ergodox) for Infinity, provides left and right files
160
161You can also find an existing firmware that you like, for example from:
162
163 - [Dozens of community-contributed keymaps](http://qmk.fm/keyboards/ergodox/)
164
165This qmk firmware also provides the ability to customize keymaps, but requires
166a toolchain to build the firmware. See below for instructions on building
167firmware and customizing keymaps.