1 Alternative Controller for HHKB
2 ===============================
19 adjust scan code to your pin configuration.(see doc/HHKB.txt for pinouts)
20 1. Define macros in config_pjrc.h.(Optional)
21 VENDOR_ID, PRODUCT_ID and string descriptor.
23 2. Edit Makefile for MCU setting and build options.
25 MOUSEKEY_ENABLE, USB_EXTRA_ENABLE, USB_NKRO_ENABLE
34 0. Edit matrix.c and usbconfig.h.
35 adjust scan code to your pin configuration.(see doc/HHKB.txt for pinouts)
36 define macros for V-USB in usbconfig.h.
37 1. Define macros in config_vusb.h.(Optional)
39 2. Edit Makefile.vusb for MCU setting and build options.
41 MOUSEKEY_ENABLE, USB_EXTRA_ENABLE, USB_NKRO_ENABLE
43 $ make -f Makefile.vusb
45 $ make -f Makefile.vusb program
47 Using a bootloader to program for convenience is recommended.
48 Once program this V-USB bootloader at first, you can program MCU without
49 extra programmer. You should have reset switch to start up as bootloader
52 http://www.obdev.at/products/vusb/usbasploader.html
57 +---+ +---------------+
58 USB GND | | ATmega168 |
60 5V <-------+--------+---|Vcc,AVCC | HHKB
62 D- <----+--+-----R2-----|INT1 PB0-2|------->ROW
63 D+ <----|---+----R3-----|INT0 PB3-5|------->COL
64 Z1 Z2 | PB6|------->ENABLE
65 GND<----+---+--+--+-----|GND PE6|------->KEY
66 | | | PE7|------->PREV
67 | C2-+--|XTAL1 | (see doc/HHKB.txt for pinouts)
69 +--C3-+--|XTAL2 RST|---SW--+GND
76 X1: Crystal 20MHz(16MHz/12MHz)
77 SW: Push Switch(Optional for bootloader)