Change USB PID
This commit is contained in:
parent
f6f698dda0
commit
9de992ba0b
3 changed files with 14 additions and 5 deletions
|
@ -120,7 +120,7 @@ VPATH += $(TOP_DIR)
|
||||||
|
|
||||||
|
|
||||||
# program Leonardo
|
# program Leonardo
|
||||||
PROGRAM_CMD = avrdude -p$(MCU) -cavr109 -P$(DEV) -b57600 -Uflash:w:$(TARGET).hex
|
PROGRAM_CMD = avrdude -p$(MCU) -cavr109 -b57600 -Uflash:w:$(TARGET).hex -P$(DEV)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -19,13 +19,22 @@ Build firmware
|
||||||
$ cd converter/usb_usb
|
$ cd converter/usb_usb
|
||||||
$ make
|
$ make
|
||||||
|
|
||||||
You will get usb_usb.hex if you are lucky.
|
Program converter. Push reset button on Leonardo before run this command. Serial port name(COM17) depends your system. On Linux I got /dev/ttyACM0.
|
||||||
Program your Leonardo with avrdude(or easy-going Arduino IDE):
|
|
||||||
|
$ DEV=COM17 make program
|
||||||
|
or
|
||||||
|
$ avrdude -patmega32u4 -cavr109 -b57600 -Uflash:w:usb_usb.hex -PCOM17
|
||||||
|
|
||||||
$ avrdude -patmega32u4 -cavr109 -PCOM17 -b57600 -Uflash:w:usb_usb.hex
|
|
||||||
|
|
||||||
|
|
||||||
Limitation
|
Limitation
|
||||||
----------
|
----------
|
||||||
Only supports 'HID Boot protocol'.
|
Only supports 'HID Boot protocol'.
|
||||||
Not support keyboard LED yet.
|
Not support keyboard LED yet.
|
||||||
|
|
||||||
|
|
||||||
|
Resource
|
||||||
|
--------
|
||||||
|
http://deskthority.net/workshop-f7/is-remapping-a-usb-keyboard-using-teensy-possible-t2841.html
|
||||||
|
https://github.com/felis/USB_Host_Shield_2.0
|
||||||
|
https://github.com/arduino/Arduino/hardware/arduino/{cores,variants}
|
||||||
|
|
|
@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
#define VENDOR_ID 0xFEED
|
#define VENDOR_ID 0xFEED
|
||||||
#define PRODUCT_ID 0xCAFE
|
#define PRODUCT_ID 0x005B
|
||||||
#define DEVICE_VER 0x0814
|
#define DEVICE_VER 0x0814
|
||||||
#define MANUFACTURER t.m.k.
|
#define MANUFACTURER t.m.k.
|
||||||
#define PRODUCT USB to USB keyboard converter
|
#define PRODUCT USB to USB keyboard converter
|
||||||
|
|
Loading…
Reference in a new issue