aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Nguyen <danny@80pct.com>2017-05-30 13:23:09 -0400
committerDanny Nguyen <danny@80pct.com>2017-05-30 13:29:30 -0400
commitbe204f9cddce6d1a795481c4cee51188eadaf181 (patch)
tree9d1f0333574c8cdc3297f97ebb3b58ad68c5d84a
parent4a8da0cb45abc9fd490944682acc71ccb0d5ee72 (diff)
downloadqmk_firmware-be204f9cddce6d1a795481c4cee51188eadaf181.tar.gz
qmk_firmware-be204f9cddce6d1a795481c4cee51188eadaf181.zip
Update readme
-rw-r--r--keyboards/nyquist/keymaps/hexwire/README.md68
-rw-r--r--keyboards/nyquist/keymaps/hexwire/keymap.c2
-rwxr-xr-xkeyboards/nyquist/keymaps/hexwire/keymap_converter.py39
-rwxr-xr-xkeyboards/nyquist/keymaps/hexwire/keymap_to_readme.rb2
-rw-r--r--keyboards/nyquist/readme.md43
5 files changed, 93 insertions, 61 deletions
diff --git a/keyboards/nyquist/keymaps/hexwire/README.md b/keyboards/nyquist/keymaps/hexwire/README.md
index edf2b6627..137bdead8 100644
--- a/keyboards/nyquist/keymaps/hexwire/README.md
+++ b/keyboards/nyquist/keymaps/hexwire/README.md
@@ -1,4 +1,4 @@
1Hexwire's Let's Split Layout 1Hexwire's Nyquist Layout
2============================ 2============================
3 3
4### Changes from default layout 4### Changes from default layout
@@ -23,73 +23,79 @@ Hexwire's Let's Split Layout
23 23
24## Layouts 24## Layouts
25 25
26### Qwerty 26### QWERTY
27 27
28``` 28```
29,----+----+----+----+----+----. ,----+----+----+----+----+----. 29,----+----+----+----+----+----. ,----+----+----+----+----+----.
30 TAB , Q , W , E , R , T , Y , U , I , O , P ,MINS, 30|ESC , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 0 ,BSPC|
31|----+----+----+----+----+----| |----+----+----+----+----+----| 31|----+----+----+----+----+----| |----+----+----+----+----+----|
32 X0 , A , S , D , F , G , H , J , K , L ,SCLN,QUOT, 32|TAB , Q , W , E , R , T , Y , U , I , O , P ,MINS|
33|----+----+----+----+----+----| |----+----+----+----+----+----| 33|----+----+----+----+----+----| |----+----+----+----+----+----|
34 LSFT, Z , X , C , V , B , N , M ,COMM,DOT ,SLSH, X4 , 34| X0 , A , S , D , F , G , H , J , K , L ,SCLN,QUOT|
35|----+----+----+----+----+----| |----+----+----+----+----+----| 35|----+----+----+----+----+----| |----+----+----+----+----+----|
36 X3 ,LCTL,LALT,LGUI, X1 ,SPC , BSPC, X2 ,LEFT,DOWN, UP ,RGHT 36|LSFT, Z , X , C , V , B , N , M ,COMM,DOT ,SLSH, X4 |
37|----+----+----+----+----+----| |----+----+----+----+----+----|
38| X3 ,LCTL,LALT,LGUI, X1 ,SPC , BSPC, X2 ,LEFT,DOWN, UP ,RGHT|
37`----+----+----+----+----+----' `----+----+----+----+----+----' 39`----+----+----+----+----+----' `----+----+----+----+----+----'
38``` 40```
39 41
40### Colemak 42### Colemak
41
42``` 43```
43,----+----+----+----+----+----. ,----+----+----+----+----+----. 44,----+----+----+----+----+----. ,----+----+----+----+----+----.
44 TAB , Q , W , F , P , G , J , L , U , Y ,SCLN,MINS, 45|ESC , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 0 ,BSPC|
46|----+----+----+----+----+----| |----+----+----+----+----+----|
47|TAB , Q , W , F , P , G , J , L , U , Y ,SCLN,MINS|
45|----+----+----+----+----+----| |----+----+----+----+----+----| 48|----+----+----+----+----+----| |----+----+----+----+----+----|
46 X0 , A , R , S , T , D , H , N , E , I , O ,QUOT, 49| X0 , A , R , S , T , D , H , N , E , I , O ,QUOT|
47|----+----+----+----+----+----| |----+----+----+----+----+----| 50|----+----+----+----+----+----| |----+----+----+----+----+----|
48 LSFT, Z , X , C , V , B , K , M ,COMM,DOT ,SLSH, X4 , 51|LSFT, Z , X , C , V , B , K , M ,COMM,DOT ,SLSH, X4 |
49|----+----+----+----+----+----| |----+----+----+----+----+----| 52|----+----+----+----+----+----| |----+----+----+----+----+----|
50 X3 ,LCTL,LALT,LGUI, X1 ,SPC , BSPC, X2 ,LEFT,DOWN, UP ,RGHT 53| X3 ,LCTL,LALT,LGUI, X1 ,SPC , BSPC, X2 ,LEFT,DOWN, UP ,RGHT|
51`----+----+----+----+----+----' `----+----+----+----+----+----' 54`----+----+----+----+----+----' `----+----+----+----+----+----'
52``` 55```
53 56
54### Dvorak 57### Dvorak
55
56``` 58```
57,----+----+----+----+----+----. ,----+----+----+----+----+----. 59,----+----+----+----+----+----. ,----+----+----+----+----+----.
58 TAB ,QUOT,COMM,DOT , P , Y , F , G , C , R , L ,MINS, 60|ESC , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 0 ,BSPC|
61|----+----+----+----+----+----| |----+----+----+----+----+----|
62|TAB ,QUOT,COMM,DOT , P , Y , F , G , C , R , L ,MINS|
59|----+----+----+----+----+----| |----+----+----+----+----+----| 63|----+----+----+----+----+----| |----+----+----+----+----+----|
60 X0 , A , O , E , U , I , D , H , R , N , S ,SLSH, 64| X0 , A , O , E , U , I , D , H , R , N , S ,SLSH|
61|----+----+----+----+----+----| |----+----+----+----+----+----| 65|----+----+----+----+----+----| |----+----+----+----+----+----|
62 LSFT,SCLN, Q , J , K , X , B , M , W , V , Z , X4 , 66|LSFT,SCLN, Q , J , K , X , B , M , W , V , Z , X4 |
63|----+----+----+----+----+----| |----+----+----+----+----+----| 67|----+----+----+----+----+----| |----+----+----+----+----+----|
64 X3 ,LCTL,LALT,LGUI, X1 ,SPC , BSPC, X2 ,LEFT,DOWN, UP ,RGHT 68| X3 ,LCTL,LALT,LGUI, X1 ,SPC , BSPC, X2 ,LEFT,DOWN, UP ,RGHT|
65`----+----+----+----+----+----' `----+----+----+----+----+----' 69`----+----+----+----+----+----' `----+----+----+----+----+----'
66``` 70```
67 71
68### Lower 72### Lower
69
70``` 73```
71,----+----+----+----+----+----. ,----+----+----+----+----+----. 74,----+----+----+----+----+----. ,----+----+----+----+----+----.
72 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 0 , , 75|TILD,EXLM, AT ,HASH,DLR ,PERC, CIRC,AMPR,ASTR,LPRN,RPRN,BSPC|
76|----+----+----+----+----+----| |----+----+----+----+----+----|
77| , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 0 , |
73|----+----+----+----+----+----| |----+----+----+----+----+----| 78|----+----+----+----+----+----| |----+----+----+----+----+----|
74 DEL ,CAPP,LEFT,RGHT, UP ,LBRC, RBRC, P4 , P5 , P6 ,PLUS,PIPE, 79|DEL ,CAPP,LEFT,RGHT, UP ,LBRC, RBRC, P4 , P5 , P6 ,PLUS,PIPE|
75|----+----+----+----+----+----| |----+----+----+----+----+----| 80|----+----+----+----+----+----| |----+----+----+----+----+----|
76 ,CPYP, , ,DOWN,LCBR, RCBR, P1 , P2 , P3 ,MINS, , 81| ,CPYP, , ,DOWN,LCBR, RCBR, P1 , P2 , P3 ,MINS, |
77|----+----+----+----+----+----| |----+----+----+----+----+----| 82|----+----+----+----+----+----| |----+----+----+----+----+----|
78 , , , , , , DEL , , P0 ,PDOT, , 83| , , , , , , DEL , , P0 ,PDOT, , |
79`----+----+----+----+----+----' `----+----+----+----+----+----' 84`----+----+----+----+----+----' `----+----+----+----+----+----'
80``` 85```
81 86
82### Raise 87### Raise
83
84``` 88```
85,----+----+----+----+----+----. ,----+----+----+----+----+----. 89,----+----+----+----+----+----. ,----+----+----+----+----+----.
86 ,EXLM, AT ,HASH,DLR ,PERC, CIRC,AMPR,ASTR,LPRN,RPRN, , 90|TILD,EXLM, AT ,HASH,DLR ,PERC, CIRC,AMPR,ASTR,LPRN,RPRN,BSPC|
87|----+----+----+----+----+----| |----+----+----+----+----+----| 91|----+----+----+----+----+----| |----+----+----+----+----+----|
88 DEL ,MPRV,MNXT,VOLU,PGUP,UNDS, EQL ,HOME, , , ,BSLS, 92| ,EXLM, AT ,HASH,DLR ,PERC, CIRC,AMPR,ASTR,LPRN,RPRN, |
89|----+----+----+----+----+----| |----+----+----+----+----+----| 93|----+----+----+----+----+----| |----+----+----+----+----+----|
90 MUTE,MSTP,MPLY,VOLD,PGDN,MINS, PLUS,END , , , , , 94|DEL ,MPRV,MNXT,VOLU,PGUP,UNDS, EQL ,HOME, , , ,BSLS|
91|----+----+----+----+----+----| |----+----+----+----+----+----| 95|----+----+----+----+----+----| |----+----+----+----+----+----|
92 , , , , , , , , , , , 96|MUTE,MSTP,MPLY,VOLD,PGDN,MINS, PLUS,END , , , , |
97|----+----+----+----+----+----| |----+----+----+----+----+----|
98| , , , , , , , , , , , |
93`----+----+----+----+----+----' `----+----+----+----+----+----' 99`----+----+----+----+----+----' `----+----+----+----+----+----'
94``` 100```
95 101
@@ -97,12 +103,14 @@ Hexwire's Let's Split Layout
97 103
98``` 104```
99,----+----+----+----+----+----. ,----+----+----+----+----+----. 105,----+----+----+----+----+----. ,----+----+----+----+----+----.
100 F12 , F1 , F2 , F3 , F4 , F5 , F6 , F7 , F8 , F9 ,F10 ,F11 , 106|F12 , F1 , F2 , F3 , F4 , F5 , F6 , F7 , F8 , F9 ,F10 ,F11 |
107|----+----+----+----+----+----| |----+----+----+----+----+----|
108| , , , , , , , , , , , |
101|----+----+----+----+----+----| |----+----+----+----+----+----| 109|----+----+----+----+----+----| |----+----+----+----+----+----|
102 , , , , , , , , , , , , 110| , , , , , , , , , , , |
103|----+----+----+----+----+----| |----+----+----+----+----+----| 111|----+----+----+----+----+----| |----+----+----+----+----+----|
104 , , , , , , , , , , , , 112| , , , , , , , , , , , |
105|----+----+----+----+----+----| |----+----+----+----+----+----| 113|----+----+----+----+----+----| |----+----+----+----+----+----|
106 , , , , , , , , , , , 114| , , , , , , , , , , , |
107`----+----+----+----+----+----' `----+----+----+----+----+----' 115`----+----+----+----+----+----' `----+----+----+----+----+----'
108``` 116```
diff --git a/keyboards/nyquist/keymaps/hexwire/keymap.c b/keyboards/nyquist/keymaps/hexwire/keymap.c
index ba8f96930..1c578ac80 100644
--- a/keyboards/nyquist/keymaps/hexwire/keymap.c
+++ b/keyboards/nyquist/keymaps/hexwire/keymap.c
@@ -119,7 +119,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
119 //|----+----+----+----+----+----| |----+----+----+----+----+----| 119 //|----+----+----+----+----+----| |----+----+----+----+----+----|
120 , , , , , , , , , , , , 120 , , , , , , , , , , , ,
121 //|----+----+----+----+----+----| |----+----+----+----+----+----| 121 //|----+----+----+----+----+----| |----+----+----+----+----+----|
122 , , , , , , , , , , , 122 , , , , , , , , , , ,
123 //`----+----+----+----+----+----' `----+----+----+----+----+----' 123 //`----+----+----+----+----+----' `----+----+----+----+----+----'
124 ), 124 ),
125 125
diff --git a/keyboards/nyquist/keymaps/hexwire/keymap_converter.py b/keyboards/nyquist/keymaps/hexwire/keymap_converter.py
new file mode 100755
index 000000000..683f64da4
--- /dev/null
+++ b/keyboards/nyquist/keymaps/hexwire/keymap_converter.py
@@ -0,0 +1,39 @@
1#!/usr/bin/env python
2
3import re
4
5class KeymapConverter:
6
7 def __init__(self, filename):
8 self.filename = filename
9
10 def read_keymaps(self):
11 with open(self.filename) as f:
12 lines = f.readlines()
13
14 mode = 0
15 for line in lines:
16 line = line[:-1]
17 if mode == 0:
18 if "KC_KEYMAP" in line:
19 matches = re.match(r'.*\[(.*)\] = .*', line)
20 if matches:
21 layer_name = matches.group(1)
22 layer_name = layer_name[1:].capitalize()
23 print '###', layer_name
24 print '```'
25 mode = 1
26 elif mode == 1:
27 if "//" in line:
28 print line[4:]
29 elif ")" in line:
30 mode = 0
31 print '```'
32 print
33 elif line[-1] == ',':
34 print "|" + line[5:-1] + "|"
35 else:
36 print "|" + line[5:] + "|"
37
38converter = KeymapConverter('keymap.c')
39converter.read_keymaps()
diff --git a/keyboards/nyquist/keymaps/hexwire/keymap_to_readme.rb b/keyboards/nyquist/keymaps/hexwire/keymap_to_readme.rb
index 158e02647..7285b008a 100755
--- a/keyboards/nyquist/keymaps/hexwire/keymap_to_readme.rb
+++ b/keyboards/nyquist/keymaps/hexwire/keymap_to_readme.rb
@@ -15,7 +15,7 @@ class KeymapConverter
15 def parse_line(line) 15 def parse_line(line)
16 case @mode 16 case @mode
17 when :search 17 when :search
18 if line =~ /COMPACT_KEYMAP/ 18 if line =~ /KC_KEYMAP/
19 puts "### #{line}" 19 puts "### #{line}"
20 puts "```" 20 puts "```"
21 @mode = :parse 21 @mode = :parse
diff --git a/keyboards/nyquist/readme.md b/keyboards/nyquist/readme.md
index 7e5a54602..b2bf01389 100644
--- a/keyboards/nyquist/readme.md
+++ b/keyboards/nyquist/readme.md
@@ -1,51 +1,44 @@
1Let's Split 1The Nyquist Keyboard
2====== 2====================
3 3
4This readme and most of the code are from https://github.com/ahtn/tmk_keyboard/ 4The Nyquist is a 60% split ortholinear board by [Keebio](https://keeb.io). It has been designed in a similar manner to the Let's Split v2 by /u/wootpatoot. Each half of the keyboard is arranged in a 5x6 grid. There is an option to use a 2u key with PCB mounted MX stablizers, in place of the two innermost 1u keys on the bottom row.
5
6Split keyboard firmware for Arduino Pro Micro or other ATmega32u4
7based boards.
8 5
9 6
10## Build Guide 7## Build Guide
11 8
12A build guide for putting together the Let's Split v2 can be found here: [An Overly Verbose Guide to Building a Let's Split Keyboard](https://github.com/nicinabox/lets-split-guide) 9Since the design is very similar to the Let's Split v2, the build guide for that can be used while the build guide for the Nyquist is being fully developed. A build guide for putting together the Let's Split v2 can be found here: [An Overly Verbose Guide to Building a Let's Split Keyboard](https://github.com/nicinabox/lets-split-guide)
13 10
14There is additional information there about flashing and adding RGB underglow. 11There is additional information there about flashing and adding RGB underglow.
15 12
16## First Time Setup 13## First Time Setup
17 14
18Download or clone the whole firmware and navigate to the keyboards/lets_split directory. Once your dev env is setup, you'll be able to generate the default .hex using: 15Download or clone the whole firmware and navigate to the keyboards/nyquist directory. Once your development environment is setup, you'll be able to generate the default .hex using:
19 16
20``` 17```
21$ make rev2 18$ make serial
22``` 19```
23 20
24You will see a lot of output and if everything worked correctly you will see the built hex files: 21You will see a lot of output and if everything worked correctly you will see the built hex file:
25 22
26``` 23```
27lets_split_rev2_serial.hex 24nyquist_rev1_serial.hex
28lets_split_rev2_i2c.hex
29``` 25```
30 26
31If you would like to use one of the alternative keymaps, or create your own, copy one of the existing [keymaps](keymaps/) and run make like so: 27If you would like to use one of the alternative keymaps, or create your own, copy one of the existing [keymaps](keymaps/) and run make like so:
32 28
33 29
34``` 30```
35$ make rev2-YOUR_KEYMAP_NAME 31$ make YOUR_KEYMAP_NAME
36``` 32```
37 33
38If everything worked correctly you will see a file: 34If everything worked correctly you will see a file:
39 35
40``` 36```
41lets_split_rev2_YOUR_KEYMAP_NAME.hex 37nyquist_rev1_YOUR_KEYMAP_NAME.hex
42``` 38```
43 39
44For more information on customizing keymaps, take a look at the primary documentation for [Customizing Your Keymap](/readme.md##customizing-your-keymap) in the main readme.md. 40For more information on customizing keymaps, take a look at the primary documentation for [Customizing Your Keymap](/readme.md##customizing-your-keymap) in the main readme.md.
45 41
46### Let's split 1.0
47If you have a first generation Let's Split you will need to use the revision 1 code. To do so, use `rev1` in all your commands instead.
48
49Features 42Features
50-------- 43--------
51 44
@@ -61,6 +54,9 @@ Some features supported by the firmware:
61 reason you require a faster connection between the two halves. Note this 54 reason you require a faster connection between the two halves. Note this
62 requires an extra wire between halves and pull-up resistors on the data lines. 55 requires an extra wire between halves and pull-up resistors on the data lines.
63 56
57### 2u Support
58In place of the two innermost 1u keys on the bottom row, a single 2u key can be used. If you choose to use this option, then in your keymap, set the innermost key on the bottom row to what you want the 2u key to be. For example, if using the 2u key on the left half of the board, set the keycode for the lower right key.
59
64Required Hardware 60Required Hardware
65----------------- 61-----------------
66 62
@@ -100,21 +96,10 @@ The pull-up resistors may be placed on either half. It is also possible
100to use 4 resistors and have the pull-ups in both halves, but this is 96to use 4 resistors and have the pull-ups in both halves, but this is
101unnecessary in simple use cases. 97unnecessary in simple use cases.
102 98
103Notes on Software Configuration
104-------------------------------
105
106Configuring the firmware is similar to any other QMK project. One thing
107to note is that `MATIX_ROWS` in `config.h` is the total number of rows between
108the two halves, i.e. if your split keyboard has 4 rows in each half, then
109`MATRIX_ROWS=8`.
110
111Also the current implementation assumes a maximum of 8 columns, but it would
112not be very difficult to adapt it to support more if required.
113
114Flashing 99Flashing
115------- 100-------
116From the keymap directory run `make SUBPROJECT-KEYMAP-avrdude` for automatic serial port resolution and flashing. 101From the keymap directory run `make SUBPROJECT-KEYMAP-avrdude` for automatic serial port resolution and flashing.
117Example: `make rev2-serial-avrdude` 102Example: `make rev1-serial-avrdude`
118 103
119 104
120Choosing which board to plug the USB cable into (choosing Master) 105Choosing which board to plug the USB cable into (choosing Master)