diff options
-rw-r--r-- | build_keyboard.mk | 14 | ||||
-rw-r--r-- | keyboards/ergodox_infinity/readme.md | 24 |
2 files changed, 5 insertions, 33 deletions
diff --git a/build_keyboard.mk b/build_keyboard.mk index e5edacfd8..c1f4f9338 100644 --- a/build_keyboard.mk +++ b/build_keyboard.mk | |||
@@ -32,20 +32,6 @@ endif | |||
32 | # this an empty or blank macro! | 32 | # this an empty or blank macro! |
33 | KEYMAP_OUTPUT := $(BUILD_DIR)/obj_$(TARGET) | 33 | KEYMAP_OUTPUT := $(BUILD_DIR)/obj_$(TARGET) |
34 | 34 | ||
35 | # For split boards we need to set a master half. | ||
36 | MASTER ?= left | ||
37 | ifdef master | ||
38 | MASTER = $(master) | ||
39 | endif | ||
40 | |||
41 | ifeq ($(MASTER),right) | ||
42 | OPT_DEFS += -DMASTER_IS_ON_RIGHT | ||
43 | else | ||
44 | ifneq ($(MASTER),left) | ||
45 | $(error MASTER does not have a valid value(left/right)) | ||
46 | endif | ||
47 | endif | ||
48 | |||
49 | ifdef SKIP_VERSION | 35 | ifdef SKIP_VERSION |
50 | OPT_DEFS += -DSKIP_VERSION | 36 | OPT_DEFS += -DSKIP_VERSION |
51 | endif | 37 | endif |
diff --git a/keyboards/ergodox_infinity/readme.md b/keyboards/ergodox_infinity/readme.md index 73ee3bc1d..c51bdd7c8 100644 --- a/keyboards/ergodox_infinity/readme.md +++ b/keyboards/ergodox_infinity/readme.md | |||
@@ -13,18 +13,16 @@ for the left and right halves seperately. To flash them: | |||
13 | 13 | ||
14 | - Install the firmware with `sudo make ergodox_infinity:keymapname:dfu-util` | 14 | - Install the firmware with `sudo make ergodox_infinity:keymapname:dfu-util` |
15 | 15 | ||
16 | - Build right hand firmware with `make ergodox_infinity:keymapname MASTER=right` | ||
17 | |||
18 | - Plug in the right hand keyboard only. | 16 | - Plug in the right hand keyboard only. |
19 | 17 | ||
20 | - Press the program button (back of keyboard, above thumb pad). | 18 | - Press the program button (back of keyboard, above thumb pad). |
21 | 19 | ||
22 | - Install the firmware with `sudo make ergodox_infinity:keymapname:dfu-util MASTER=right` | 20 | - Install the firmware with `sudo make ergodox_infinity:keymapname:dfu-util` |
23 | 21 | ||
24 | More information on the Infinity firmware is available in the [TMK/chibios for | 22 | More information on the Infinity firmware is available in the [TMK/chibios for |
25 | Input Club Infinity Ergodox](https://github.com/fredizzimo/infinity_ergodox/blob/master/README.md) | 23 | Input Club Infinity Ergodox](https://github.com/fredizzimo/infinity_ergodox/blob/master/README.md) |
26 | 24 | ||
27 | ## Infinity Master/Two Halves | 25 | ## Infinity Two Halves |
28 | 26 | ||
29 | The Infinity is two completely independent keyboards, that can connect together. | 27 | The Infinity is two completely independent keyboards, that can connect together. |
30 | You have a few options in how you flash the firmware: | 28 | You have a few options in how you flash the firmware: |
@@ -32,21 +30,10 @@ You have a few options in how you flash the firmware: | |||
32 | - Add `#define EE_HANDS` to your config.h, initialize the EEPROM values (see below), | 30 | - Add `#define EE_HANDS` to your config.h, initialize the EEPROM values (see below), |
33 | and then flash the same firmware to both halves. | 31 | and then flash the same firmware to both halves. |
34 | 32 | ||
35 | - Flash the left half, rebuild the firmware with "MASTER=right" and then flash | 33 | - Flash with the instructions above, which assume the left hand is connected to USB. |
36 | the right half. This allows you to plug in either half directly to the | ||
37 | computer and is what the above instructions do. | ||
38 | |||
39 | - Flash the left half, then flash the same firmware on the right. This only | ||
40 | works when the left half is plugged directly to the computer and the keymap | ||
41 | is mirrored. It saves the small extra step of rebuilding with | ||
42 | "MASTER=right". | ||
43 | |||
44 | - The same as the previous one but with "MASTER=right" when you build the | ||
45 | firmware, then flash the same firmware to both halves. You just have to | ||
46 | directly connect the right half to the computer. | ||
47 | 34 | ||
48 | - For minor changes such as changing only the keymap without having updated | 35 | - For minor changes such as changing only the keymap without having updated |
49 | any part of the firmware code itself, you can program only the MASTER half, | 36 | any part of the firmware code itself, you can program only the half connected to USB, |
50 | but it is safest to program both halves. | 37 | but it is safest to program both halves. |
51 | 38 | ||
52 | ### EE_HANDS initialization | 39 | ### EE_HANDS initialization |
@@ -74,7 +61,6 @@ They only need to be done once, unless you reset the EEPROM later. | |||
74 | - Add `#define EE_HANDS` to the config.h file of your keymap, and build your firmware using | 61 | - Add `#define EE_HANDS` to the config.h file of your keymap, and build your firmware using |
75 | `make ergodox_infinity:keymapname`. | 62 | `make ergodox_infinity:keymapname`. |
76 | 63 | ||
77 | - After this, you can flash both halves with the same firmware, _without_ having to rebuild with | 64 | - After this, you can flash both halves with the same firmware, _without_ risking a mirrored keyboard when connected the wrong way. |
78 | "MASTER=right" or risking a mirrored keyboard when connected the wrong way. | ||
79 | If you reset your EEPROM later, you'll have to follow these steps again, though. | 65 | If you reset your EEPROM later, you'll have to follow these steps again, though. |
80 | 66 | ||