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