Keyboard firmwares for Atmel AVR and Cortex-M
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.

README 3.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. ADB to USB keyboard converter
  2. =============================
  3. http://geekhack.org/showwiki.php?title=Island:14290
  4. This firmware converts ADB keyboard protocol to USB.
  5. Build
  6. -----
  7. 0. Connect ADB keyboard to Teensy by 3 lines(Vcc, GND, Data).
  8. PSW line is optional. See ADB.txt for details.
  9. 1. Define following macros for ADB connection in config.h:
  10. ADB_PORT
  11. ADB_PIN
  12. ADB_DDR
  13. ADB_DATA_BIT
  14. ADB_PSW_BIT
  15. 2. make
  16. 3. program Teensy.
  17. Keymap
  18. ------
  19. You can change a keymap by editing code of keymap.c like following.
  20. This is a keymap for AEK, however, also used for other keyboards.
  21. How to define the keymap is probably obvious. You can find key
  22. symbols in usb_keycodes.h.
  23. If you want to define some keymaps than just one, see hhkb/keymap.c and
  24. macway/keymap.c as examples. Keymap(layer) switching may needs a bit of
  25. effort at this time.
  26. /* Default Layer: plain keymap
  27. * ,---. ,---------------. ,---------------. ,---------------. ,-----------. ,---.
  28. * |Esc| |F1 |F2 |F3 |F4 | |F5 |F6 |F7 |F8 | |F9 |F10|F11|F12| |PrS|ScL|Pau| |Pwr|
  29. * `---' `---------------' `---------------' `---------------' `-----------' `---'
  30. * ,-----------------------------------------------------------. ,-----------. ,---------------.
  31. * | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backspa| |Ins|Hom|PgU| |NmL| =| /| *|
  32. * |-----------------------------------------------------------| |-----------| |---------------|
  33. * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \| |Del|End|PgD| | 7| 8| 9| -|
  34. * |-----------------------------------------------------------| `-----------' |---------------|
  35. * |CapsLo| A| S| D| F| G| H| J| K| L| ;| '|Return | | 4| 5| 6| +|
  36. * |-----------------------------------------------------------| ,---. |---------------|
  37. * |Shift | Z| X| C| V| B| N| M| ,| ,| /|Shift | |Up | | 1| 2| 3| |
  38. * |-----------------------------------------------------------| ,-----------. |-----------|Ent|
  39. * |Ctrl |Gui |Alt | Space | | | | |Lef|Dow|Rig| | 0| .| |
  40. * `-----------------------------------------------------------' `-----------' `---------------'
  41. */
  42. KEYMAP(
  43. ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, PSCR,SLCK,BRK, PWR,
  44. GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSPC, INS, HOME,PGUP, NLCK,EQL, PSLS,PAST,
  45. TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC,BSLS, DEL, END, PGDN, P7, P8, P9, PMNS,
  46. CAPS,A, S, D, F, G, H, J, K, L, SCLN,QUOT, ENT, P4, P5, P6, PPLS,
  47. LSFT,Z, X, C, V, B, N, M, COMM,DOT, SLSH, RSFT, UP, P1, P2, P3,
  48. LCTL,LGUI,LALT, SPC, LEFT,DOWN,RGHT, P0, PDOT,PENT
  49. ),
  50. EOF