You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

261 lines
10 KiB

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