keybrd library is an open source library for creating custom-keyboard firmware.
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

README.md 3.2KB

8 years ago
7 years ago
7 years ago
8 years ago
8 years ago
7 years ago
8 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. keybrd library for creating keyboard firmware
  2. =============================================
  3. keybrd library is an open source library for creating custom-keyboard firmware.
  4. The keybrd library allows keyboard designers to develop and publish their firmware simply as possible.
  5. keybrd library supports any keyboard configuration:
  6. * one-piece
  7. * split with shift registers
  8. * split with I/O expander
  9. * single-layer
  10. * multiple-layer
  11. * LED indicator lights
  12. Multiple-layer keyboards can write symbols without using the shift key:
  13. ~ ! @ # $ % ^ & * () _ {} | < > : ?
  14. keybrd library leverages the Arduino environment to create keyboard firmware.
  15. The Arduino development environment is free, and easy for novice programmers to setup and learn.
  16. The keybrd library has been tested on Teensy LC, Teensy 2.0, 74HC165 shift registers, and PCA9655E I/O expander.
  17. The resulting keyboard firmware is compatible with standard USB keyboard drivers.
  18. > The keybrd library is in Beta testing. The public API should not be considered stable.
  19. Example minimal keybrd sketch
  20. -----------------------------
  21. A [minimal keybrd sketch](/tutorials/keybrd_1_breadboard/keybrd_1_breadboard.ino)
  22. is 40 lines of code for a 4-key keyboard.
  23. It scans a key matrix just like the big keyboards.
  24. The sketch is small because the keybrd library takes care of the low-level details.
  25. It runs the breadboard keyboard in this picture.
  26. <img src="tutorials/keybrd_1_breadboard/basic_breadboard_keyboard_front.JPG" title="basic breadboard keyboard" alt="basic breadboard keyboard" height="290" width="328">
  27. Example complex keybrd sketch
  28. -----------------------------
  29. The keybrd_DH sketch is a showcase of the keybrd library's capability.
  30. It emulates the DataHand keyboard, which has the most complex layout I know of.
  31. Its layout has 52 keys, 3 primary layers, 5 sub-layers, 2 matrices, 8 LEDs, and blinking LEDs.
  32. Most layouts are much simpler.
  33. keybrd_DH and its instantiation files contain about 800 lines of code.
  34. [keybrd_DH_library_developer_guide.md](https://github.com/wolfv6/keybrd_DH/blob/master/doc/keybrd_DH_library_developer_guide.md)<br>
  35. [mainSketch.ino](https://github.com/wolfv6/keybrd_DH/blob/master/examples/keybrd_DH/mainSketch.cpp)<br>
  36. [instantiations_scannersLEDs.h](https://github.com/wolfv6/keybrd_DH/blob/master/src/instantiations_scannersLEDs.h)<br>
  37. [instantiations_scancodes.h](https://github.com/wolfv6/keybrd_DH/blob/master/src/instantiations_scancodes.h)<br>
  38. [instantiations_layercodes.h](https://github.com/wolfv6/keybrd_DH/blob/master/src/instantiations_layercodes.h)<br>
  39. [instantiations_rows_L.h](https://github.com/wolfv6/keybrd_DH/blob/master/src/instantiations_rows_L.h)<br>
  40. [instantiations_rows_R.h](https://github.com/wolfv6/keybrd_DH/blob/master/src/instantiations_rows_R.h)
  41. ![hweller](images/datahand.jpg "DataHand")
  42. Support
  43. -------
  44. [Guides](doc) and [tutorials](tutorials) are provided.
  45. keybrd tutorial_1 shows how to build a breadboard keyboard.
  46. The remaining [keybrd tutorials](tutorials) show how to create custom keybrd firmware.
  47. Please ask questions in [keybrd firmware library](https://geekhack.org/index.php?topic=83599.0) thread if something is not clear.