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