]> git.donarmstrong.com Git - qmk_firmware.git/blob - README.md
a6d92e006ae12817d3c3b7f81d14db52b905740d
[qmk_firmware.git] / README.md
1 Quantum MK Firmware
2 ================================
3 This is a keyboard firmware based on the [tmk_keyboard firmware](http://github.com/tmk/tmk_keyboard) with some useful features for Atmel AVR controller, and more specifically, the OLKB product line.
4
5 Updates
6 -------
7 #### 2015/04/22
8 Core library was separated to other branch `core`. <https://github.com/tmk/tmk_keyboard/tree/core>
9
10 In `Makefile` you need to set `TMK_DIR` to indicate core library location now.
11
12     TMK_DIR = ../../tmk_core
13
14
15
16 Features
17 --------
18 These features can be used in your keyboard.
19
20 * Multi-layer Keymap  - Multiple keyboard layouts with layer switching
21 * Mouse key           - Mouse control with keyboard
22 * System Control Key  - Power Down, Sleep, Wake Up and USB Remote Wake up
23 * Media Control Key   - Volume Down/Up, Mute, Next/Prev track, Play, Stop and etc
24 * USB NKRO            - 120 keys(+ 8 modifiers) simultaneously
25 * PS/2 mouse support  - PS/2 mouse(TrackPoint) as composite device
26 * Keyboard protocols  - PS/2, ADB, M0110, Sun and other old keyboard protocols
27 * User Function       - Customizable function of key with writing code
28 * Macro               - Very primitive at this time
29 * Keyboard Tricks     - Oneshot modifier and modifier with tapping feature
30 * Debug Console       - Messages for debug and interaction with firmware
31 * Virtual DIP Switch  - Configurations stored EEPROM(Boot Magic)
32 * Locking CapsLock    - Mechanical switch support for CapsLock
33 * Breathing Sleep LED - Sleep indicator with charm during USB suspend
34 * Backlight           - Control backlight levels
35
36
37
38 Projects
39 --------
40 You can find some keyboard specific projects under `converter` and `keyboard` directory.
41
42 ## Main projects
43
44 ### OLKB products
45 * [planck](keyboard/planck/)                - [Planck] Ortholinear 40% keyboard
46 * [preonic](keyboard/preonic/)              - [Preonic] Ortholinear 50% keyboard
47 * [atomic](keyboard/atomic/)                - [Atomic] Ortholinear 60% keyboard
48
49 ### Ergodox EZ
50 * [ergodox_ez](keyboard/ergodox_ez)         - [Ergodox_EZ] Assembled split keyboard
51
52 ## Other projects
53
54 ### converter
55 * [ps2_usb](converter/ps2_usb/)             - [PS/2 keyboard to USB][GH_ps2]
56 * [adb_usb](converter/adb_usb/)             - [ADB keyboard to USB][GH_adb]
57 * [m0110_usb](converter/m0110_usb)          - [Macintosh 128K/512K/Plus keyboard to USB][GH_m0110]
58 * [terminal_usb](converter/terminal_usb/)   - [IBM Model M terminal keyboard(PS/2 scancode set3) to USB][GH_terminal]
59 * [news_usb](converter/news_usb/)           - [Sony NEWS keyboard to USB][GH_news]
60 * [x68k_usb](converter/x68k_usb/)           - [Sharp X68000 keyboard to USB][GH_x68k]
61 * [sun_usb](converter/sun_usb/)             - [Sun] to USB(type4, 5 and 3?)
62 * [pc98_usb](converter/pc98_usb/)           - [PC98] to USB
63 * [usb_usb](converter/usb_usb/)             - USB to USB(experimental)
64 * [ascii_usb](converter/ascii_usb/)         - ASCII(Serial console terminal) to USB
65 * [ibm4704_usb](converter/ibm4704_usb)      - [IBM 4704 keyboard Converter][GH_ibm4704]
66
67 ### keyboard
68 * [hhkb](keyboard/hhkb/)                    - [Happy Hacking Keyboard pro][GH_hhkb] **my main board**
69 * [gh60](keyboard/gh60/)                    - [GH60] DIY 60% keyboard [prototype][GH60_proto] **my second board**
70 * [hbkb](keyboard/hbkb/)                    - [Happy Buckling spring keyboard][GH_hbkb](IBM Model M 60% mod)
71 * [hid_liber](keyboard/hid_liber/)          - [HID liberation][HID_liber] controller (by alaricljs)
72 * [phantom](keyboard/phantom/)              - [Phantom] keyboard (by Tranquilite)
73 * [IIgs_Standard](keyboard/IIgs/)           - Apple [IIGS] keyboard mod(by JeffreySung)
74 * [macway](keyboard/macway/)                - [Compact keyboard mod][GH_macway] [retired]
75 * [KMAC](keyboard/kmac/)                    - Korean custom keyboard
76 * [Lightsaber](keyboard/lightsaber/)        - Korean custom keyboard
77 * [Infinity](keyboard/infinity/)            - Massdrop [Infinity keyboard][Infinity]
78 * [NerD](keyboard/nerd/)                    - Korean custom keyboard
79 * [KittenPaw](keyboard/kitten_paw)          - Custom Majestouch controller
80 * [Lightpad](keyboard/lightpad)             - Korean custom keypad
81 * [ghost_squid](keyboard/ghost_squid/)      - [The Ghost Squid][ghost_squid] controller for [Cooler Master QuickFire XT][cmxt]
82
83 ### Extenal projects using tmk_keyboard
84 * [ErgoDox_cub-uanic][cub-uanic]            - Split Ergonomic Keyboard [ErgoDox][ergodox_org]
85 * [mcdox][mcdox_tmk]                        - [mcdox][mcdox]
86
87
88 [GH_macway]:    http://geekhack.org/showwiki.php?title=Island:11930
89 [GH_hhkb]:      http://geekhack.org/showwiki.php?title=Island:12047
90 [GH_ps2]:       http://geekhack.org/showwiki.php?title=Island:14618
91 [GH_adb]:       http://geekhack.org/showwiki.php?title=Island:14290
92 [GH_hhkb_bt]:   http://geekhack.org/showwiki.php?title=Island:20851
93 [GH_m0110]:     http://geekhack.org/showwiki.php?title=Island:24965
94 [GH_news]:      http://geekhack.org/showwiki.php?title=Island:25759
95 [GH_terminal]:  http://geekhack.org/showwiki.php?title=Island:27272
96 [GH_x68k]:      http://geekhack.org/showwiki.php?title=Island:29060
97 [GH_hbkb]:      http://geekhack.org/showwiki.php?title=Island:29483
98 [GH_ibm4704]:   http://geekhack.org/index.php?topic=54706.0
99 [HID_liber]:    http://deskthority.net/wiki/HID_Liberation_Device_-_DIY_Instructions
100 [Phantom]:      http://geekhack.org/index.php?topic=26742
101 [GH60]:         http://geekhack.org/index.php?topic=34959
102 [GH60_proto]:   http://geekhack.org/index.php?topic=37570.0
103 [PC98]:         http://en.wikipedia.org/wiki/NEC_PC-9801
104 [Sun]:          http://en.wikipedia.org/wiki/Sun-3
105 [IIGS]:         http://en.wikipedia.org/wiki/Apple_IIGS
106 [Infinity]:     https://www.massdrop.com/buy/infinity-keyboard-kit
107 [ghost_squid]:  http://deskthority.net/wiki/Costar_replacement_controllers#The_Ghost_Squid
108 [cmxt]:         http://gaming.coolermaster.com/en/products/keyboards/quickfirext/
109 [ergodox_org]:  http://ergodox.org/
110 [cub-uanic]:    https://github.com/cub-uanic/tmk_keyboard/tree/master/keyboard/ergodox
111 [mcdox]:        https://github.com/DavidMcEwan/mcdox
112 [mcdox_tmk]:    https://github.com/DavidMcEwan/tmk_keyboard/tree/master/keyboard/mcdox
113 [Planck]:       http://olkb.co/planck
114 [Preonic]:      http://olkb.co/preonic
115 [Atomic]:       http://olkb.co/atomic
116 [Ergodox_EZ]:   https://www.indiegogo.com/projects/ergodox-ez-an-incredible-mechanical-keyboard
117
118
119 License
120 -------
121 **GPLv2** or later. Some protocol files are under **Modified BSD License**.
122
123 Third party libraries like LUFA, PJRC and V-USB have their own license respectively.
124
125
126
127 Build Firmware and Program Controller
128 -------------------------------------
129 See [doc/build.md](doc/build.md), or the README in the particular keyboard/* folder.
130
131
132
133 Change your keymap
134 ------------------
135 See [doc/keymap.md](doc/keymap.md).
136
137
138
139 Magic Commands
140 --------------
141 To see help press `Magic` + `H`.
142
143 `Magic` key combination is `LShift` + `RShift` in many project, but `Power` key on ADB converter. 
144 `Magic` keybind can be vary on each project, check `config.h` in project directory.
145
146 Following commands can be also executed with `Magic` + key. In console mode `Magic` keybind is not needed.
147
148     ----- Command Help -----
149     c:      enter console mode
150     d:      toggle debug enable
151     x:      toggle matrix debug
152     k:      toggle keyboard debug
153     m:      toggle mouse debug
154     v:      print device version & info
155     t:      print timer count
156     s:      print status
157     e:      print eeprom config
158     n:      toggle NKRO
159     0/F10:  switch to Layer0
160     1/F1:   switch to Layer1
161     2/F2:   switch to Layer2
162     3/F3:   switch to Layer3
163     4/F4:   switch to Layer4
164     PScr:   power down/remote wake-up
165     Caps:   Lock Keyboard(Child Proof)
166     Paus:   jump to bootloader
167
168
169
170 Boot Magic Configuration - Virtual DIP Switch
171 ---------------------------------------------
172 Boot Magic are executed during boot up time. Press Magic key below then plug in keyboard cable.
173 Note that you must use keys of **Layer 0** as Magic keys. These settings are stored in EEPROM so that retain your configure over power cycles.
174
175 To avoid configuring accidentally additive salt key `KC_SPACE` also needs to be pressed along with the following configuration keys. The salt key is configurable in `config.h`. See [tmk_core/common/bootmagic.h](tmk_core/common/bootmagic.h).
176
177 #### General
178 - Skip reading EEPROM to start with default configuration(`ESC`)
179 - Clear configuration stored in EEPROM to reset configuration(`Backspace`)
180
181 #### Bootloader
182 - Kick up Bootloader(`B`)
183
184 #### Debug
185 - Debug enable(`D`)
186 - Debug matrix enable(`D`+`X`)
187 - Debug keyboard enable(`D`+`K`)
188 - Debug mouse enable(`D`+`M`)
189
190 #### Keymap
191 - Swap Control and CapsLock(`Left Control`)
192 - Change CapsLock to Control(`Caps Lock`)
193 - Swap LeftAlt and Gui(`Left Alt`)
194 - Swap RightAlt and Gui(`Right Alt`)
195 - Disable Gui(`Left Gui`)
196 - Swap Grave and Escape(`Grave`)
197 - Swap BackSlash and BackSpace(`Back Slash`)
198 - Enable NKRO on boot(`N`)
199
200 #### Default Layer
201 - Set Default Layer to 0(`0`)
202 - Set Default Layer to 1(`1`)
203 - Set Default Layer to 2(`2`)
204 - Set Default Layer to 3(`3`)
205 - Set Default Layer to 4(`4`)
206 - Set Default Layer to 5(`5`)
207 - Set Default Layer to 6(`6`)
208 - Set Default Layer to 7(`7`)
209
210
211
212 Mechanical Locking support
213 --------------------------
214 This feature makes it possible for you to use mechanical locking switch for `CapsLock`, `NumLock` 
215 or `ScrollLock`. To enable this feature define these macros in `config.h` and use `KC_LCAP`, `KC_LN
216 UM` or `KC_LSCR` in keymap for locking key instead of normal `KC_CAPS`, `KC_NLCK` or `KC_SLCK`. Res
217 ync option tries to keep switch state consistent with keyboard LED state.
218  
219     #define LOCKING_SUPPORT_ENABLE
220     #define LOCKING_RESYNC_ENABLE
221
222
223
224 Start Your Own Project
225 -----------------------
226 **TBD**
227
228
229
230 Debugging
231 --------
232 Use PJRC's `hid_listen` to see debug messages. You can use the tool for debug even if firmware use LUFA stack.
233
234 You can use xprintf() to display debug info on `hid_listen`, see `tmk_core/common/xprintf.h`.
235
236
237
238 Files and Directories
239 -------------------
240 ### Top
241 * tmk_core/     - core library
242 * keyboard/     - keyboard projects
243 * converter/    - protocol converter projects
244 * doc/          - documents
245
246
247
248 Coding Style
249 -------------
250 - Doesn't use Tab to indent, use 4-spaces instead.
251
252
253
254 Other Keyboard Firmware Projects
255 ------------------
256 You can learn a lot about keyboard firmware from these. See [doc/other_projects.md](doc/other_projects.md).